joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037740
Capabilities:
Create http request

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub esp, 0x18
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
jne 0x10037791
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [str.::InternetOpen_failed.]
push eax
push 0x192
push edx
lea ecx, [esp + 0xc]
call fcn.100375d0
push 0x1005e4c8
lea eax, [esp + 4]
push eax
call fcn.1004166e
add esp, 0x18
ret

Function at 0x100377a0
Capabilities:
Connect to http server

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub esp, 0x18
push 0
push 0
push 3
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
jne 0x100377f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [str.::InternetConnect_failed.]
push eax
push 0x193
push edx
lea ecx, [esp + 0xc]
call fcn.100375d0
push 0x1005e4c8
lea eax, [esp + 4]
push eax
call fcn.1004166e
add esp, 0x18
ret
Function at 0x1003c450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10052088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
push esi
push edi
mov edi, dword [esp + 0x3c]
mov esi, edi
sub esi, ebx
sar esi, 2
lea eax, [esp + 0xc]
push esi
push eax
call fcn.1003b5a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
push ebx
mov dword [esp + 0x4c], 0
call fcn.1003c340
mov eax, dword [esp + 0x30]
add esp, 0x1c
test eax, eax
pop edi
pop esi
pop ebx
je 0x1003c4d6
push eax
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x1003c9b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100520c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
xor esi, esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
push 0x20
lea ecx, [esp + 8]
mov dword [esp + 0x20], esi
call fcn.1003b170
mov ecx, dword [esp + 0x24]
lea eax, [esp + 4]
push eax
push ecx
call fcn.1003c970
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.1003c5a0
mov eax, dword [esp + 0x18]
add esp, 0x10
cmp eax, esi
pop esi
je 0x1003ca19
push eax
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x1003f3c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10052240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
push ebx
push ebp
xor ebp, ebp
cmp edx, eax
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov ebx, edx
je 0x1003f4ca
push edi
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
cmp eax, ecx
mov edi, dword [ebx]
je 0x1003f4b9
lea ebx, [ebx]
cmp dword [eax], edi
je 0x1003f41b
add eax, 4
cmp eax, ecx
jne 0x1003f410
cmp eax, ecx
je 0x1003f4b9
mov eax, dword [esp + 0x34]
push eax
push ebx
push edx
lea ecx, [esp + 0x20]
call fcn.1003ed70
mov ecx, dword [esi + 4]
cmp ecx, ebp
mov dword [esp + 0x2c], ebp
jne 0x1003f442
xor edx, edx
jmp 0x1003f44a
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 4
cmp ecx, ebp
je 0x1003f47b
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 4
cmp edx, eax
jae 0x1003f47b
mov ecx, dword [esp + 0x34]
mov edi, dword [esi + 8]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push 1
push edi
call fcn.1003efe0
add esp, 0x14
add edi, 0x10
mov dword [esi + 8], edi
jmp 0x1003f48d
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, esi
call fcn.1003f0b0
mov eax, dword [esp + 0x18]
cmp eax, ebp
mov dword [esp + 0x2c], 0xffffffff
je 0x1003f4a6
push eax
call fcn.1004119d
add esp, 4
lea edx, [ebx + 4]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ebx, edx
jmp 0x1003f4bc
add ebx, 4
mov eax, dword [esp + 0x10]
cmp ebx, dword [eax + 8]
jne 0x1003f3f6
pop edi
mov ecx, dword [esp + 0x30]
push ecx
push ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.1003ed70
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov dword [esp + 0x2c], 1
call fcn.1003f350
mov eax, dword [esp + 0x14]
pop esi
cmp eax, ebp
pop ebp
pop ebx
je 0x1003f502
push eax
call fcn.1004119d
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x1003f9d7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x100778dc]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.1003f9a7
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10043690
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1003fa39
cmp dword [ebp - 0x1c], 5
jb 0x1003fa51
jmp 0x1003fa4d
cmp dword [ebp - 0x10], 1
jne 0x1003fa51
cmp dword [ebp - 0x1c], 4
ja 0x1003fa4d
jne 0x1003fa51
cmp dword [ebp - 0x18], 0
jbe 0x1003fa51
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x10056d14
call fcn.10026a80
test eax, eax
jge 0x1003fa72
mov byte [0x1007ab20], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.1004189e
add ebp, 0x78
leave
ret
Function at 0x1004302a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x10043047
call fcn.10042c51
mov dword [eax], 0x16
xor eax, eax
jmp 0x100430b1
push esi
push 0x8c
push 1
call fcn.100432f3
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1004309c
push esi
call fcn.10045a20
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x1004307a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x10042f95
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x100430b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.10041b6f
test ebx, ebx
pop ecx
je 0x100430ae
push ebx
call fcn.10042c63
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100433ec
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100434dc
mov eax, 0x94
call fcn.10041d60
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10043551
mov ecx, dword [esi + 0x10]
mov dword [0x1007b214], ecx
mov eax, dword [esi + 4]
mov dword [0x1007b220], eax
mov edx, dword [esi + 8]
mov dword [0x1007b224], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1007b218], esi
je 0x10043457
or esi, 0x8000
mov dword [0x1007b218], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1007b21c], eax
call fcn.10046671
test eax, eax
pop ecx
je 0x10043551
call fcn.10045c1a
test eax, eax
jne 0x10043484
call fcn.100466c2
jmp 0x10043551
call fcn.10049a82
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1007c908], eax
call fcn.10049960
mov dword [0x1007b07c], eax
call fcn.10049441
test eax, eax
jl 0x100434d5
call fcn.100498be
test eax, eax
jl 0x100434d0
call fcn.1004968b
test eax, eax
jl 0x100434d0
push 0
call fcn.10047c5f
test eax, eax
pop ecx
jne 0x100434d0
inc dword [0x1007b078]
jmp 0x10043562
call fcn.1004963f
call fcn.10045a03
jmp 0x1004347a
test eax, eax
jne 0x1004350c
cmp dword [0x1007b078], eax
jle 0x10043551
dec dword [0x1007b078]
cmp dword [0x1007b250], eax
jne 0x100434fb
call fcn.10047d9d
call fcn.1004963f
call fcn.10045a03
call fcn.100466c2
jmp 0x10043562
cmp eax, 2
jne 0x10043555
push 0x8c
push 1
call fcn.100432f3
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10043551
push esi
push dword [0x10077de4]
call dword [0x1007b1fc]
test eax, eax
push esi
je 0x1004354b
call fcn.10045a20
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10043562
call fcn.10041b6f
pop ecx
xor eax, eax
jmp 0x10043565
cmp eax, 3
jne 0x10043562
push 0
call fcn.10045beb
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10047cc9
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10057bd0
call fcn.100436f0
push 8
call fcn.10044430
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1007b254], esi
jne 0x10047cfd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1007b250], esi
mov al, byte [ebp + 0x10]
mov byte [0x1007b24c], al
cmp dword [ebp + 0xc], edi
jne 0x10047d47
cmp dword [0x1007c8cc], edi
je 0x10047d37
mov eax, dword [0x1007c8c8]
sub eax, 4
mov dword [0x1007c8c8], eax
cmp eax, dword [0x1007c8cc]
jb 0x10047d37
mov eax, dword [eax]
cmp eax, edi
je 0x10047d18
call eax
jmp 0x10047d18
push 0x100620a0
mov eax, 0x10062098
call fcn.10047c47
pop ecx
push 0x100620ac
mov eax, 0x100620a4
call fcn.10047c47
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10047d78
cmp dword [ebp + 0x10], edi
jne 0x10047d86
mov dword [0x1007b254], esi
push dword [ebp + 8]
call fcn.10047c05
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10047d85
push 8
call fcn.1004437b
pop ecx
ret
call fcn.1004372b
ret
Function at 0x10048068
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x100778dc]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10048099
xor eax, eax
jmp 0x10048222
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1007b7a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100480d5
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1004ca9a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100481b0
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x100481ee
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x10048139
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1004812a
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1004810a
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10048179
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10048182
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x100480fb
jmp 0x10048184
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1004821d
cmp dword [ebp - 0x6c], edi
je 0x100481ee
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x100481e3
call fcn.10042c51
mov dword [eax], 9
call fcn.10042c5a
mov dword [eax], esi
jmp 0x10048218
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100481d8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x10048184
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x10048184
push dword [ebp - 0x6c]
call fcn.10042c63
pop ecx
jmp 0x10048218
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10048206
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x10048206
xor eax, eax
jmp 0x10048220
call fcn.10042c51
mov dword [eax], 0x1c
call fcn.10042c5a
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x10048220
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1004189e
add ebp, 0x3a0
leave
ret
Function at 0x10049b0a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100778dc]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10078208]
je 0x10049b3f
inc eax
cmp eax, 0x13
jb 0x10049b30
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10078208]
jne 0x10049c65
mov eax, dword [0x1007b084]
cmp eax, 1
je 0x10049c3d
cmp eax, edx
jne 0x10049b6f
cmp dword [0x1007b088], 1
je 0x10049c3d
cmp ecx, 0xfc
je 0x10049c65
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10049ba5
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10045e30
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10043910
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10049bd9
mov eax, edi
push eax
call fcn.10043910
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10054e24
push edi
call fcn.10043150
add esp, 0x10
push edi
call fcn.10043910
push dword [esi + 0x1007820c]
mov ebx, eax
call fcn.10043910
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10041d60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10045e30
push edi
push ebx
call fcn.10045e40
push 0x10057938
push ebx
call fcn.10045e40
push dword [esi + 0x1007820c]
push ebx
call fcn.10045e40
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1004c1a9
add esp, 0x2c
jmp 0x10049c65
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1007820c]
push dword [esi]
call fcn.10043910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.1004189e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10049ec6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10041d60
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10049f61
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1007b214]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10049f61
cmp eax, 1
je 0x10049f82
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10049f61
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10049f2e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10049f5d
xor eax, eax
inc eax
jmp 0x10049fa1
cmp edi, eax
jae 0x10049f65
xor eax, eax
jmp 0x10049fa1
cmp eax, esi
jae 0x10049f6c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1007b214]
jmp 0x10049f85
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004c1a9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1007b510], ebx
push esi
push edi
jne 0x1004c229
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1004c264
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100590bc
push edi
call esi
test eax, eax
mov dword [0x1007b510], eax
je 0x1004c264
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1007b514], eax
call esi
cmp dword [0x1007b214], 2
mov dword [0x1007b518], eax
jne 0x1004c229
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1007b520], eax
je 0x1004c229
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1007b51c], eax
mov eax, dword [0x1007b51c]
test eax, eax
je 0x1004c26e
call eax
test eax, eax
je 0x1004c255
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1007b520]
test eax, eax
je 0x1004c255
test byte [ebp - 8], 1
jne 0x1004c26e
cmp dword [0x1007b220], 4
jb 0x1004c268
or byte [ebp + 0x12], 0x20
jmp 0x1004c28d
xor eax, eax
jmp 0x1004c29d
or byte [ebp + 0x12], 4
jmp 0x1004c28d
mov eax, dword [0x1007b514]
test eax, eax
je 0x1004c28d
call eax
mov ebx, eax
test ebx, ebx
je 0x1004c28d
mov eax, dword [0x1007b518]
test eax, eax
je 0x1004c28d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1007b510]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004cf55
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1004d129
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x1007b7a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1004d129
test cl, 0x48
je 0x1004cfc0
cmp byte [eax + 5], 0xa
je 0x1004cfc0
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004d012
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1004cffa
call fcn.10042c51
mov dword [eax], 9
call fcn.10042c5a
mov dword [eax], esi
jmp 0x1004d00a
cmp eax, 0x6d
je 0x1004d129
push eax
call fcn.10042c63
pop ecx
or eax, 0xffffffff
jmp 0x1004d12b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1004d124
test eax, eax
je 0x1004d039
cmp byte [ebx], 0xa
jne 0x1004d039
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1004d042
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1004d11e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1004d10e
cmp al, 0xd
je 0x1004d074
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1004d100
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1004d08e
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1004d089
add dword [ebp + 0x10], 2
jmp 0x1004d0e2
mov dword [ebp + 0x10], eax
jmp 0x1004d0fc
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004d0b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1004d0fc
cmp dword [ebp - 0xc], 0
je 0x1004d0fc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1004d0d7
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1004d0e2
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1004d0ff
cmp ebx, dword [ebp + 0xc]
jne 0x1004d0e7
cmp byte [ebp - 1], 0xa
jne 0x1004d0e7
mov byte [ebx], 0xa
jmp 0x1004d0ff
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004865a
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1004d100
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1004d058
jmp 0x1004d11e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1004d11e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1004d12b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004d25c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10059130
call fcn.100436f0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x1007b52c], edi
jne 0x1004d2a0
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004d28b
mov dword [0x1007b52c], ebx
jmp 0x1004d2a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1004d2a0
mov dword [0x1007b52c], 2
mov eax, dword [0x1007b52c]
cmp eax, ebx
jne 0x1004d2c0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1004d383
cmp eax, 2
je 0x1004d2c9
cmp eax, edi
jne 0x1004d2f1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x1004d2dc
mov eax, dword [0x1007b490]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x1004d2f8
xor eax, eax
jmp 0x1004d383
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.10041d60
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x1004d32b
cmp esi, edi
jne 0x1004d341
push dword [ebp - 0x20]
call fcn.10041c87
pop ecx
mov esi, eax
cmp esi, edi
je 0x1004d2f1
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1004d374
cmp dword [ebp + 0x14], edi
jne 0x1004d35e
push edi
push edi
jmp 0x1004d364
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x1004d380
push esi
call fcn.10041b6f
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.1004372b
ret