joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4677a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4677d3
push esi
call fcn.00475a30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4677cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x467859
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x467842
mov eax, dword [esi + 8]
test eax, eax
je 0x4677f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46783e
cmp eax, 2
je 0x467842
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4677ea
cmp eax, 3
je 0x46781d
cmp eax, 1
jne 0x4677ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4677ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4677ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00467880
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x467868
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00467880
add esp, 4
pop esi
ret

Function at 0x468100
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x468121
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x468121
mov eax, dword [eax + 0x44]
test eax, eax
je 0x468121
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4823a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x482406
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x482406
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4823e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x482790
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4827c8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x483490
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4834d9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x483950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b8690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00483500
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00483580
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00483580
lea ecx, [esi + 0xc]
call fcn.004a91c0
lea ecx, [esi + 0x10]
call fcn.004a91c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00484b10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00484b10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00484b10
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a9235
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a9235
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x488150
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x553ae0
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x10], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esi + 4]
mov edi, ecx
push 1
push edi
mov ecx, ebx
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
call fcn.00489080
test al, al
je 0x4881d2
mov eax, dword [ebx + 4]
mov ecx, edi
mov edi, eax
mov eax, ecx
mov esi, 0x553ae0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
mov byte [ebx + eax], 0
add ebx, eax
lea ecx, [ebp - 0x210]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4881fc
lea edx, [ebp - 0x30]
push 0x51e4b0
push edx
mov dword [ebp - 0x30], 4
call fcn.0049a04f
push 0
mov ebx, 2
push 1
push ebx
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x58], eax
jne 0x488228
lea eax, [ebp - 0x2c]
push 0x51e4b0
push eax
mov dword [ebp - 0x2c], 1
call fcn.0049a04f
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4882a3
mov ecx, dword [ebp + 0xc]
mov word [ebp - 0x40], bx
push ecx
call sub.WS2_32.dll_htons
mov edi, dword [ebp + 8]
mov word [ebp - 0x3e], ax
push edi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
jne 0x488265
push edi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x48828e
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + 0x58]
lea eax, [ebp - 0x40]
push 0x10
push eax
push ecx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4885a9
lea edx, [ebp - 0x28]
push 0x51e4b0
push edx
mov dword [ebp - 0x28], ebx
call fcn.0049a04f
lea edx, [ebp - 0x20]
push 0x51e4b0
push edx
mov dword [ebp - 0x20], 3
call fcn.0049a04f
lea ecx, [ebp - 0x80]
call fcn.00490710
mov edx, dword [esi + 0x34]
lea eax, [esi + 0x48]
lea ecx, [esi + 0x38]
push eax
push ecx
push edx
sub esp, 0x10
lea eax, [esi + 0x24]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 1
call fcn.00488e10
mov ecx, dword [esi + 0x20]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00490820
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0xf]
push edx
mov edx, dword [ebp + 8]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
push edx
call fcn.00488f30
mov eax, dword [esi + 0x58]
lea ecx, [ebp - 0x80]
push eax
call fcn.00490a20
test eax, eax
jne 0x488312
lea ecx, [ebp - 0x24]
push 0x51e4b0
push ecx
mov dword [ebp - 0x24], ebx
call fcn.0049a04f
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.00490780
jmp 0x4885a9
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x14], al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x488b20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esp
mov al, byte [ecx + 0x14]
mov dword [ebp - 4], 0
test al, al
jne 0x488bc0
lea ebx, [ecx + 4]
mov edi, 0x530b30
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [ebp - 0x18], esi
call fcn.00489080
test al, al
je 0x488b9a
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x530b30
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
push 1
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004879e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov bl, 1
test eax, eax
mov byte [ebp - 4], bl
jne 0x488bd1
mov eax, 0x5130b0
mov edx, dword [ebp + 0x10]
push 0
push edx
push eax
mov eax, dword [ecx + 0x58]
push eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x488d15
lea ecx, [ebp - 0x1c]
push 0x51e4b0
push ecx
mov dword [ebp - 0x1c], 1
call fcn.0049a04f
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x11], 0
dec eax
jne 0x488c54
mov edi, 0x530b44
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [edx + 4]
mov esi, ecx
push 1
push esi
mov ecx, ebx
mov dword [ebp - 0x18], esi
call fcn.00489080
test al, al
je 0x488c54
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x530b44
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
mov eax, 0x488d12
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x488d38
mov al, byte [ecx - 1]
test al, al
je 0x488d2e
cmp al, 0xff
je 0x488d2e
dec al
mov byte [ecx - 1], al
jmp 0x488d38
dec ecx
push ecx
call fcn.004a8f9f
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x488d50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
mov eax, 0x10624dd3
mov ecx, dword [esp + 0x118]
xor bl, bl
imul ecx
sar edx, 6
mov eax, edx
mov dword [esp + 0xc], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x58]
lea ecx, [esp + 8]
mov dword [esp + 8], edx
push ecx
mov dword [esp + 0x18], eax
push 0
lea edx, [esp + 0x18]
push 0
inc eax
push edx
push eax
mov dword [esp + 0x24], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x488db2
pop esi
xor al, al
pop ebx
add esp, 0x10c
ret 4
test eax, eax
jle 0x488dca
mov ecx, dword [esi + 0x58]
lea eax, [esp + 0x10]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov al, 1
jne 0x488dcc
mov al, bl
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x490b10
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov word [esp + 4], 2
mov ax, word [esi + 0x18]
push eax
call sub.WS2_32.dll_htons
mov word [esp + 6], ax
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x490b38
mov eax, 0x51325c
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x490b68
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x490b53
mov esi, 0x51325c
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x490b8a
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
add esp, 0x10
ret 4
xor eax, eax
pop esi
add esp, 0x10
ret 4
Function at 0x4ab603
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ab63b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a9690
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a9668
jmp 0x4ab647
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4accf8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4acd3a
call fcn.004b2ab6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4acd3a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4acd31
xor eax, eax
jmp 0x4acd42
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004acd48
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b2fe6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b3014
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b3032
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b2f4c
jmp 0x4b3032
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b3032
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b2f4c
test edi, edi
mov eax, edi
jne 0x4b301c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10029f60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x1007b800]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x1007e7f4], 0xa
jl 0x10029f92
mov eax, dword [0x1007e7f8]
lea edx, [eax + 1]
imul edx, eax
and edx, 1
je 0x10029f92
nop dword [eax]
jmp 0x10029f90
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea esi, [ecx + 4]
mov ebx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
nop word cs:[eax + eax]
push eax
mov edi, esp
push eax
push edx
push dword [ebp + 8]
push edi
call fcn.1002a1c0
add esp, 0x10
push esi
push 0
push dword [edi]
push 0x1002a2c0
push 0
push 0
call fcn.10050397
add esp, 0x18
mov dword [ebx], eax
cmp dword [0x1007e7f4], 0xa
jl 0x1002a030
mov ecx, dword [0x1007e7f8]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
je 0x1002a030
push eax
mov ebx, esp
mov edi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov eax, dword [ebp + 8]
push eax
push ebx
call fcn.1002a1c0
add esp, 0x10
mov esi, dword [ebp - 0x14]
push esi
push 0
push dword [ebx]
push 0x1002a2c0
push 0
push 0
call fcn.10050397
mov edx, edi
add esp, 0x18
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
jmp 0x10029fb0
test eax, eax
je 0x1002a1a6
mov dword [edi], 0
mov eax, dword [0x1007e7fc]
mov ecx, dword [0x1007e800]
lea edx, [eax + 1]
imul edx, eax
and edx, 1
cmp ecx, 0xa
jl 0x1002a05f
test edx, edx
jne 0x1002a170
mov esi, dword [edi]
test esi, esi
je 0x1002a0b0
nop word cs:[eax + eax]
test esi, esi
je 0x1002a07d
push esi
call fcn.10030fcc
add esp, 4
mov eax, dword [0x1007e7fc]
mov ecx, dword [0x1007e800]
lea edx, [eax + 1]
imul edx, eax
and edx, 1
cmp ecx, 0xa
jl 0x1002a0b0
test edx, edx
je 0x1002a0b0
mov eax, dword [edi]
xor esi, esi
test eax, eax
je 0x1002a070
push eax
call fcn.10030fcc
add esp, 4
mov esi, dword [edi]
jmp 0x1002a070
test edx, edx
je 0x1002a0bd
cmp ecx, 0xa
jge 0x1002a180
cmp dword [0x1007e7f4], 0xa
jl 0x1002a192
mov edx, dword [0x1007e7f8]
lea esi, [edx + 1]
imul esi, edx
and esi, 1
je 0x1002a192
lea edx, [eax + 1]
imul edx, eax
and edx, 1
cmp ecx, 0xa
jl 0x1002a0f5
test edx, edx
jne 0x1002a190
mov esi, dword [edi]
test esi, esi
je 0x1002a140
nop dword [eax + eax]
test esi, esi
je 0x1002a10d
push esi
call fcn.10030fcc
add esp, 4
mov eax, dword [0x1007e7fc]
mov ecx, dword [0x1007e800]
lea edx, [eax + 1]
imul edx, eax
and edx, 1
cmp ecx, 0xa
jl 0x1002a140
test edx, edx
je 0x1002a140
mov eax, dword [edi]
xor esi, esi
test eax, eax
je 0x1002a100
push eax
call fcn.10030fcc
add esp, 4
mov esi, dword [edi]
jmp 0x1002a100
test edx, edx
je 0x1002a049
cmp ecx, 0xa
jl 0x1002a049
nop word cs:[eax + eax]
jmp 0x1002a160
jmp 0x1002a170
jmp 0x1002a180
jmp 0x1002a190
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10031007
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
push 6
call fcn.10033f4e
int3
Function at 0x100350f2
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x10035115
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x10035103
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x100488c7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.1004e1fb
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x10048906
sub eax, 1
je 0x10048901
sub eax, 1
je 0x100488fd
xor eax, eax
leave
ret
push 3
jmp 0x10048908
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x10058870
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005889d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005889d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1005adaf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10070e9c
push 0x10070e94
push str.FlsAlloc
push 0x1e
call fcn.1005b30b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005ade3
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1005ade9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005ae2d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10070eac
push 0x10070ea4
push str.FlsGetValue
push 0x20
call fcn.1005b30b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005ae64
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1005f6fd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10048fd0
mov eax, dword [0x1007b800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1005e068
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005f73f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1005f89b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10031020
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10080378]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1005f4a4
mov ecx, dword [esi*4 + 0x10080378]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1005f894
cmp eax, dword [edi + ecx + 0x24]
jne 0x1005f894
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005f894
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005f4a4
add esp, 0x14
test edx, edx
jl 0x1005f894
jg 0x1005f80a
test eax, eax
jb 0x1005f894
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005f894
jl 0x1005f824
cmp dword [ebp - 0x1008], eax
ja 0x1005f894
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1005f842
test ebx, ebx
je 0x1005f87b
cmp ecx, edi
jae 0x1005f87b
mov al, byte [ecx]
cmp al, 0xd
jne 0x1005f85c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1005f868
cmp byte [ecx + 1], 0xa
jne 0x1005f868
inc ecx
jmp 0x1005f868
movzx eax, al
movsx eax, byte [eax + 0x1007c1d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1005f842
cmp edx, ebx
jne 0x1005f842
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005f899
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10031007
leave
ret
Function at 0x1005fd25
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005fdc2
push ebx
push esi
call fcn.1005fe13
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10058c2b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005fd6f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005fdc1
push edi
push eax
call fcn.10058b61
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005fd8f
call fcn.10058b27
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005fdc0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10058c2b
add esp, 0x20
test eax, eax
jne 0x1005fdae
push edi
call fcn.10058b27
jmp 0x1005fdb6
push ebx
call fcn.10058b27
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1005fdc5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005fdd6
pop esi
ret
push ebx
push edi
push esi
call fcn.1005fe13
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10058b61
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005fdfe
push ebx
push esi
push edi
call fcn.1004b4a0
add esp, 0xc
push 0
call fcn.10058b27
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1005fe4a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005fe55
Function at 0x1006101a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10061025