joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ee10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447408
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x450733
lea ecx, [ebp - 0x28]
call fcn.00403cb0
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0x34
push 0
mov ecx, dword [ebp + 8]
call fcn.00403e90
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x42ef44
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0
jne 0x42ee95
mov eax, dword [ebp - 0x34]
push eax
call fcn.00443614
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
jmp 0x42ee78
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00403e90
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42ef31
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0x453818
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x42ef31
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
push str._d._d._d._d
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x18
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
call fcn.00406630
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004065c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403d10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443690
mov esp, ebp
pop ebp
ret
Function at 0x432c20
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447a30
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x3c], ecx
push 0
push 0
push 0
push 0
push 0x4547c4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 0x44]
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0
jne 0x432c85
push 0
mov ecx, dword [ebp - 0x44]
call fcn.00432ff0
xor al, al
jmp 0x432d5c
lea ecx, [ebp - 0x28]
call fcn.00403d70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403d70
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00433370
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x432ced
push 1
mov ecx, dword [ebp - 0x44]
call fcn.00432ff0
mov byte [ebp - 0x45], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403e60
mov al, byte [ebp - 0x45]
jmp 0x432d5c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.004043e0
mov ecx, dword [ebp - 0x44]
mov dx, word [ebp - 0x4c]
mov word [ecx + 0x1c], dx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x20
call fcn.004043e0
push 8
push str.https:__
mov ecx, dword [ebp + 8]
call fcn.00403e90
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x432d3a
mov ecx, dword [ebp - 0x44]
mov byte [ecx + 0x38], 1
mov byte [ebp - 0x46], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403e60
mov al, byte [ebp - 0x46]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443690
mov esp, ebp
pop ebp
ret 0xc

Function at 0x433180
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push eax
push 0
push 3
push 0
push 0
movzx ecx, word [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403e90
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x4331c5
xor al, al
jmp 0x4331c7
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4020f0
Capabilities:
Get geographical location

Disassembly:
push ebx
push edi
push str._r_nHID_Descriptor:_r_n
call fcn.00401ec0
mov edi, dword [esp + 0x10]
movzx eax, word [edi + 2]
push eax
push str.bcdHID:_____________0x_04X_r_n
call fcn.00401ec0
movzx ecx, byte [edi + 4]
push ecx
push str.bCountryCode:_________0x_02X_r_n
call fcn.00401ec0
movzx edx, byte [edi + 5]
push edx
push str.bNumDescriptors:______0x_02X_r_n
call fcn.00401ec0
mov al, byte [edi + 5]
add esp, 0x1c
xor bl, bl
test al, al
jbe 0x402177
push esi
lea ebx, [ebx]
movzx esi, bl
lea eax, [edi + esi*2 + 4]
movzx ecx, byte [esi + eax + 2]
push ecx
push str.bDescriptorType:______0x_02X_r_n
call fcn.00401ec0
lea edx, [edi + esi*2]
movzx eax, word [esi + edx + 7]
push eax
push str.wDescriptorLength:__0x_04X_r_n
call fcn.00401ec0
mov al, byte [edi + 5]
add esp, 0x10
inc bl
cmp bl, al
jb 0x402140
pop esi
pop edi
pop ebx
ret
Function at 0x403ba0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x434
mov ecx, dword [esp + 0x440]
push esi
push edi
lea eax, [esp + 0x44c]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00405696
mov edx, dword [esp + 0x450]
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x40]
push 0
mov dword [esp + 0x28], ecx
mov ecx, dword [0x43020c]
push 0x1100
push ecx
mov dword [esp + 0x1c], 0xffff0002
mov dword [esp + 0x20], 5
mov dword [esp + 0x44], edx
call edi
mov esi, eax
mov eax, dword [0x4301f4]
lea edx, [esp + 0x10]
push edx
push 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [0x43020c]
push 0x110d
push eax
mov dword [esp + 0x20], 0x22
mov dword [esp + 0x24], esi
call edi
pop edi
mov eax, esi
pop esi
add esp, 0x434
ret
Function at 0x403f10
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
mov eax, dword [0x417bf4]
mov ecx, dword [0x417bf8]
mov edx, dword [0x417bfc]
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [0x417c00]
push esi
mov dword [esp + 0x24], eax
mov eax, dword [0x430214]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 5
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [0x430220], esi
je 0x403f70
push esi
lea ecx, [esp + 0x14]
push ecx
push ebp
call eax
mov eax, dword [0x430214]
cmp eax, esi
mov edx, dword [0x417c04]
mov ecx, dword [0x417c08]
mov dword [esp + 0x1c], edx
mov edx, dword [0x417c0c]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x417c10]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [0x430220], esi
je 0x403fb0
push esi
lea edx, [esp + 0x14]
push edx
push ebp
call eax
mov dword [0x430208], eax
push 0x3e8
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push 2
push esi
push 0xf
push 0xf
mov dword [0x43020c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
mov esi, eax
mov eax, dword [0x430204]
push 0x6f
push eax
call edi
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push eax
push 0xffffffffffffffff
push esi
call ebx
mov ecx, dword [0x430204]
push 0x6b
push ecx
mov dword [0x4301f4], eax
call edi
push eax
push 0xffffffffffffffff
push esi
call ebx
mov edx, dword [0x430204]
push 0x6c
push edx
mov dword [0x430228], eax
call edi
push eax
push 0xffffffffffffffff
push esi
call ebx
mov dword [0x430218], eax
mov eax, dword [0x430204]
push 0x6d
push eax
call edi
push eax
push 0xffffffffffffffff
push esi
call ebx
mov ecx, dword [0x430204]
push 0x6e
push ecx
mov dword [0x430224], eax
call edi
push eax
push 0xffffffffffffffff
push esi
call ebx
mov edx, dword [0x43020c]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x1109
push edx
mov dword [0x4301fc], eax
call esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push ebp
call edi
push 0x3ea
push ebp
mov dword [0x4301f8], eax
call edi
push ebp
mov dword [0x430230], eax
call dword [sym.imp.USER32.dll_GetMenu]
push str.Courier
push 0x31
push 1
mov dword [0x43022c], eax
push 2
push 1
push 0
push 0
push 0
push 0
push 0x190
push 0
push 0
push 8
push 0xd
call dword [sym.imp.GDI32.dll_CreateFontA]
push 0
push eax
mov eax, dword [0x4301f8]
push 0x30
push eax
call esi
call fcn.00403e10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x4043c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [0x430204]
push 0
push 0x404260
push 0
push 0x65
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
mov dword [0x43021c], eax
jne 0x4043ed
add esp, 0x10
ret
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp]
mov ecx, dword [esp + 8]
sub ecx, edx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
push 0
push 0
mov dword [0x42fa30], eax
call fcn.00403990
push 0x190
push 1
call fcn.00403990
mov ecx, dword [esp + 0x24]
mov edx, dword [0x43021c]
add esp, 0x10
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x43021c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
add esp, 0x10
ret
Function at 0x405ae9
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x419ed8
call fcn.00408cb8
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x405ca0
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x405b46
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x405ca0
mov eax, dword [esi + 0x10]
mov dword [0x42fa70], eax
mov eax, dword [esi + 4]
mov dword [0x42fa7c], eax
mov eax, dword [esi + 8]
mov dword [0x42fa80], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x42fa74], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x42fa70], 2
je 0x405b84
or byte [0x42fa75], 0x80
mov eax, dword [0x42fa7c]
shl eax, 8
add eax, dword [0x42fa80]
mov dword [0x42fa78], eax
call fcn.00405a8d
mov dword [ebp - 0x1c], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.00408be0
pop ecx
test eax, eax
jne 0x405bb5
push 0x1c
call fcn.00405a69
pop ecx
call fcn.00406b3a
test eax, eax
jne 0x405bc6
push 0x10
call fcn.00405a69
pop ecx
mov dword [ebp - 4], ebx
call fcn.00408966
test eax, eax
jge 0x405bda
push 0x1b
call fcn.00405a44
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4317fc], eax
call fcn.00408840
mov dword [0x42fa44], eax
call fcn.0040879f
test eax, eax
jge 0x405c00
push 8
call fcn.00405a44
pop ecx
call fcn.00408555
test eax, eax
jge 0x405c11
push 9
call fcn.00405a44
pop ecx
call fcn.0040802c
mov dword [ebp - 0x28], eax
test eax, eax
je 0x405c24
push eax
call fcn.00405a44
pop ecx
call fcn.004084ec
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], bl
je 0x405c37
movzx eax, word [ebp - 0x40]
jmp 0x405c3a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x400000
call fcn.00404460
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x405c5b
push esi
call fcn.00408141
call fcn.00408163
jmp 0x405c8d
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x405ca5
mov eax, 0xff
call fcn.00408cf3
ret
Function at 0x408181
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x41f050]
je 0x408199
inc eax
cmp eax, 0x12
jb 0x40818a
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41f050]
mov dword [ebp + 8], esi
jne 0x4082df
mov eax, dword [0x42fa4c]
cmp eax, 1
push ebx
je 0x4082af
test eax, eax
jne 0x4081ce
cmp dword [0x41ee54], 1
je 0x4082af
cmp ecx, 0xfc
je 0x4082de
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x42fab8
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x42fad2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x42fbd6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40821c
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x42fad2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408221
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x408254
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408235
sub eax, edx
push 3
lea eax, [eax + 0x42fa97]
push 0x41a504
push eax
call fcn.00405920
add esp, 0xc
mov edx, 0x42fab8
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40825c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x41f054]
mov esi, 0x41a500
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408277
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408283
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0040c812
add esp, 0xc
pop edi
jmp 0x4082de
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4082de
mov esi, dword [esi + 0x41f054]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x4082c6
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x40c0d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x40c0ef
xor eax, eax
jmp 0x40c25d
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4316e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40c122
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0040f1a7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40c1f4
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x40c22c
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x40c17d
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40c16e
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x40c151
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c1bd
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x40c1c6
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40c142
jmp 0x40c1c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x40c258
cmp dword [ebp - 4], edi
je 0x40c22c
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x40c221
call fcn.0040e6b7
mov dword [eax], 9
call fcn.0040e6ca
mov dword [eax], esi
jmp 0x40c253
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c216
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x40c1c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40c1c8
push dword [ebp - 4]
call fcn.0040e6dd
pop ecx
jmp 0x40c253
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40c241
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40c241
xor eax, eax
jmp 0x40c25b
call fcn.0040e6b7
mov dword [eax], 0x1c
call fcn.0040e6ca
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40c25b
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40c812
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4300b4], ebx
push esi
push edi
jne 0x40c892
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c8cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41bda4
push edi
call esi
test eax, eax
mov dword [0x4300b4], eax
je 0x40c8cd
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4300b8], eax
call esi
cmp dword [0x42fa70], 2
mov dword [0x4300bc], eax
jne 0x40c892
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4300c4], eax
je 0x40c892
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4300c0], eax
mov eax, dword [0x4300c0]
test eax, eax
je 0x40c8d7
call eax
test eax, eax
je 0x40c8be
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4300c4]
test eax, eax
je 0x40c8be
test byte [ebp - 8], 1
jne 0x40c8d7
cmp dword [0x42fa7c], 4
jb 0x40c8d1
or byte [ebp + 0x12], 0x20
jmp 0x40c8f6
xor eax, eax
jmp 0x40c906
or byte [ebp + 0x12], 4
jmp 0x40c8f6
mov eax, dword [0x4300b8]
test eax, eax
je 0x40c8f6
call eax
mov ebx, eax
test ebx, ebx
je 0x40c8f6
mov eax, dword [0x4300bc]
test eax, eax
je 0x40c8f6
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4300b4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40db22
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40db50
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40db57
cmp ebx, dword [eax + 4]
jae 0x40db57
xor eax, eax
jmp 0x40dd47
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40db68
xor eax, eax
inc eax
jmp 0x40dd46
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40db7e
cmp ecx, edx
jae 0x40dcc3
cmp dword [eax + 4], 0
je 0x40db87
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40db6f
cmp dword [ebp + 8], 0
je 0x40dba9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40dcc3
cmp eax, esi
jae 0x40dcc3
mov eax, dword [0x4300d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40dbce
cmp dword [esi*4 + 0x4300d8], edi
je 0x40dcc7
inc esi
cmp esi, eax
jl 0x40dbbc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dd43
cmp dword [ebp - 8], 0x1000000
jne 0x40dd43
test byte [ebp - 0xc], 0xcc
je 0x40dc4c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40dd43
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40dd43
cmp word [eax + 0x18], 0x10b
jne 0x40dd43
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40dd43
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40dc4c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40dc4c
test byte [ecx + 0x27], 0x80
jne 0x40dcc3
push 1
push 0x430118
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40db60
mov ecx, dword [0x4300d0]
test ecx, ecx
mov edx, ecx
jle 0x40dc80
lea eax, [ecx*4 + 0x4300d4]
cmp dword [eax], edi
je 0x40dc80
dec edx
sub eax, 4
test edx, edx
jg 0x40dc74
test edx, edx
jne 0x40dcb1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40dc8d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40dca5
lea eax, [edx*4 + 0x4300d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40dc93
cmp ecx, 0x10
jge 0x40dcb1
inc ecx
mov dword [0x4300d0], ecx
push 0
push 0x430118
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40db60
xor eax, eax
jmp 0x40dd46
test esi, esi
jle 0x40db60
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x430118
call ebx
test eax, eax
jne 0x40db60
cmp dword [esi*4 + 0x4300d8], edi
je 0x40dd1d
mov eax, dword [0x4300d0]
lea esi, [eax - 1]
test esi, esi
jl 0x40dd0b
cmp dword [esi*4 + 0x4300d8], edi
je 0x40dd07
dec esi
jns 0x40dcfb
test esi, esi
jge 0x40dd1b
cmp eax, 0x10
jge 0x40dd16
inc eax
mov dword [0x4300d0], eax
lea esi, [eax - 1]
jmp 0x40dd1d
je 0x40dd35
xor ecx, ecx
test esi, esi
jl 0x40dd35
lea eax, [ecx*4 + 0x4300d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40dd23
push 0
push 0x430118
call ebx
jmp 0x40db60
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40df49
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.0040e030
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dfe4
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 [0x42fa70]
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 0x40dfe4
cmp eax, 1
je 0x40e005
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 0x40dfe4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40dfb1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40dfe0
xor eax, eax
inc eax
jmp 0x40e024
cmp edi, eax
jae 0x40dfe8
xor eax, eax
jmp 0x40e024
cmp eax, esi
jae 0x40dfef
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 [0x42fa70]
jmp 0x40e008
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