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

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x148]
mov eax, dword [ebx + 0x124]
test eax, eax
je 0x4023cc
mov dword [ebx + 0x124], 0
mov eax, ebx
pop ebx
add esp, 0x140
ret
mov ecx, dword [ebx + 0x128]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4023ea
pop ebx
add esp, 0x140
ret
push esi
push edi
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x417a34]
pop edi
test eax, eax
pop esi
jne 0x4023c2
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4023c2
mov edx, eax
and edx, 4
cmp dl, 4
je 0x40243c
and eax, 2
cmp al, 2
jne 0x4023c2
push ebx
call fcn.004023a0
add esp, 4
pop ebx
add esp, 0x140
ret

Function at 0x403cf0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x110
lea eax, [esp]
push esi
mov esi, dword [esp + 0x118]
push 3
push esi
push eax
call fcn.0040b8c0
mov eax, dword [0x4173ec]
add esp, 0xc
cmp eax, 1
jle 0x403d2d
movsx ecx, byte [esp + 4]
push 0x103
push ecx
call fcn.0040b841
add esp, 8
jmp 0x403d40
movsx edx, byte [esp + 4]
mov eax, dword [0x4171e0]
mov ax, word [eax + edx*2]
and eax, 0x103
test eax, eax
je 0x403d65
cmp byte [esp + 5], 0x3a
jne 0x403d65
xor ecx, ecx
mov byte [esp + 6], 0x5c
mov cl, byte [esi]
mov byte [esp + 7], 0
mov dl, byte [ecx + 0x433160]
mov byte [esp + 4], dl
jmp 0x403d6f
mov byte [esp + 4], 0x5c
mov byte [esp + 5], 0
lea eax, [esp + 0x14]
push 0x80
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0xa8]
push 0x80
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x403dc1
mov eax, dword [0x433274]
push 0x41553c
push eax
call fcn.0040aba9
add esp, 8
xor eax, eax
pop esi
add esp, 0x110
ret
mov esi, 0x415538
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403dfd
test cl, cl
je 0x403dea
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403dfd
add eax, 2
add esi, 2
test cl, cl
jne 0x403dca
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
pop esi
add esp, 0x110
ret
sbb eax, eax
pop esi
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add esp, 0x110
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403e4a
mov ecx, dword [0x433274]
push 0x41556c
push ecx
call fcn.0040aba9
add esp, 8
mov eax, 0x20
ret
and eax, 0x37
ret
Function at 0x405330
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x405345
or eax, 0xffffffff
pop esi
mov dword [0x415b68], eax
not eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [0x415b68]
mov esi, edx
dec edx
test esi, esi
je 0x405378
push ebx
lea esi, [edx + 1]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x415768]
xor eax, edx
inc ecx
dec esi
jne 0x405359
pop ebx
mov dword [0x415b68], eax
pop esi
not eax
ret

Function at 0x405450
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x432944]
mov ecx, eax
inc eax
test ecx, ecx
mov dword [0x432944], eax
jle 0x405468
push 0
call fcn.0040b656
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4054c3
cmp ebp, 0xb
je 0x40548f
cmp ebp, 0xe
je 0x40548f
cmp ebp, 0xf
je 0x40548f
cmp ebp, 0xa
je 0x40548f
cmp ebp, 0x12
jne 0x40549c
push 0x4163e0
call fcn.0040ba8c
add esp, 4
mov edx, dword [0x433274]
push edx
call fcn.0040aa9c
mov eax, dword [ebp*4 + 0x415304]
push esi
push eax
push 0x4163c8
push 0x416f98
call fcn.0040aba9
add esp, 0x14
mov ecx, dword [0x43294c]
test ecx, ecx
je 0x4055b8
mov eax, dword [0x433288]
cmp ecx, eax
je 0x40550c
mov eax, dword [0x432948]
test eax, eax
je 0x4054f2
push eax
call fcn.0040b5a0
mov ecx, dword [0x43294c]
add esp, 4
push ecx
call fcn.004039c0
mov ecx, dword [0x43294c]
push ecx
call fcn.0040abdb
add esp, 8
jmp 0x4055b8
push ebx
mov ebx, dword [0x433268]
push edi
push eax
push 0x416398
push 0x416f98
xor edi, edi
call fcn.0040aba9
mov edx, dword [0x433268]
mov eax, dword [0x432948]
push edi
push edx
push eax
call fcn.0040aa10
mov esi, dword [0x417a48]
mov eax, dword [0x433268]
add esp, 0x18
mov dword [0x43327c], eax
test esi, esi
je 0x405583
mov ecx, dword [0x432948]
push ecx
push esi
call fcn.00409750
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
add edx, ecx
add edx, eax
mov eax, dword [0x43327c]
add esp, 8
inc edi
lea eax, [eax + edx + 0x2e]
mov dword [0x43327c], eax
mov esi, dword [esi + 0x58]
test esi, esi
jne 0x405550
mov ecx, dword [0x432948]
mov edx, dword [0x433278]
push ecx
mov ecx, dword [0x433284]
push edx
push ecx
sub eax, ebx
push ebx
push eax
push edi
call fcn.00409f40
push 0
mov dword [0x432948], 0
call fcn.0040b5a0
add esp, 0x1c
pop edi
pop ebx
mov eax, dword [0x417a40]
test eax, eax
je 0x4055ca
push eax
call fcn.0040abdb
add esp, 4
mov eax, dword [0x417a44]
test eax, eax
je 0x4055dc
push eax
call fcn.0040abdb
add esp, 4
mov eax, dword [0x433288]
test eax, eax
je 0x4055ee
push eax
call fcn.0040abdb
add esp, 4
call fcn.00405600
push ebp
call fcn.0040b656
pop esi
pop ebp
nop
nop
nop
nop
nop
Function at 0x4072e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x432958]
push esi
test eax, eax
je 0x407391
mov eax, dword [0x433288]
test eax, eax
je 0x407391
push ebx
mov esi, 0x415104
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x407329
test cl, cl
je 0x407325
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x407329
add eax, 2
add esi, 2
test cl, cl
jne 0x407301
xor eax, eax
jmp 0x40732e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
je 0x407391
mov eax, dword [0x417a48]
test eax, eax
jne 0x407348
push 0x417a5c
push 0x4168a8
jmp 0x407389
xor edx, edx
test eax, eax
je 0x40737f
push ebp
mov ecx, dword [eax + 8]
cmp edx, ecx
jae 0x407365
mov esi, dword [eax + 0x48]
mov ebp, dword [eax + 0x18]
cmp byte [esi + ebp - 1], 0x2f
je 0x407365
mov edx, ecx
mov eax, dword [eax + 0x58]
test eax, eax
jne 0x40734f
test edx, edx
pop ebp
je 0x40737f
mov eax, dword [0x433288]
push edx
push eax
call fcn.00403740
jmp 0x40738e
push 0x417a5c
push 0x416864
call fcn.004056e0
add esp, 8
mov eax, dword [0x417a44]
pop esi
test eax, eax
je 0x4073ae
push eax
call fcn.0040abdb
add esp, 4
mov dword [0x417a44], 0
mov eax, dword [0x433288]
test eax, eax
je 0x4073ca
push eax
call fcn.0040abdb
add esp, 4
mov dword [0x433288], 0
mov eax, dword [0x417a1c]
test eax, eax
je 0x4073ea
call fcn.0040a2d0
test eax, eax
je 0x4073ea
push 0x416838
push eax
call fcn.00405450
add esp, 8
call fcn.00405600
mov ecx, dword [esp + 4]
push ecx
call fcn.0040b656
nop
nop
nop
nop
nop
nop
nop
push 0x4168e0
push 9
call fcn.00405450
add esp, 8
ret
Function at 0x40ff81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x417808
cmp edx, dword [eax]
je 0x40ffa3
add eax, 8
inc ecx
cmp eax, 0x417898
jl 0x40ff94
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x417808]
jne 0x4100d1
mov eax, dword [0x4329f8]
cmp eax, 1
je 0x4100ab
test eax, eax
jne 0x40ffd4
cmp dword [0x417404], 1
je 0x4100ab
cmp edx, 0xfc
je 0x4100d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41000b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00410820
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ebe0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41004e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ebe0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41481c
push edi
call fcn.0040b8c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00410820
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410830
lea eax, [ebp - 0xa0]
push 0x4147fc
push eax
call fcn.00410830
push dword [esi + 0x41780c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410830
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041172b
add esp, 0x2c
pop edi
jmp 0x4100d1
lea eax, [ebp + 8]
lea esi, [esi + 0x41780c]
push 0
push eax
push dword [esi]
call fcn.0040ebe0
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]
pop esi
leave
ret

Function at 0x41258d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4125b8
test byte [esp + 8], 0x80
je 0x4125a7
and al, 0xfe
jmp 0x4125a9
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4125c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ea24
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ea24
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x412d06
test byte [esp + 8], 2
je 0x412d06
mov dword [0x432990], 0xd
mov dword [0x432994], 5
jmp 0x412ce1
xor eax, eax
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x1b557ad8
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x6f157c7f
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x65592162
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x64a90f8a
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401c50
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x840
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x83c], eax
push esi
xor esi, esi
push 0x208
lea eax, [esp + 0x222]
push esi
push eax
mov word [esp + 0x228], si
call fcn.004315d0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x220]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea edx, [esp + 0x16]
push esi
push edx
mov word [esp + 0x1c], si
call fcn.004315d0
push 0x208
lea eax, [esp + 0x43a]
push esi
push eax
mov word [esp + 0x440], si
call fcn.004315d0
push 0x208
lea ecx, [esp + 0x652]
push esi
push ecx
mov word [esp + 0x658], si
call fcn.004315d0
lea edx, [esp + 0x44c]
push edx
lea eax, [esp + 0x244]
push eax
lea edx, [esp + 0x660]
lea ecx, [esp + 0x3c]
call fcn.004018b0
xor ecx, ecx
xor eax, eax
add esp, 0x2c
cmp word [esp + 0x10], si
mov edx, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
je 0x401d55
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
call fcn.00401ba0
add esp, 0xc
test eax, eax
jne 0x401d49
lea edx, [esi + 1]
xor ecx, ecx
jmp 0x401d55
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x438]
call fcn.00401270
add esp, 0x10
call fcn.004017b0
mov eax, dword [0x458464]
cmp eax, esi
pop esi
je 0x401d8b
mov dword [eax + 0x1c], 0x2710
call fcn.004017b0
mov ecx, dword [esp + 0x83c]
xor ecx, esp
mov eax, 1
call fcn.00429d78
add esp, 0x840
ret

Function at 0x402010
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x44
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
push 0x3e
lea eax, [esp + 0x12]
push 0
push eax
mov esi, ecx
mov word [esp + 0x18], 0
call fcn.004315d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea edi, [esi + 0x298]
push edi
push 0x20
lea ecx, [esp + 0x14]
push ecx
push 0x44bcf4
push str.Level
add esi, 0x10
push esi
call ebx
cmp word [esp + 0xc], 0
je 0x40207d
lea edx, [esp + 0xc]
push str.DEFAULT
push edx
call fcn.00429f18
add esp, 8
test eax, eax
jne 0x4020b7
push edi
push 0x20
lea eax, [esp + 0x14]
push eax
push 0x44bcf4
push str.Level
push 0x44bdc8
call ebx
cmp word [esp + 0xc], 0
jne 0x4020a5
mov edi, str.FATAL
jmp 0x4020bb
push edi
push str.DEFAULT
push str.Level
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea edi, [esp + 0xc]
call fcn.00401db0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00429d78
add esp, 0x44
ret
Function at 0x4020e0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x28c
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x288], eax
push ebp
mov ebp, dword [esp + 0x294]
push esi
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov esi, ecx
mov word [esp + 0x14], 0
call fcn.004315d0
add esp, 0xc
test esi, esi
je 0x40216d
cmp word [esi], 0
je 0x40216d
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0042a40e
lea eax, [esp + 0x18]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402140
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0xf0
jge 0x4021d1
cmp word [esp + esi*2 + 6], 0x5c
je 0x4021dc
mov word [esp + esi*2 + 8], 0x5c
add esi, 1
jmp 0x4021dc
push 0x104
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 8]
push 0x5c
push eax
call fcn.0042a3de
add esp, 8
test eax, eax
je 0x402197
mov word [eax], 0
lea eax, [esp + 8]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4021a0
sub eax, edx
sar eax, 1
mov esi, eax
push 0xffffffffffffffff
mov ecx, 0x104
push str.Log_
sub ecx, esi
push ecx
lea edx, [esp + esi*2 + 0x14]
push edx
call fcn.0042a40e
add esp, 0x10
test eax, eax
jge 0x4021d9
or eax, 0xffffffff
jmp 0x4022a0
add esi, 5
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4021f8
push eax
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
lea edx, [esp + 0x214]
lea ebx, [ebp + 0x10]
push edx
call fcn.00401ea0
test eax, eax
jne 0x402215
or eax, 0xffffffff
jmp 0x40229f
push edi
push 0xffffffffffffffff
mov edi, 0x104
sub edi, esi
push str.log.ini
lea esi, [esp + esi*2 + 0x18]
push edi
push esi
call fcn.0042a40e
add esp, 0x10
test eax, eax
jl 0x402276
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push eax
lea ecx, [ebp + 0x298]
push 0x104
push ecx
call fcn.0042a40e
add esp, 0x10
test eax, eax
jl 0x402276
mov ecx, ebp
call fcn.00402010
push 0xffffffffffffffff
lea edx, [esp + 0x21c]
push edx
push edi
push esi
mov ebx, eax
call fcn.0042a40e
add esp, 0x10
test eax, eax
jge 0x40227b
or eax, 0xffffffff
jmp 0x40229e
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push eax
push 0x104
add ebp, 0x90
push ebp
call fcn.0042a40e
add esp, 0x10
mov dword [0x458478], ebx
mov eax, ebx
pop edi
pop ebx
mov ecx, dword [esp + 0x290]
pop esi
pop ebp
xor ecx, esp
call fcn.00429d78
add esp, 0x28c
ret 4
Function at 0x4023f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
lea edi, [esi + 0x4a0]
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
cmp dword [esi + 4], 0xffffffff
jne 0x40246b
push ebp
push ebp
push 2
push ebp
push 1
push 0x40000000
lea eax, [esi + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x40244c
push edi
mov dword [0x458478], ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 8
push ebp
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esi + 8], ebp
mov dword [esp + 0x28], 0xfeff
mov dword [esp + 0x24], ebp
call ebx
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
push ebp
lea eax, [esp + 0x10]
push eax
add edi, edi
push edi
push ecx
push edx
mov dword [esp + 0x20], ebp
call ebx
mov eax, dword [esp + 0xc]
add dword [esi + 8], eax
cmp dword [esi + 8], 0x200000
jbe 0x4024ba
mov ecx, dword [esi + 4]
push ebp
push ebp
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 4]
push ebp
lea edx, [esp + 0x10]
push edx
push edi
push eax
push ecx
call ebx
mov dword [esi + 8], ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x403fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403fb7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403fe8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403fe4
cmp esi, eax
jae 0x403fe8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403fd4
cmp esi, eax
jb 0x403fee
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x404eb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447dd2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040f2f0
mov edx, dword [esi + 0xc4]
add edx, dword [esi + 0xb4]
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
add edi, edx
mov edx, dword [esi + 0xc8]
add edx, dword [esi + 0xb8]
push 0x457500
add ebx, edx
mov edx, dword [esi + 0xcc]
add edx, dword [esi + 0xbc]
push 0x64
sub eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xd0]
add eax, dword [esi + 0xc0]
sub ecx, eax
mov dword [esp + 0x30], ecx
call fcn.0042ae70
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
test ebp, ebp
mov dword [esp + 0x38], 0
je 0x404f60
push ebp
call fcn.0040c2e0
mov dword [ebp], vtable.CVClientContainer.0
jmp 0x404f62
xor ebp, ebp
test ebp, ebp
mov dword [esp + 0x38], 0xffffffff
mov dword [esi + 0x190], ebp
je 0x404fca
mov eax, dword [esp + 0x28]
sub eax, ebx
sub ebx, dword [esi + 8]
mov ecx, eax
mov eax, dword [esp + 0x24]
sub eax, edi
sub edi, dword [esi + 4]
mov edx, eax
mov eax, dword [ebp + 0x18]
test al, 1
je 0x404f9e
test byte [esi + 0x18], 0x80
je 0x404f9e
or eax, 0x80
jmp 0x404fa3
and eax, 0xffffff7f
add ecx, ebx
push ecx
add edx, edi
push edx
push ebx
mov dword [ebp + 0x18], eax
push edi
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push ebp
mov eax, esi
call fcn.0040c4f0
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret