joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x402c00
pop dword [ebp - 0x24]
mov eax, 0x9d9b79db
sub eax, 0x9d5b4ddb
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xa7018fe9
add dword [ebp - 0x34], 0xa750b562
mov dword [ebp - 0x30], 0x5ccae5f6
add dword [ebp - 0x30], 0xd568664f
mov dword [ebp - 0x2c], 0x95e95a7a
add dword [ebp - 0x2c], 0xb662e9b4
mov dword [ebp - 0x28], 0x9b2a38ba
add dword [ebp - 0x28], 0x64d5c746
lea eax, [ebp - 0x34]
push eax
mov eax, 0x548df932
add eax, 0xabb2875a
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xce1e8cc0
add dword [ebp - 0x34], 0xa653dc96
mov dword [ebp - 0x30], 0x8e50e054
add dword [ebp - 0x30], 0xb31b8121
mov dword [ebp - 0x2c], 0x4e4c5f82
add dword [ebp - 0x2c], 0x15230cea
mov dword [ebp - 0x28], 0x7a8d71e9
sub dword [ebp - 0x28], 0x7a8d71e9
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x4d2b2c1d
add eax, 0xb31554b7
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x38af6
push 0
call eax
mov ecx, 0x4ad617c5
add ecx, 0xb52a3837
xor ebx, ebx
add ebx, eax
mov edi, 0x524f0ac1
sub edi, 0x520dfac1
add edi, dword [ebp - 0x24]
mov edx, 0xfe30357
sub edx, 0x991d7029
xor dword [ebp - 0x20], 0xd5d399df
mov esi, dword [edi]
xor dword [ebp - 8], eax
add esi, edx
add dword [ebp - 0x20], ecx
mov dword [ebx], esi
add dword [ebp - 0x20], ecx
add ebx, 4
add edi, 0xc875292f
sub edi, 0xc875292b
loop 0x402d24
add eax, 0x94d4facd
add eax, 0x6b2c37f6
mov ebx, eax
add eax, 0x85064414
add eax, 0x7af9bbf1
mov ecx, 0xc2f18611
sub ecx, 0xc2b18611
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.MSVCR100.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x40104d
mov edi, dword [sym.imp.MSVCR100.dll_printf]
push str.Windows_original_main_args:_n
call edi
mov eax, dword [sym.imp.MSVCR100.dll___argc]
xor esi, esi
pop ecx
cmp dword [eax], ebx
jle 0x40104d
mov eax, dword [sym.imp.MSVCR100.dll___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call edi
mov eax, dword [sym.imp.MSVCR100.dll___argc]
add esp, 0xc
inc esi
cmp esi, dword [eax]
jl 0x40102e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
xor ecx, ecx
cmp edi, ebx
jle 0x401087
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x40107c
mov eax, dword [str.java]
mov dword [esi + ecx*4], ebx
mov ecx, eax
cmp eax, ebx
jne 0x401097
mov ecx, dword [esi]
mov eax, dword [str.java]
cmp eax, ebx
jne 0x4010a2
mov eax, dword [esi]
push ebx
push ebx
push ebx
push 1
push ecx
push eax
push 0x402198
push 0x402188
push 0x403018
push 2
push 0x403010
push 2
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebx
ret

Function at 0x40d3c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40d3d2
pop dword [ebp - 0x20]
mov eax, 0x395cc063
add eax, 0xc6e4136f
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xf16ffd2d
add dword [ebp - 0x30], 0x5ce2481e
mov dword [ebp - 0x2c], 0xf8a11486
sub dword [ebp - 0x2c], 0xc66dc841
mov dword [ebp - 0x28], 0xc5f8bf45
add dword [ebp - 0x28], 0x865384e9
mov dword [ebp - 0x24], 0xa1a5a748
sub dword [ebp - 0x24], 0xa1a5a748
lea eax, [ebp - 0x30]
push eax
mov eax, 0x63ffc535
sub eax, 0x63bfb47d
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x43ae0656
sub dword [ebp - 0x30], 0xcf3b9d00
mov dword [ebp - 0x2c], 0xfa6a9778
sub dword [ebp - 0x2c], 0xb8fe3603
mov dword [ebp - 0x28], 0xc12e8715
sub dword [ebp - 0x28], 0x5dbf1aa9
mov dword [ebp - 0x24], 0xcd87fe1
sub dword [ebp - 0x24], 0xcd87fe1
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x46a96b7d
sub eax, 0x46695a9d
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3c64a
push 0
call eax
mov ecx, 0xe2976a3f
sub ecx, 0xe297231a
mov edx, eax
mov esi, 0xd4d5c483
sub esi, 0xd48efe83
add esi, dword [ebp - 0x20]
mov ebx, 0x79a9d914
sub ebx, 0xdc8daff4
sub dword [ebp - 0x1c], 0x776f67d
mov edi, dword [esi]
xor dword [ebp - 0x14], 0x344a4256
sub edi, ebx
add dword [ebp - 0xc], edx
mov dword [edx], edi
add dword [ebp - 0x14], 0x735ec642
add edx, 0xc1059a97
sub edx, 0xc1059a93
add esi, 0xd1e7b4bc
add esi, 0x2e184b48
loop 0x40d4f4
add eax, 0x8d67f060
add eax, 0x72991f07
mov ebx, eax
add eax, 0x4c584f1f
add eax, 0xb3a7b0e6
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x5001e17
Capabilities:
Create directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, edi
cmp byte [edi], 0
je 0x5001e4d
cmp byte [esi], 0x5c
jne 0x5001e47
and byte [esi], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x5001e44
push edi
push 0x50010d8
call fcn.05001ec8
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x5001e24
pop edi
pop esi
ret 4

Function at 0x5001e52
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x104]
mov eax, ecx
lea ecx, [eax + 1]
lea eax, [ebp + eax - 0x104]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [eax - 1], 0x5c
pop edi
pop esi
je 0x5001e9b
mov byte [eax], 0x5c
and byte [eax + 1], 0
lea eax, [ebp - 0x104]
push eax
call fcn.05001e17
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5001ec2
test al, 0x10
je 0x5001ec2
push 1
pop eax
jmp 0x5001ec4
xor eax, eax
leave
ret 4
Function at 0x50028cb
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x500285a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x5002878
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x50028d6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x50028bd
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x50028c6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x50028d0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x50028b2
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x500283c
mov dword [ebp + 8], esi
jne 0x50028f8
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x5002923
dec eax
je 0x500291a
sub eax, 3
je 0x5002911
mov dword [ebp - 4], 0x40
jmp 0x5002940
mov dword [ebp - 4], 4
jmp 0x5002926
mov dword [ebp - 4], 0x20
jmp 0x5002926
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x5002972
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x50028f2
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.05002183
jo 0x50028ee
adc ch, byte [edx]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x500297e
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f7a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x418968], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x403fbe
call ebx
test eax, eax
jns 0x403fb4
push 0x40166c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x401660
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x418964], eax
mov dword [0x418968], 1
mov eax, dword [0x418964]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x403fda
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x40400a
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x404000
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x403ff4
push dword [eax + 8]
call dword [eax]
jmp 0x403ffa
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x404009
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x40407d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418974], 1
push ebx
push esi
push edi
jne 0x4040a0
or dword [0x418974], 1
call fcn.00404029
mov dword [0x418970], eax
push 4
pop eax
call fcn.00414360
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404135
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4188cc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x404135
cmp eax, 1
je 0x404156
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 0x404135
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404102
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404131
xor eax, eax
inc eax
jmp 0x404175
cmp edi, eax
jae 0x404139
xor eax, eax
jmp 0x404175
cmp eax, esi
jae 0x404140
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 [0x4188cc]
jmp 0x404159
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 0x40432a
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8
Function at 0x40468f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
cmp word [ecx], 0
mov eax, dword [esp + 4]
push ebx
mov ebx, eax
je 0x40471d
cmp word [eax], 0
push ebp
push esi
push edi
je 0x404718
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
cmp word [ebx], 0
mov edi, dword [esp + 0x18]
mov esi, ebx
je 0x404707
mov ax, word [edi]
test ax, ax
je 0x404721
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x404707
push esi
call ebp
push edi
mov dword [esp + 0x18], eax
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edx, eax
sub ecx, edi
sub edx, esi
xor ecx, edx
test ecx, 0xfffffffe
jne 0x404707
jmp 0x4046fd
inc esi
inc esi
movzx edx, word [esi]
inc edi
inc edi
movzx ecx, word [edi]
sub edx, ecx
je 0x404701
cmp esi, eax
jb 0x4046ef
cmp word [esi], 0
jne 0x4046bb
cmp word [edi], 0
je 0x404721
push ebx
call ebp
mov ebx, eax
cmp word [ebx], 0
jne 0x4046af
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, ebx
jmp 0x40471a

Function at 0x4048d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x200c
lea ebp, [esp - 0x1f8c]
call fcn.00414360
mov eax, dword [0x4188a0]
push esi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp + 0x1f88], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x404945
cmp dword [ebp - 0x7c], 1
jne 0x404949
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x80], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x404945
cmp word [ebp - 0x78], si
je 0x404945
inc eax
jmp 0x404952
xor eax, eax
jmp 0x404952
xor eax, eax
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1f88]
pop esi
call fcn.004140a8
add ebp, 0x1f8c
leave
ret 4

Function at 0x4052da
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4145ad
call fcn.00414450
sub esp, 0x214
mov eax, dword [0x4188a0]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 0x214], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x214]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.004042db
cmp eax, esi
jne 0x405379
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x405333
lea eax, [ebp - 0x210]
push eax
call fcn.004052da
cmp eax, esi
jne 0x405378
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x405323
call fcn.00404276
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00404276
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004140a8
leave
ret 4
Function at 0x407c76
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4146eb
call fcn.00414450
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
call fcn.00406255
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x14], esi
jne 0x407cd2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x407cbd
call esi
mov esi, eax
jmp 0x407deb
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x407deb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x407cf3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x407d1b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x407d06
call esi
jmp 0x407de0
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x407de2
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x407d89
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x407d56
push edi
call fcn.0040417d
test al, al
je 0x407d56
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00414360
mov dword [ebp + 8], esp
jmp 0x407d62
push edi
lea ecx, [ebp - 0x10]
call fcn.004061a2
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x407d70
mov esi, 0x8007000e
jmp 0x407de2
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [eax + ebx], 0
test edi, edi
jne 0x407d91
xor eax, eax
jmp 0x407dd4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x407dc1
push ebx
call fcn.0040417d
test al, al
je 0x407dc1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.00414360
mov eax, esp
jmp 0x407dca
push ebx
lea ecx, [ebp - 0x10]
call fcn.004061a2
push 0
push esi
push edi
push eax
call fcn.004041d8
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00406fab
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.00404dde
mov eax, esi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40cac5
Capabilities:
Delete file

Disassembly:
mov eax, 0x414904
call fcn.00414450
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x4c]
test eax, eax
mov dword [ebp - 4], 2
je 0x40c798
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40c7a6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esi + 0x8c]
cmp dword [eax], 0
je 0x40c7b9
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40c7d2
push dword [eax + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [esi + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x40c7e0
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi + 0x78]
test eax, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x40c7f0
push eax
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x40c7fa
push eax
call ebx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x40c807
push eax
call ebx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x40c814
push eax
call ebx
lea edi, [esi + 0x88]
mov eax, dword [edi]
test eax, eax
je 0x40c82b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call ebx
mov ecx, esi
call fcn.0040bd72
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.0040bbda
lea ecx, [esi + 0x54]
call fcn.00408dc0
lea ecx, [esi + 0x24]
call fcn.0040420f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push esi
mov esi, ecx
push 0x4188f4
mov dword [esi], 0x402334
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, esi
pop esi
jmp 0x40c770
Function at 0x40d535
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x40d617
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x40d5b2
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x40d602
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x40d621
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x40d602
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.0040d51d
test eax, eax
je 0x40d621
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x40d621
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x40d562
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x40d61a
Function at 0x40e92f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xd
mov edx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104b
push dword [edx + 4]
mov dword [ebp - 0x34], 4
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
leave
ret 4

Function at 0x40e9bd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40ea08
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 4]
call fcn.0040e1ff
test eax, eax
je 0x40ea08
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0040e1d5
jmp 0x40ea0a
xor eax, eax
pop esi
leave
ret 8

Function at 0x40f373
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4149f1
call fcn.00414450
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x40f3a6
mov ecx, eax
call fcn.0040e112
mov ebx, eax
jmp 0x40f3a8
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x40f3b8
or esi, 0xffffffff
jmp 0x40f415
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esi + 0x30]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004121f2
push 0xd
pop ecx
xor eax, eax
push eax
push eax
push 0x1004
push dword [esi + 4]
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x48], 4
call edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x104d
push dword [esi + 4]
mov dword [ebp - 0x28], ebx
call edi
mov esi, eax
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10