joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x10034f26
jl 0x10034f1a
test esi, esi
jne 0x10034f26
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10034f3f
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x10034f52
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
jmp 0x10034f54
xor eax, eax
mov dword [ebp - 8], esi
test eax, eax
je 0x10034f8c
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
sub edi, esi
add eax, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, dword [ebx + 0x2c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x10034f92
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1003503f
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10034fbd
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov edx, eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], edx
cmp eax, 0xfff
jbe 0x10034ffe
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
mov dword [ebp - 8], edi
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x1003502c
cmp edi, eax
ja 0x10034fd0
cmp dword [ebp - 8], 0
jbe 0x10035042
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp - 8]
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
mov eax, esi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 8]
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10035060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10035085
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100350a6
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100350a8
xor eax, eax
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x10035126
jg 0x100350bb
test esi, esi
je 0x10035126
test ecx, ecx
jl 0x100350ff
jg 0x100350c5
test eax, eax
je 0x100350ff
cmp edi, ecx
jg 0x100350d7
jl 0x100350cf
cmp esi, eax
jae 0x100350d7
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 8]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10035102
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10035126
jg 0x1003510c
test esi, esi
je 0x10035126
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10035126
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.10030140
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10030140
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
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.MSVCRT.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, 0x30
pushal
call 0x402c00
pop dword [ebp - 0x20]
mov eax, 0x402c00
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xe732fd90
sub dword [ebp - 0x30], 0x98e0b845
mov dword [ebp - 0x2c], 0xede72e17
sub dword [ebp - 0x2c], 0xbbb3e1d2
mov dword [ebp - 0x28], 0xa542f04
add dword [ebp - 0x28], 0x41f8152a
mov dword [ebp - 0x24], 0x89440f31
add dword [ebp - 0x24], 0x76bbf0cf
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x6d5532eb
add dword [ebp - 0x30], 0x71d366b
mov dword [ebp - 0x2c], 0xe0bfa643
add dword [ebp - 0x2c], 0x60acbb32
mov dword [ebp - 0x28], 0x2b9fc5b1
sub dword [ebp - 0x28], 0xc8305945
mov dword [ebp - 0x24], 0xc96351c8
add dword [ebp - 0x24], 0x369cae38
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3a42e
push 0
call eax
mov ecx, 0x182889b
sub ecx, 0x1823251
mov ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x20]
mov edi, 0xcc98512f
sub edi, 0x26edaa67
mov dword [ebp - 0x14], 0xce53a595
mov edx, dword [esi]
sub dword [ebp - 8], esi
xor edx, edi
add dword [ebp - 0x14], esi
mov dword [ebx], edx
add dword [ebp - 0xc], 0xc1d81c2a
add ebx, 0x21a077c1
add ebx, 0xde5f8843
add esi, 0xc8364b29
sub esi, 0xc8364b25
loop 0x402d0d
add eax, 0x14bfb
mov ebx, eax
add eax, 5
mov ecx, 0xaea1eb2
add ecx, 0xf555e14e
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040b1c2
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040b1c2
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040b1c2
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040b1c2
mov dword [0x41203c], eax
call fcn.0040b1c2
test eax, eax
jge 0x402550
push 8
call fcn.0040b1c2
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040b1c2
pop ecx
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040b1c2
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040b1c2
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040b1c2
jmp 0x402495

Function at 0x40b1c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40b1d1
pop dword [ebp - 0x38]
mov eax, 0x40b1d1
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x360e7
push 0
mov eax, 0x282f4e5c
add eax, 0xd811927c
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x89e5872e
add ecx, 0x761ab3c7
xor esi, esi
add esi, eax
mov edi, 0xafa89999
sub edi, 0xaf675dd5
add edi, dword [ebp - 0x38]
mov ebx, 0xf3814da6
xor dword [ebp - 4], edx
mov edx, dword [edi]
add dword [ebp - 0x24], 0x977240bc
add edx, ebx
xor dword [ebp - 0x28], ebx
mov dword [esi], edx
add esi, 0x14b6730e
add esi, 0xeb498cf6
add edi, 0xdcf09d52
add edi, 0x230f62b2
loop 0x40b227
add eax, 0xdea7
mov ebx, eax
add eax, 0x251bf56d
sub eax, 0x251bf568
mov ecx, 0x9b6be16b
add ecx, 0x64d41e95
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40611c
pop dword [ebp - 8]
mov eax, 0x45e44c15
sub eax, 0x45a3eaf9
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xa5d38170
sub dword [ebp - 0x18], 0x57813c25
mov dword [ebp - 0x14], 0xffdc7bc1
sub dword [ebp - 0x14], 0xcda92f7c
mov dword [ebp - 0x10], 0xc7b10927
sub dword [ebp - 0x10], 0x7b64c4f9
mov dword [ebp - 0xc], 0xa28a91e8
add dword [ebp - 0xc], 0x5d756e18
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xc8511ba4
add dword [ebp - 0x18], 0xac214db2
mov dword [ebp - 0x14], 0xfba0b1cb
add dword [ebp - 0x14], 0x45cbafaa
mov dword [ebp - 0x10], 0x928c26a8
sub dword [ebp - 0x10], 0x2f1cba3c
mov dword [ebp - 0xc], 0xad9f76a7
sub dword [ebp - 0xc], 0xad9f76a7
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3c60b
push 0
call eax
mov ecx, 0x91680480
add ecx, 0x6e985a94
xor edi, edi
add edi, eax
mov ebx, 0x93855850
add ebx, 0x6cbba7b0
add ebx, dword [ebp - 8]
mov esi, 0x4b2f839
add esi, 0xb550ce7f
mov dword [ebp - 4], 0x281185f5
mov edx, dword [ebx]
sub dword [ebp - 4], edx
add edx, esi
sub dword [ebp - 4], ebx
mov dword [edi], edx
xor dword [ebp - 4], ecx
add edi, 0x274e4d8c
add edi, 0xd8b1b278
add ebx, 0x3c18a480
add ebx, 0xc3e75b84
loop 0x406236
add eax, 0x467f9c2b
add eax, 0xb981d2f8
xor ebx, ebx
add ebx, eax
add eax, 0x771cf3e
add eax, 0xf88e30c7
mov ecx, 0x720800f6
sub ecx, 0x71c800f6
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4155de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4155ed
pop dword [ebp - 0x34]
mov eax, 0x4155ed
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3d1ee
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x428f
xor esi, esi
add esi, eax
mov edx, 0x436000
add edx, dword [ebp - 0x34]
mov edi, 0x5e657998
add dword [ebp - 0x18], 0x69ae2ba1
mov ebx, dword [edx]
xor dword [ebp - 0x24], esi
add ebx, edi
xor dword [ebp - 0x20], eax
mov dword [esi], ebx
sub dword [ebp - 0x14], 0x3fcd03c6
add esi, 0x4d4e8ec3
add esi, 0xb2b17141
add edx, 4
loop 0x415632
add eax, 0x21e7d510
sub eax, 0x21e6d801
mov ebx, eax
add eax, 5
mov ecx, 0xf56950b2
sub ecx, 0xf52950b2
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x403364
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x2446920], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x4033b0
push 0x402e08
push 0x402e14
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402e28
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x44e4c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x44e4cc]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.0040335d
mov eax, dword [0x44e4d0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x44e4d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4033ef
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2446920], 0xc
mov dword [ebp - 4], eax
jne 0x403451
push ebx
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2446920]
cmp eax, 0xfa9
jne 0x40346d
mov dword [0x2445ebc], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40347a
mov dword [0x244586c], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x2445eb8], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2446920], 0x213
mov dword [ebp - 0x18], edx
jne 0x4034ba
push 0x402e40
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00403357
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x4033ec
cmp dword [0x2446920], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x403524
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x40352d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2446920]
mov ecx, dword [0x2445870]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4035a0
mov edi, ecx
mov ebx, eax
cmp dword [0x2446920], 0x959
jne 0x403594
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402e54
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.00403364
add edi, 8
dec ebx
jne 0x403551
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403966
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x2446920], 0x400
push edi
jne 0x4039b8
push esi
push esi
call fcn.00403c46
push esi
push esi
call fcn.00403c46
push esi
push esi
push esi
call fcn.004044e0
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403332
fstp st(0)
push esi
call fcn.00404565
pop ecx
push esi
call fcn.004042f7
pop ecx
mov eax, dword [0x44eb54]
mov dword [0x2446920], eax
mov eax, dword [0x44eb2c]
mov dword [0x2446924], eax
call fcn.00403674
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403a1f
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a2d
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x4039da
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x4031ac
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4031e8
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403a5c
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a65
inc edi
cmp edi, 0x11915
jl 0x403a2f
mov eax, dword [0x2445870]
mov dword [0x2445eb4], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a017
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44de30]
jne 0x40a021
repz ret
jmp fcn.0040d7d9
Function at 0x40c95b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405ee3
and dword [ebp - 4], 0
cmp dword [0x44f46c], 0
mov ebx, eax
jne 0x40ca0c
push 0x402374
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cabd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402368
push edi
call esi
test eax, eax
je 0x40cabd
push eax
call fcn.00405e71
mov dword [esp], 0x402358
push edi
mov dword [0x44f46c], eax
call esi
push eax
call fcn.00405e71
mov dword [esp], 0x402344
push edi
mov dword [0x44f470], eax
call esi
push eax
call fcn.00405e71
mov dword [esp], 0x402328
push edi
mov dword [0x44f474], eax
call esi
push eax
call fcn.00405e71
pop ecx
mov dword [0x44f47c], eax
test eax, eax
je 0x40ca0c
push 0x402310
push edi
call esi
push eax
call fcn.00405e71
pop ecx
mov dword [0x44f478], eax
mov eax, dword [0x44f478]
cmp eax, ebx
je 0x40ca64
cmp dword [0x44f47c], ebx
je 0x40ca64
push eax
call fcn.00405eec
push dword [0x44f47c]
mov esi, eax
call fcn.00405eec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ca64
test edi, edi
je 0x40ca64
call esi
test eax, eax
je 0x40ca5b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ca5b
test byte [ebp - 0xc], 1
jne 0x40ca64
or dword [ebp + 0x10], 0x200000
jmp 0x40ca9d
mov eax, dword [0x44f470]
cmp eax, ebx
je 0x40ca9d
push eax
call fcn.00405eec
pop ecx
test eax, eax
je 0x40ca9d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ca9d
mov eax, dword [0x44f474]
cmp eax, ebx
je 0x40ca9d
push eax
call fcn.00405eec
pop ecx
test eax, eax
je 0x40ca9d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f46c]
call fcn.00405eec
pop ecx
test eax, eax
je 0x40cabd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cabf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret