joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442dd0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x474eb8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x442df4
add eax, 8
inc ebp
cmp eax, 0x474f48
jb 0x442de5
cmp ecx, dword [ebp*8 + 0x474eb8]
jne 0x442f9b
mov eax, dword [0x477f64]
cmp eax, 1
je 0x442f5d
test eax, eax
jne 0x442e20
cmp dword [0x472624], 1
je 0x442f5d
cmp ecx, 0xfc
je 0x442f9b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x442e5b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x442ea4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x45e154
add ebx, ecx
push ebx
call fcn.00444cf0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x46b8ec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x474ebc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00446650
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x478540]
test eax, eax
je 0x442f6e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x442f78
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x474ebc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x443a10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x443a85
push ebx
call fcn.00443b40
add esp, 4
test eax, eax
jne 0x443a53
call fcn.0043d0b0
mov dword [eax], 0xf
call fcn.0043d0a0
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x443a95
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x443b2f
inc eax
cmp eax, 0x104
ja 0x443b2f
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x443ae7
cmp eax, ecx
jg 0x443ac1
mov eax, ecx
push eax
call fcn.0043b4e0
mov edx, eax
add esp, 4
test edx, edx
jne 0x443b02
call fcn.0043d0a0
mov dword [eax], 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x443b02
call fcn.0043d0a0
mov dword [eax], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x443b40
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x443b4e
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x443b7d
cmp eax, 1
je 0x443b7d
mov eax, 1
ret
xor eax, eax
ret
Function at 0x443f60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x443f8c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x478540]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x443fc7
push 2
push ebp
push ecx
call fcn.004419d0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x444129
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x444071
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x444022
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x44400f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x443ff2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44411a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x44406d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x443fee
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x444109
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4440c5
cmp eax, 5
jne 0x4440ae
call fcn.0043d0a0
mov dword [eax], 9
call fcn.0043d0b0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0043d020
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4440e5
cmp byte [ebp], 0x1a
jne 0x4440e5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0043d0a0
mov dword [eax], 0x1c
call fcn.0043d0b0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x44406d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44415a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x444071
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x444071
Function at 0x445d20
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 0x445d43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043d020
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x445d68
test byte [esp + 8], 2
je 0x445d68
call fcn.0043d0a0
mov dword [eax], 0xd
call fcn.0043d0b0
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4477e0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0043a510
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.004419d0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x447920
push 2
push ebp
push ebx
call fcn.004419d0
add esp, 0xc
cmp eax, 0xffffffff
je 0x447920
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4478c1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00448980
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x447866
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00443f60
add esp, 0xc
cmp eax, 0xffffffff
je 0x447882
sub esi, eax
test esi, esi
jle 0x44789a
jmp 0x447857
call fcn.0043d0b0
cmp dword [eax], 5
jne 0x447897
call fcn.0043d0a0
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00448980
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004419d0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x447907
push 0
push ecx
push ebx
call fcn.004419d0
add esp, 0xc
push ebx
call fcn.0043ce80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x447907
call fcn.0043d0a0
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0043d0b0
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.004419d0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x448840
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x47852c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x448888
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44886c
mov eax, 1
jmp 0x448883
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x448968
mov eax, 2
mov dword [0x47852c], eax
cmp eax, 2
jne 0x4488a8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x44897a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4488c3
mov ecx, dword [0x478288]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x4488e2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.0043b4e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4488f9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44895f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x448940
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x44895f
push esi
call fcn.0043b470
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x44896f
push esi
call fcn.0043b470
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0043b470
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x448d40
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x448efe
push 0x3d
push edi
call fcn.0043be40
mov esi, eax
add esp, 8
test esi, esi
je 0x448efe
cmp edi, esi
je 0x448efe
mov dl, byte [esi + 1]
mov ecx, dword [0x477f94]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x477f90]
cmp eax, ecx
jne 0x448d97
push eax
call fcn.00448fd0
add esp, 4
mov dword [0x477f90], eax
test eax, eax
jne 0x448e12
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x448dbe
mov eax, dword [0x477f98]
test eax, eax
je 0x448dbe
call fcn.00448690
test eax, eax
je 0x448e0d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x448dca
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0043b4e0
add esp, 4
mov dword [0x477f90], eax
test eax, eax
je 0x448efe
mov dword [eax], 0
mov eax, dword [0x477f98]
test eax, eax
jne 0x448e0d
push 4
call fcn.0043b4e0
add esp, 4
mov dword [0x477f98], eax
test eax, eax
je 0x448efe
mov dword [eax], 0
mov eax, dword [0x477f90]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00448f50
mov esi, eax
add esp, 8
test esi, esi
jl 0x448f0f
cmp dword [ebx], 0
je 0x448f0f
test ebp, ebp
je 0x448f07
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0043b470
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x448e69
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x448e58
lea eax, [esi*4]
push eax
push ebx
call fcn.00441a50
add esp, 8
test eax, eax
je 0x448e83
mov dword [0x477f90], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x448ef6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0043b4e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x448ef6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0043b470
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x448e87
test ebp, ebp
jne 0x448ef6
test esi, esi
jge 0x448f19
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00441a50
add esp, 8
test eax, eax
je 0x448efe
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x477f90], eax
jmp 0x448e87
Function at 0x44f3e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x44f427
call fcn.0045247b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44f427
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x44f41e
xor eax, eax
jmp 0x44f42f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044f435
pop edi
pop esi
pop ebx
ret 4
Function at 0x409370
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4093b5
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040a859
add esp, 0x20c
ret
cmp word [esi], 0
mov ecx, dword [esp + 0x214]
je 0x4093cc
add esi, 2
dec ecx
cmp word [esi], 0
jne 0x4093c2
cmp word [esp + 4], 0
je 0x4093f7
lea edx, [esp + 4]
sub edx, esi
nop word [eax + eax]
cmp ecx, 1
jb 0x409414
mov ax, word [edx + esi]
dec ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x4093e0
mov ecx, dword [esp + 0x20c]
xor eax, eax
mov word [esi], ax
mov al, 1
pop esi
xor ecx, esp
call fcn.0040a859
add esp, 0x20c
ret
call fcn.0040db05
int3
Function at 0x409b10
Capabilities:
Create directory

Disassembly:
mov eax, 0x200c
call fcn.0041cce0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x428430]
mov ebp, ecx
test edi, edi
jne 0x409b77
push 0x1000
mov edx, str.HOME
lea ecx, [esp + 0x14]
call fcn.00409420
add esp, 4
test al, al
je 0x409c5a
lea eax, [esp + 0x10]
push eax
call fcn.004117e4
mov edi, dword [0x428430]
add esp, 4
mov dword [edi*4 + 0x43b460], eax
inc edi
mov dword [0x428430], edi
xor esi, esi
test edi, edi
jle 0x409bc4
nop dword [eax]
mov eax, dword [esi*4 + 0x43b460]
mov ecx, ebp
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x409bb6
test dx, dx
je 0x409bb2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x409bb6
add ecx, 4
add eax, 4
test dx, dx
jne 0x409b90
xor eax, eax
jmp 0x409bbb
sbb eax, eax
or eax, 1
test eax, eax
je 0x409beb
inc esi
cmp esi, edi
jl 0x409b80
mov ecx, ebp
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409bd0
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x409bef
cmp word [ebp + 2], 0x3a
jne 0x409bef
mov al, 1
jmp 0x409c41
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x409c12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409c12
mov bl, 1
jmp 0x409c16
test bl, bl
je 0x409c3f
cmp dword [0x428430], 0x400
jge 0x409c3f
push ebp
call fcn.004117e4
mov ecx, dword [0x428430]
add esp, 4
mov dword [ecx*4 + 0x43b460], eax
inc ecx
mov dword [0x428430], ecx
mov al, bl
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a859
add esp, 0x200c
ret
mov ecx, str.HOME
call fcn.00409a10
int3

Function at 0x409d70
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
mov eax, dword [0x428434]
sub esp, 0x20
test eax, eax
je 0x409da6
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409d9a
push 0
push dword [0x428434]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x428434]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x440462], 0
je 0x409e7b
push ebx
push ebp
push esi
mov eax, 0x414
mov dword [esp + 0xc], 0
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x438c60
mov dword [esp + 0x20], 0x423c78
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x423c78
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x438c60
call ebp
cmp eax, 0xffffffff
je 0x409e77
test al, 0x10
je 0x409e77
push 0x64
call ebx
mov eax, 0x414
mov dword [esp + 0x10], 0
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x438c60
mov dword [esp + 0x20], 0x423c78
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x423c78
call edi
inc esi
cmp esi, 0x14
jl 0x409e14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x409ec0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x1000
mov ebp, eax
xor eax, eax
push 0x43c460
push eax
mov word [0x428c60], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40a16d
xor ebx, ebx
mov dword [ebp], 0x43c460
cmp dword [esp + 0x10], ebx
jle 0x40a162
nop dword [eax]
cmp ebx, 1
jl 0x409f49
cmp word [0x428c60], 0
mov ecx, 0x8000
mov eax, 0x428c60
je 0x409f43
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409f30
cmp ecx, 1
jb 0x40a16d
mov dword [eax], 0x20
mov edi, dword [ebp + ebx*4]
mov esi, str.__t_n_v_
mov ecx, 0x20
push ecx
push edi
call fcn.0040b3b5
add esp, 8
test eax, eax
jne 0x409fc9
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x409f57
mov edx, 0x8000
mov esi, dword [ebp + ebx*4]
mov ecx, 0x428c60
cmp word [0x428c60], ax
je 0x409f9a
nop word [eax + eax]
add ecx, 2
dec edx
cmp word [ecx], 0
jne 0x409f90
movzx eax, word [esi]
mov edi, eax
test ax, ax
je 0x409fbf
cmp edx, 1
jb 0x40a16d
add esi, 2
mov word [ecx], ax
add ecx, 2
dec edx
movzx eax, word [esi]
test ax, ax
jne 0x409fa4
xor eax, eax
mov word [ecx], ax
jmp 0x40a157
cmp word [0x428c60], 0
mov ecx, 0x8000
mov eax, 0x428c60
je 0x409ff3
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409fe0
cmp ecx, 1
jb 0x40a16d
mov dword [eax], 0x22
mov edi, dword [ebp + ebx*4]
nop dword [eax]
movzx eax, word [edi]
xor edx, edx
mov ecx, eax
cmp eax, 0x5c
jne 0x40a01f
nop dword [eax]
movzx eax, word [edi + 2]
add edi, 2
inc edx
cmp eax, 0x5c
je 0x40a010
mov ecx, eax
xor esi, esi
test cx, cx
je 0x40a0f4
cmp cx, 0x22
jne 0x40a074
lea edx, [edx*2 + 1]
test edx, edx
jle 0x40a0b2
nop dword [eax + eax]
cmp word [0x428c60], 0
mov ecx, 0x8000
mov eax, 0x428c60
je 0x40a067
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x40a054
cmp ecx, 1
jb 0x40a16d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x40a040
jmp 0x40a0b2
test edx, edx
jle 0x40a0b2
nop dword [eax + eax]
cmp word [0x428c60], 0
mov ecx, 0x8000
mov eax, 0x428c60
je 0x40a0a7
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x40a094
cmp ecx, 1
jb 0x40a16d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x40a080
cmp word [0x428c60], 0
mov ecx, 0x8000
movzx edx, word [edi]
mov eax, 0x428c60
je 0x40a0e3
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x40a0d0
cmp ecx, 1
jb 0x40a16d
xor ecx, ecx
mov word [eax], dx
mov word [eax + 2], cx
add edi, 2
jmp 0x40a000
add edx, edx
test edx, edx
jle 0x40a12e
nop word [eax + eax]
cmp word [0x428c60], 0
mov ecx, 0x8000
mov eax, 0x428c60
je 0x40a123
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x40a114
cmp ecx, 1
jb 0x40a16d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x40a100
cmp word [0x428c60], 0
mov ecx, 0x8000
mov eax, 0x428c60
je 0x40a151
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x40a142
cmp ecx, 1
jb 0x40a16d
mov dword [eax], 0x22
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x409f10
pop edi
pop esi
pop ebp
mov eax, 0x428c60
pop ebx
pop ecx
ret
call fcn.0040db05
int3
Function at 0x40b089
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b0c8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b0c8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b0c8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b0c8
cmp dword [ecx + 0x74], 0xe
jbe 0x40b0c8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412d16
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fa7c
push 0x41fa74
push str.FlsAlloc
push 0x1e
call fcn.00412c53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412d4a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e150]
call esi
jmp 0x412d50
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412d94
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fa8c
push 0x41fa84
push str.FlsGetValue
push 0x20
call fcn.00412c53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412dcb
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]