joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10053415
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007d084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1004691b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1004691b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1005348c
cmp word [ecx], dx
je 0x1005348c
mov eax, dword [0x10067584]
push edi
dec eax
push eax
push 0x10067470
call fcn.100533b4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100534ff
cmp word [eax], dx
je 0x100534ff
mov eax, dword [edi]
test eax, eax
je 0x100534b0
cmp word [eax], dx
je 0x100534b0
lea eax, [ebp - 0x10]
push eax
call fcn.10052d97
jmp 0x100534b9
lea eax, [ebp - 0x10]
push eax
call fcn.10052e32
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10053529
mov eax, dword [0x1006746c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10067160
call fcn.100533b4
add esp, 0xc
test al, al
je 0x10053529
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100534f4
cmp word [eax], di
je 0x100534f4
lea eax, [ebp - 0x10]
push eax
call fcn.10052d97
pop ecx
jmp 0x1005352b
lea eax, [ebp - 0x10]
push eax
call fcn.10052e32
jmp 0x100534f1
mov eax, dword [edi]
test eax, eax
je 0x10053516
cmp word [eax], dx
je 0x10053516
lea eax, [ebp - 0x10]
push eax
call fcn.10052d4c
pop ecx
jmp 0x10053529
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100535f4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10053239
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100535f4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100535f4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100535f4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10053581
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1004b07c
test ebx, ebx
je 0x100535ef
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1004b07c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100535f4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100535f4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10057561
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100535f6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10020ab5
leave
ret
Function at 0x10057781
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100576fd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100578f0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100578f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100578a5
jg 0x100577dd
test eax, eax
je 0x1005789b
push 1
push 0x1000
call fcn.10043be5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10057800
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10057892
push 0x8000
push ebx
call fcn.1005762e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10057829
jg 0x10057824
cmp ecx, 0x1000
jb 0x10057829
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1004bcf2
add esp, 0x10
cmp eax, 0xffffffff
je 0x1005786e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10057824
jl 0x10057855
test ecx, ecx
jne 0x10057816
push dword [ebp - 0xc]
push ebx
call fcn.1005762e
push esi
call fcn.100441fb
add esp, 0xc
xor ebx, ebx
jmp 0x100578fe
cmp byte [edi + 0x24], 0
je 0x10057885
cmp dword [edi + 0x20], 5
jne 0x10057885
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10057890
mov ebx, dword [edi + 0x18]
jmp 0x10057892
xor ebx, ebx
push esi
call fcn.100441fb
pop ecx
jmp 0x100578fe
test ecx, ecx
jg 0x10057867
jl 0x100578a5
test eax, eax
jae 0x10057867
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004d1a5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100578c5
cmp byte [edi + 0x1c], 0
je 0x10057867
jmp 0x100578f6
push ebx
call fcn.100546f2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10057867
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100578fe
cmp byte [edi + 0x1c], 0
je 0x100578fb
mov ebx, dword [edi + 0x18]
jmp 0x100578fe
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004d1a5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005acb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e3de
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1007d084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1007db74]
cmp eax, 0xffffffff
jne 0x1005ace6
xor ebx, ebx
jmp 0x1005acef
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1005ad31
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x1005ad70
test esi, esi
jne 0x1005ad74
push 0x1005a7b0
push 0x10081f94
call fcn.1005a320
mov eax, dword [0x1007db74]
add esp, 8
cmp eax, 0xffffffff
je 0x1005ad31
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1005ad5e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1005ad5e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1005adb6
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1005ad9f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x1005ad74
cmp dword [ebx + 0x18], 0
je 0x1005ad00
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1005addd
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1005addd
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1005a7d0
cmp dword [ebx + 0x18], 0
jne 0x1005adc0
jmp 0x1005ad00

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x5dce077d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6e454821
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x472990
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x4729cd
cmp byte [ebp + 8], 0
je 0x4729cd
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.00471a2e
push esi
push 0
push 0x472a60
call fcn.00425efc
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
jmp 0x4729d5
push dword [ebp + 8]
call fcn.00471c02
pop esi
pop ebp
ret 4
Function at 0x477590
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
or edx, 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov ebx, eax
imul ebx, dword [ebp + 0x14]
push edi
mov edi, esi
lea eax, [esi + eax*4]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
shl ebx, 2
shl eax, 2
mov dword [ebp + 0xc], eax
movzx eax, byte [esi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
movzx eax, byte [esi + 1]
xor edx, dword [ecx*4 + 0x4b70b0]
movzx ecx, dl
xor ecx, eax
shr edx, 8
movzx eax, byte [esi]
add esi, ebx
xor edx, dword [ecx*4 + 0x4b70b0]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4b70b0]
cmp esi, dword [ebp + 8]
jb 0x477607
add edi, dword [ebp + 0xc]
mov esi, edi
cmp edi, dword [ebp + 0x10]
jb 0x4775c3
not edx
mov dword [ebp + 8], edx
fild dword [ebp + 8]
test edx, edx
jns 0x47761e
fadd qword [0x4bbac8]
pop edi
fstp qword [ebp - 8]
fld qword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1006093
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x30]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10060b1
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
or dword [esi], 0xffffffff
push 0x1001674
call dword [sym.imp.WSOCK32.dll_inet_addr]
push esi
push 0
push eax
call fcn.01006800
test eax, eax
mov dword [ebp - 4], eax
jne 0x10060ec
push ebx
lea ebx, [edi + 0x2c]
push ebx
add edi, 0x28
push edi
push dword [esi]
call fcn.010066ce
mov dword [ebp - 4], eax
xor eax, eax
mov ax, word [ebx]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x1006365
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp eax, 0xc0000120
push ebx
push esi
push edi
mov ebx, ecx
je 0x10064b4
cmp byte [0x100a2ac], 0
jne 0x10064b4
test eax, eax
mov edi, dword [ebp + 0x10]
mov esi, dword [edi + 8]
je 0x10063fb
cmp eax, 0x3e3
je 0x1006481
cmp eax, 0x2775
je 0x1006499
cmp eax, 0x2746
je 0x1006499
cmp eax, 0x274c
je 0x1006499
cmp eax, 0x2742
je 0x1006499
cmp eax, 0x2736
je 0x1006499
cmp eax, 0x274a
je 0x1006499
cmp eax, 0x2745
jne 0x1006481
jmp 0x1006499
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
add edi, 0x50
push edi
mov ecx, ebx
call fcn.01005f1d
test eax, eax
jl 0x100646f
xor edi, edi
cmp dword [ebp - 4], edi
je 0x100646f
push 4
lea eax, [ebx + 0x30]
push eax
push 0x700b
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
push 0x6c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x1006449
mov ecx, eax
call fcn.0100721e
mov edi, eax
test edi, edi
je 0x100646f
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call fcn.01007850
test eax, eax
jl 0x100647b
push edi
mov ecx, 0x100a2b0
call fcn.01007d8e
jmp 0x100647b
cmp esi, 0xffffffff
je 0x100647b
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov edi, dword [ebp + 0x10]
or esi, 0xffffffff
push 0
push ebx
push 0x1006fd5
push edi
push esi
push dword [ebx + 0x30]
push 0
call fcn.01006af4
test eax, eax
je 0x10064ca
cmp esi, 0xffffffff
je 0x10064a5
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, ebx
call fcn.010060f8
push edi
call fcn.01007a82
jmp 0x10064ca
push dword [ebp + 0x10]
call fcn.01007a82
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10064ca
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10066ce
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a19c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x100670b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x1006721
test esi, esi
je 0x1006714
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
test edi, edi
je 0x100671f
mov ax, word [ebp - 0x12]
mov word [edi], ax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01005aae
leave
ret 0xc

Function at 0x1006800
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100a19c]
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
call dword [sym.imp.WSOCK32.dll_ntohs]
push 1
xor edi, edi
push edi
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
jne 0x1006847
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
jmp 0x10068c0
push ebx
push edi
push 0x100661e
push esi
call dword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
push 4
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], edi
mov ebx, 0x1001
push ebx
mov edi, 0xffff
push edi
push esi
mov esi, dword [sym.imp.WSOCK32.dll_setsockopt]
call esi
and dword [ebp - 0x18], 0
push 4
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
mov edi, dword [ebp - 0x1c]
push edi
call esi
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
pop ebx
je 0x10068c4
mov cx, word [ebp + 0xc]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
mov word [ebp - 0x14], 2
mov word [ebp - 0x12], cx
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x10068c4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push edi
mov esi, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, esi
jmp 0x10068cb
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01005aae
leave
ret 0xc
Function at 0x43a550
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x43a572
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43a579
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43a568
mov eax, 1
add ebx, ebx
jne 0x43a58b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43a580
jne 0x43a59c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43a580
xor ecx, ecx
sub eax, 3
jb 0x43a5b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43a622
mov ebp, eax
add ebx, ebx
jne 0x43a5bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43a5c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43a5ec
inc ecx
add ebx, ebx
jne 0x43a5d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43a5cd
jne 0x43a5e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43a5cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43a60c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43a5fd
jmp 0x43a56e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43a60c
add edi, ecx
jmp 0x43a56e
pop esi
mov edi, esi
mov ecx, 0x3e7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43a62a
cmp byte [edi], 1
jne 0x43a62a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43a62f
lea edi, [esi + 0x38000]
mov eax, dword [edi]
or eax, eax
je 0x43a6a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4ae3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4aef0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43a65c
mov ecx, edi
jns 0x43a68b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4aef4]
or eax, eax
je 0x43a6a1
mov dword [ebx], eax
add ebx, 4
jmp 0x43a679
call dword [esi + 0x4af04]
mov ebp, dword [esi + 0x4aef8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43a6db
sub esp, 0xffffff80
jmp 0x40d841
Function at 0x1002bcb
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10030b0
call fcn.01002d84
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10043c8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002986
cmp eax, esi
jne 0x1002979
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002989
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002960
xor esi, esi
inc esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x100299c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10029cb
mov eax, dword [0x10043c4]
test eax, eax
jne 0x10029c5
mov dword [0x10043c4], esi
push 0x1001118
push 0x100110c
call fcn.010028c2
pop ecx
pop ecx
test eax, eax
je 0x10029cb
jmp 0x1002aef
mov dword [0x1004084], esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x10029ef
push 0x1001108
push 0x1001100
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10043c4], 2
cmp dword [ebp - 0x20], ebx
jne 0x10029fc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10043cc], ebx
je 0x1002a1d
push 0x10043cc
call fcn.01002cf9
pop ecx
test eax, eax
je 0x1002a1d
push ebx
push 2
push ebx
call dword [0x10043cc]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1002aef
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1002a87
cmp cx, bx
je 0x1002a42
cmp dword [ebp - 0x1c], ebx
jne 0x1002a87
movzx ecx, word [eax]
cmp cx, bx
je 0x1002a57
cmp cx, 0x20
ja 0x1002a57
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1002a42
test byte [ebp - 0x40], 1
je 0x1002a63
movzx ecx, word [ebp - 0x3c]
jmp 0x1002a66
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1004080], eax
cmp dword [0x1004074], ebx
jne 0x1002acc
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1002a98
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1002a2c
cmp dword [0x1004084], ebx
jne 0x1002ada
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004080]
jmp 0x1002afb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002dc9
ret
call fcn.01002ed1
jmp 0x1002923

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x300018e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [section..cdata]
push esi
mov dword [ebp + 0x194], eax
lea eax, [ebp - 0x7c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x300019b0
push 0x80000002
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push 0x30001990
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x80]
shr eax, 1
cmp dword [ebp - 0x7c], esi
mov word [ebp + eax*2 - 0x78], si
je 0x30001958
push dword [ebp - 0x7c]
call dword [entry0]
push 0x105
lea edx, [ebp - 0x78]
mov ecx, 0x30001a08
call fcn.300018b7
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
pop esi
je 0x30087e3c
mov ecx, dword [ebp + 0x194]
call fcn.30056b36
add ebp, 0x198
leave
ret
push 0x300a5b54
call fcn.301d8254
jmp 0x3000197d
Function at 0x30002589
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
xor ebx, ebx
cmp dword [0x301dd764], ebx
push esi
mov dword [ebp - 4], ebx
jne 0x300026f8
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x30002700
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x300026f8
push edi
mov esi, str.perf.dll
lea edi, [ebp - 0x6c]
push 0x11
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop ecx
lea edi, [ebp - 0x63]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x50
call fcn.30013847
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [entry0]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x301dd774], eax
pop edi
je 0x300026f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._InitPerf_4
push eax
call esi
push str._PerfCodeMarker_12
mov dword [0x301dd764], eax
push dword [0x301dd774]
call esi
push str._UnInitPerf_4
mov dword [0x301df2dc], eax
push dword [0x301dd774]
call esi
push str._PerfCodeMarkerStatus_4
mov dword [0x301e4cd4], eax
push dword [0x301dd774]
call esi
push str._PerfReplaceCodeMarker_8
mov dword [0x301e4cd8], eax
push dword [0x301dd774]
call esi
mov dword [0x301e4cdc], eax
mov eax, dword [0x301dd764]
cmp eax, ebx
je 0x300026f8
cmp dword [0x301df2dc], ebx
je 0x300026f8
cmp dword [0x301e4cd4], ebx
je 0x300026f8
push dword [ebp + 8]
call eax
call fcn.3005480c
cmp dword [ebp + 0xc], ebx
jne 0x30087e62
push 8
call fcn.30013812
push 9
call fcn.30013812
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.30013847
push dword [ebp - 8]
push dword [ebp - 0xc]
push 4
call dword [0x301df2dc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 5
call dword [0x301df2dc]
pop esi
pop ebx
leave
ret 8
mov eax, dword [0x301df2dc]
cmp eax, ebx
je 0x300026c1
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x221
call eax
jmp 0x300026c1