joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [esp + 0x118]
push edi
call fcn.00403f20
add esp, 4
cmp eax, 3
jb 0x402b4d
cmp word [edi], 0x5c
je 0x402b32
cmp word [edi + 2], 0x3a
jne 0x402b4d
cmp word [edi + 4], 0x5c
jne 0x402b4d
mov eax, dword [esp + 0x114]
push edi
push eax
call fcn.00403ef0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x104
ret
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0xc]
push edx
call fcn.00402db0
mov esi, dword [esp + 0x118]
add esp, 4
mov ebx, eax
lea eax, [esp + 0xc]
push ebx
push eax
push esi
call fcn.00402c70
add esp, 0xc
mov word [esi + ebx*2], 0
push 0x40c0d4
push esi
call fcn.00403eb0
add esp, 8
push edi
push esi
call fcn.00403eb0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x402e30
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 0x402e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404530
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x402e76
test byte [esp + 8], 2
je 0x402e76
mov dword [0x40f92c], 0xd
mov dword [0x40f930], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x404180
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x404199
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40419b
xor eax, eax
test eax, eax
je 0x4041ac
push eax
call fcn.00404530
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x404220
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b0d0
push 0x407f08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40f944], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40f940], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40f93c], ecx
shr eax, 0x10
mov dword [0x40f938], eax
call fcn.00407ec0
test eax, eax
jne 0x40428a
push 0x1c
call fcn.004043c0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00407cc0
call fcn.004075c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x410e90], eax
call fcn.00407b60
mov dword [0x40f920], eax
test eax, eax
je 0x4042bd
mov eax, dword [0x410e90]
test eax, eax
jne 0x4042c7
push 0xffffffffffffffff
call fcn.00404420
add esp, 4
call fcn.004078b0
call fcn.004077c0
call fcn.004043f0
mov esi, dword [0x410e90]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4043a6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40430e
test al, al
je 0x40430e
and eax, 0xff
push eax
call fcn.00407760
add esp, 4
test eax, eax
je 0x4042e8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4042e8
cmp byte [esi], 0x22
jne 0x404317
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x404327
cmp al, 0x20
ja 0x404327
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404317
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x404348
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40434d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00404420
jmp 0x40438b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x404317
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4043a6

Function at 0x404460
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40f974]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40447f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40f970], 1
mov byte [0x40f96c], bl
jne 0x4044d9
mov ecx, dword [0x410e88]
test ecx, ecx
je 0x4044c7
mov esi, dword [0x410e84]
sub esi, 4
cmp esi, ecx
jb 0x4044c7
mov eax, dword [esi]
test eax, eax
je 0x4044c0
call eax
mov ecx, dword [0x410e88]
sub esi, 4
cmp esi, ecx
jae 0x4044b2
push 0x40c020
push 0x40c018
call fcn.00404510
add esp, 8
push 0x40c02c
push 0x40c024
call fcn.00404510
add esp, 8
test ebx, ebx
jne 0x404500
push ebp
mov dword [0x40f974], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x407b60
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40fc18]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x407ba2
call edi
mov esi, eax
test esi, esi
je 0x407b8c
mov eax, 1
jmp 0x407b9d
call ebp
mov ebx, eax
test ebx, ebx
je 0x407caf
mov eax, 2
mov dword [0x40fc18], eax
cmp eax, 1
jne 0x407c42
test esi, esi
jne 0x407bbb
call edi
mov esi, eax
test esi, esi
je 0x407caf
cmp word [esi], 0
mov eax, esi
je 0x407bd5
add eax, 2
cmp word [eax], 0
jne 0x407bc3
add eax, 2
cmp word [eax], 0
jne 0x407bc3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x407c34
push edi
call fcn.004045f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407c34
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x407c26
push ebx
call fcn.004045a0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x407caf
test ebx, ebx
jne 0x407c53
call ebp
mov ebx, eax
test ebx, ebx
je 0x407caf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x407c6b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407c5b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407c5b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004045f0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x407c8d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x408020
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40cf78
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x408044
add eax, 8
inc ebp
cmp eax, 0x40d008
jb 0x408035
cmp ecx, dword [ebp*8 + 0x40cf78]
jne 0x4081eb
mov eax, dword [0x40f928]
cmp eax, 1
je 0x4081ad
test eax, eax
jne 0x408070
cmp dword [0x40c254], 1
je 0x4081ad
cmp ecx, 0xfc
je 0x4081eb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4080ab
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 0x4080f4
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 0x40ba38
add ebx, ecx
push ebx
call fcn.00403f70
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, 0x40ba18
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 + 0x40cf7c]
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.00409ec0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x410d80]
test eax, eax
je 0x4081be
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4081c8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40cf7c]
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 0x408e50
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x410e80]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x408ffd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x410d80]
lea edi, [ecx*4 + 0x410d80]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x408ffd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x408ebe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x408ecf
push 2
push ebp
push eax
call fcn.00408d90
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40902e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x408f79
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x408f2a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x408f17
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 0x408efa
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 0x40901f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x408f75
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x408ef6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x408fee
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408fc2
cmp eax, 5
jne 0x408fab
mov dword [0x40f930], eax
mov dword [0x40f92c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00404530
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 0x408fe2
cmp byte [ebp], 0x1a
jne 0x408fe2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40f92c], 0x1c
jmp 0x409007
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40f92c], 9
pop edi
pop esi
pop ebp
mov dword [0x40f930], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x408f75
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 0x40905f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x408f79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x408f79
Function at 0x409910
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x40fc54]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x409958
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x409938
mov eax, 1
jmp 0x409953
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x409a29
mov eax, 2
mov dword [0x40fc54], eax
cmp eax, 1
jne 0x409978
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, 2
jne 0x409a3b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x409993
mov ecx, dword [0x40f990]
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_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x4099b2
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004045f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4099c6
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x409a20
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x409a04
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x409a20
push edi
call fcn.004045a0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x409a30
push edi
call fcn.004045a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.004045a0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x409a40
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x40fc58]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x409a88
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x409a68
mov eax, 2
jmp 0x409a83
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x409b68
mov eax, 1
mov dword [0x40fc58], eax
cmp eax, 2
jne 0x409aa8
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 0x409b7a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x409ac3
mov ecx, dword [0x40f990]
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 0x409ae2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.004045f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x409af9
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 0x409b5f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x409b40
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 0x409b5f
push esi
call fcn.004045a0
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 0x409b6f
push esi
call fcn.004045a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004045a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401060
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3018
call fcn.0040b7a0
mov eax, dword [0x416044]
xor eax, esp
mov dword [esp + 0x3014], eax
cmp byte [0x417e64], 0
je 0x401124
mov eax, dword [esp + 0x301c]
push eax
lea ecx, [esp + 0x1014]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x3020]
push edx
lea eax, [esp + 0x1014]
push eax
lea ecx, [esp + 0x2018]
push ecx
call fcn.00403076
add esp, 0xc
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0xc]
movzx edx, word [esp + 0xa]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 8]
push edx
movzx edx, word [esp + 0x12]
push eax
movzx eax, word [esp + 0x12]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push str._02i__02i__02i__02i:_02i:_02i:_03i
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x2034]
push edx
lea eax, [esp + 0x38]
push 0x1000
push eax
call fcn.0040331c
add esp, 0x30
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x3014]
xor ecx, esp
call fcn.00402d86
add esp, 0x3018
ret

Function at 0x401140
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4018
call fcn.0040b7a0
mov eax, dword [0x416044]
xor eax, esp
mov dword [esp + 0x4014], eax
cmp byte [0x417e64], 0
je 0x4011e9
mov ecx, dword [esp + 0x401c]
lea eax, [esp + 0x4020]
push eax
push ecx
push 0x400
lea edx, [esp + 0x1c]
push 0x1000
push edx
call fcn.004032fc
add esp, 0x14
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0xe]
movzx eax, word [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
movzx ecx, word [esp + 0xe]
push edx
movzx edx, word [esp + 0x10]
push eax
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
push ecx
push edx
lea eax, [esp + 0x2030]
push str._02i__02i__02i__02i:_02i:_02i:_03i__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
lea ecx, [esp + 0x2010]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x4014]
xor ecx, esp
call fcn.00402d86
add esp, 0x4018
ret
Function at 0x4015f0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebx
push edi
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
cmp edi, 0x80010106
je 0x40160a
test edi, edi
jl 0x40164d
push esi
push 0x413d44
push 1
push 0
push 0x413d34
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jl 0x40164d
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
lea ebx, [esi + 4]
push ebx
push eax
call edx
mov edi, eax
test edi, edi
jl 0x40164d
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [esi + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
test edi, edi
jge 0x401695
mov eax, dword [esi + 8]
test eax, eax
je 0x401663
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x401679
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x40168d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop ebx
ret
Function at 0x401f70
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0xa88
mov eax, dword [0x416044]
xor eax, esp
mov dword [esp + 0xa84], eax
mov eax, dword [esp + 0xa90]
push ebx
mov ebx, dword [esp + 0xaa0]
push ebp
push esi
mov esi, dword [esp + 0xa98]
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x401fd1
lea edx, [esp + 0x478]
mov eax, ebx
sub edx, ebx
jmp 0x401fc0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401fc0
jmp 0x401ff7
xor eax, eax
jmp 0x401fe0
movzx ecx, word [eax + 0x413fe4]
mov word [esp + eax + 0x478], cx
add eax, 2
test cx, cx
jne 0x401fe0
lea ecx, [esp + 0x478]
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x890]
push str._s_s
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x88c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40216d
mov edi, dword [esp + 0xaa8]
mov ebp, dword [esp + 0xaa4]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x688]
push str._s_s
push ecx
call esi
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x5c]
push edx
push eax
lea ecx, [esp + 0x288]
push str._s_s
push ecx
call esi
add esp, 0x20
test byte [esp + 0x20], 0x10
je 0x402130
test edi, edi
je 0x40214a
mov ecx, 0x413ff8
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4020bd
test dx, dx
je 0x4020b9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4020bd
add eax, 4
add ecx, 4
test dx, dx
jne 0x402097
xor eax, eax
jmp 0x4020c2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40214a
mov ecx, 0x413ffc
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4020f9
test dx, dx
je 0x4020f5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4020f9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4020d3
xor eax, eax
jmp 0x4020fe
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40214a
push 0
lea edx, [esp + 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push edi
push ebp
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x690]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00401f70
jmp 0x40214a
mov ecx, dword [esp + 0x10]
push ebp
lea edx, [esp + 0x274]
push edx
lea eax, [esp + 0x688]
push eax
call fcn.00401c20
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402046
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xa94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00402d86
add esp, 0xa88
ret 0x14