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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x41d0b8]
je 0x4059c1
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x4059af
cmp esi, 0x17
jae 0x405b1b
push 3
call fcn.00409341
cmp eax, 1
pop ecx
je 0x405ae5
push 3
call fcn.00409341
test eax, eax
pop ecx
jne 0x4059f4
cmp dword [0x41d0b0], 1
je 0x405ae5
cmp edi, 0xfc
je 0x405b1b
push 0x401824
mov edi, 0x314
push edi
mov esi, 0x41e070
push esi
call fcn.004092d9
add esp, 0xc
test eax, eax
je 0x405a2a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f26
add esp, 0x14
mov byte [0x41e18d], bl
push 0x104
mov ebx, 0x41e089
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a6d
push 0x40180c
push 0x2fb
push ebx
call fcn.004092d9
add esp, 0xc
test eax, eax
je 0x405a6d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407f26
add esp, 0x14
push ebx
push edi
push esi
call fcn.00409265
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x405a8b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f26
add esp, 0x14
push 0x401808
push edi
push esi
call fcn.00409265
add esp, 0xc
test eax, eax
je 0x405aab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f26
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x41d0bc]
push edi
push esi
call fcn.00409265
add esp, 0xc
test eax, eax
je 0x405ad0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f26
add esp, 0x14
push 0x12010
push 0x4017e0
push esi
call fcn.004090c5
sub esp, 0xfffffff4
jmp 0x405b1b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x405b1b
cmp edi, 0xffffffff
je 0x405b1b
mov edx, dword [esi*8 + 0x41d0bc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405b04
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4061e0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x41e490]
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x40622c
call esi
mov edi, eax
cmp edi, ebx
je 0x406212
mov dword [0x41e490], 1
jmp 0x406235
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x406227
push 2
pop eax
mov dword [0x41e490], eax
jmp 0x40622c
mov eax, dword [0x41e490]
cmp eax, 1
jne 0x4062b6
cmp edi, ebx
jne 0x406248
call esi
mov edi, eax
cmp edi, ebx
jne 0x406248
xor eax, eax
jmp 0x406312
cmp word [edi], bx
mov eax, edi
je 0x40625d
inc eax
inc eax
cmp word [eax], bx
jne 0x40624f
inc eax
inc eax
cmp word [eax], bx
jne 0x40624f
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4062ab
push eax
call fcn.00409ff9
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x4062ab
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x4062a8
push dword [ebp - 4]
call fcn.00409d43
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x406312
cmp eax, 2
je 0x4062bf
cmp eax, ebx
jne 0x406241
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x406241
cmp byte [esi], bl
je 0x4062dd
inc eax
cmp byte [eax], bl
jne 0x4062d3
inc eax
cmp byte [eax], bl
jne 0x4062d3
sub eax, esi
inc eax
push eax
mov dword [ebp - 8], eax
call fcn.00409ff9
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4062fc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x406241
push dword [ebp - 8]
push esi
push edi
call fcn.00404c30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408850
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x408863
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40885f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x408880
Capabilities:
Enumerate pe sections

Disassembly:
mov ebx, ebx
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push edi
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push ebx
lea eax, [eax + ecx + 0x18]
jbe 0x4088bf
mov ebx, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp ebx, ecx
jb 0x4088b5
mov edi, dword [eax + 8]
add edi, ecx
cmp ebx, edi
jb 0x4088c1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4088a5
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4090c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00406605
xor ebx, ebx
cmp dword [0x41e620], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40919c
push 0x401a3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x409107
xor eax, eax
jmp 0x409260
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a30
push edi
call esi
cmp eax, ebx
je 0x409100
push eax
call fcn.0040659f
mov dword [esp], 0x401a20
push edi
mov dword [0x41e620], eax
call esi
push eax
call fcn.0040659f
mov dword [esp], 0x401a0c
push edi
mov dword [0x41e624], eax
call esi
push eax
call fcn.0040659f
mov dword [0x41e628], eax
lea eax, [ebp - 8]
push eax
call fcn.004056d7
test eax, eax
pop ecx
pop ecx
je 0x40916a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f26
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40919c
push 0x4019f0
push edi
call esi
push eax
call fcn.0040659f
cmp eax, ebx
pop ecx
mov dword [0x41e630], eax
je 0x40919c
push 0x4019d8
push edi
call esi
push eax
call fcn.0040659f
pop ecx
mov dword [0x41e62c], eax
mov eax, dword [0x41e62c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x409215
cmp dword [0x41e630], esi
je 0x409215
push eax
call fcn.0040660e
pop ecx
call eax
cmp eax, ebx
je 0x4091e2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41e630]
call fcn.0040660e
pop ecx
call eax
test eax, eax
je 0x4091e2
test byte [ebp - 0x18], 1
jne 0x409215
lea eax, [ebp - 0xc]
push eax
call fcn.00405754
test eax, eax
pop ecx
je 0x4091fd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f26
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40920c
or dword [ebp + 0x10], 0x200000
jmp 0x409246
or dword [ebp + 0x10], 0x40000
jmp 0x409246
mov eax, dword [0x41e624]
cmp eax, esi
je 0x409246
push eax
call fcn.0040660e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x409246
mov eax, dword [0x41e628]
cmp eax, esi
je 0x409246
push dword [ebp - 4]
push eax
call fcn.0040660e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41e620]
call fcn.0040660e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412d63
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00406851
mov ebx, dword [ebp + 8]
mov esi, eax
add esi, 0x9c
test ebx, ebx
jne 0x412d8b
or dword [esi + 8], 0x104
jmp 0x412e4f
lea eax, [ebx + 0x40]
test eax, eax
lea edi, [esi + 4]
mov dword [esi], ebx
mov dword [edi], eax
je 0x412dae
cmp byte [eax], 0
je 0x412dae
push edi
push 0x16
push 0x402c30
call fcn.0041273b
add esp, 0xc
mov eax, dword [esi]
and dword [esi + 8], 0
test eax, eax
je 0x412e0b
cmp byte [eax], 0
je 0x412e0b
mov eax, dword [edi]
test eax, eax
je 0x412dcf
cmp byte [eax], 0
je 0x412dcf
call fcn.00412ca8
jmp 0x412dd4
call fcn.00412d1b
cmp dword [esi + 8], 0
jne 0x412e65
push esi
push 0x41
push 0x402a20
call fcn.0041273b
add esp, 0xc
test eax, eax
je 0x412e5b
mov edi, dword [edi]
test edi, edi
je 0x412e04
cmp byte [edi], 0
je 0x412e04
call fcn.00412ca8
jmp 0x412e5b
call fcn.00412d1b
jmp 0x412e5b
mov edi, dword [edi]
test edi, edi
je 0x412e48
cmp byte [edi], 0
je 0x412e48
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412e1b
xor ecx, ecx
sub eax, edx
cmp eax, 3
sete cl
push 1
push 0x4128a0
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [esi + 8], 4
jne 0x412e5b
and dword [esi + 8], 0
jmp 0x412e5b
mov dword [esi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [esi + 8], 0
je 0x412f59
mov eax, ebx
add ebx, 0x80
neg eax
sbb eax, eax
and eax, ebx
push eax
mov edx, esi
call fcn.004127b1
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp + 8], edi
je 0x412f59
cmp edi, 0xfde8
je 0x412f59
cmp edi, 0xfde9
je 0x412f59
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x412f59
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x412f59
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x412ee0
mov cx, word [esi + 0x18]
mov word [eax], cx
mov cx, word [esi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], di
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x412f54
cmp word [eax], 0x814
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jne 0x412f19
push 0x402d04
push 0x40
push ebx
call fcn.004092d9
add esp, 0xc
test eax, eax
je 0x412f2a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407f26
add esp, 0x14
jmp 0x412f2a
push 0x40
push ebx
push 0x1001
push dword [esi + 0x18]
call edi
test eax, eax
je 0x412f59
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [esi + 0x1c]
call edi
test eax, eax
je 0x412f59
push 0xa
push 0x10
add ebx, 0x80
push ebx
push dword [ebp + 8]
call fcn.00415a78
add esp, 0x10
xor eax, eax
inc eax
jmp 0x412f5b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4149c0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x41db00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.004056d7
test eax, eax
pop ecx
je 0x4149f5
push edi
push edi
push edi
push edi
push edi
call fcn.00407f26
add esp, 0x14
push 4
pop eax
call fcn.00416230
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414b03
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x414a7c
push 0x4019bc
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x414a7c
push 0x402d20
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x414a7c
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x414a7c
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x414a7c
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.00405ed4
add esp, 0xc
test eax, eax
jl 0x414b03
not edi
and dword [ebp - 8], edi
je 0x414aae
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.00405ed4
sub esp, 0xfffffff4
test eax, eax
jl 0x414b03
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x414ab9
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x414acd
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x414b03
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x414b03
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x414b03
xor eax, eax
inc eax
jmp 0x414b05
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c54d
leave
ret
Function at 0x4168fb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x41db00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41ea7c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
xor edi, edi
cmp eax, edi
jne 0x41694f
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push edi
call esi
test eax, eax
je 0x416935
mov dword [0x41ea7c], ebx
jmp 0x416954
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41694a
push 2
pop eax
mov dword [0x41ea7c], eax
jmp 0x41694f
mov eax, dword [0x41ea7c]
cmp eax, 1
jne 0x416967
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
jmp 0x416a26
cmp eax, 2
je 0x416970
cmp eax, edi
jne 0x416999
cmp dword [ebp + 0x1c], edi
mov dword [ebp - 8], edi
jne 0x416983
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x1c], eax
push edi
push edi
push dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push dword [ebp + 0xc]
call edi
mov ebx, eax
test ebx, ebx
jne 0x4169a0
xor eax, eax
jmp 0x416a26
jle 0x4169e6
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ebx
cmp eax, 1
jb 0x4169e6
lea eax, [ebx + 8]
cmp eax, 0x400
ja 0x4169ce
call fcn.00414b20
mov esi, esp
test esi, esi
je 0x416999
mov dword [esi], 0xcccc
add esi, 8
jmp 0x4169e8
push eax
call fcn.00409ff9
test eax, eax
pop ecx
je 0x4169e2
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
jmp 0x4169e8
xor esi, esi
test esi, esi
je 0x416999
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x416a1c
xor eax, eax
cmp dword [ebp + 0x18], eax
jne 0x416a05
push eax
push eax
jmp 0x416a0b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push esi
push 1
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
push esi
call fcn.0040fc70
mov eax, dword [ebp - 8]
pop ecx
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c54d
leave
ret
Function at 0x416a75
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x41db00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41ea80]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
push edi
xor edi, edi
xor esi, esi
inc edi
cmp eax, esi
jne 0x416ac9
push esi
push esi
push edi
push esi
call ebx
or eax, eax
je 0x416aaf
mov dword [0x41ea80], edi
jmp 0x416ade
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x416ac4
push 2
pop eax
mov dword [0x41ea80], eax
jmp 0x416ac9
mov eax, dword [0x41ea80]
cmp eax, 2
je 0x416b90
cmp eax, esi
je 0x416b90
cmp eax, edi
jne 0x416b01
cmp dword [ebp + 0x1c], esi
jne 0x416aee
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x1c], eax
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
mov ecx, eax
cmp ecx, esi
mov dword [ebp - 8], ecx
jne 0x416b08
xor eax, eax
jmp 0x416ba2
jle 0x416b4f
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ecx
cmp eax, 2
jb 0x416b4f
lea eax, [ecx + ecx + 8]
cmp eax, 0x400
ja 0x416b37
call fcn.00414b20
mov edi, esp
cmp edi, esi
je 0x416b01
mov dword [edi], 0xcccc
add edi, 8
jmp 0x416b51
push eax
call fcn.00409ff9
cmp eax, esi
pop ecx
je 0x416b4b
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
jmp 0x416b51
xor edi, edi
cmp edi, esi
je 0x416b01
push dword [ebp - 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x416b85
cmp dword [ebp + 0x18], esi
push esi
push esi
jne 0x416b70
push esi
push esi
jmp 0x416b76
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push edi
call fcn.0040fc70
pop ecx
mov eax, esi
jmp 0x416ba2
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c54d
leave
ret
Function at 0x418dd0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0x57
mov eax, esp
mov dword [eax], 0
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
sub esp, 4
mov cl, byte [ebp - 1]
add cl, 0xa
movsx eax, cl
add esp, 8
pop ebp
ret
push 0xf0
push 0x41b420
call fcn.00406d80
push dword [0x41d0b0]
call fcn.00406d44
pop ecx
mov dword [0x41d0b0], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
or eax, eax
je 0x405217
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x4050be
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x41e028], edi
mov dword [0x41e030], eax
mov dword [0x41e034], edx
mov dword [0x41e038], esi
mov dword [0x41e02c], ecx
call fcn.00405009
mov dword [ebp - 0xb8], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.00406c0c
pop ecx
test eax, eax
jne 0x40510f
push 0x1c
call fcn.00404fe0
pop ecx
call fcn.00406a30
test eax, eax
jne 0x405120
push 0x10
call fcn.00404fe0
pop ecx
mov dword [ebp - 4], ebx
call fcn.00406317
test eax, eax
jge 0x405134
push 0x1b
call fcn.0040563c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41fc04], eax
call fcn.004061e0
mov dword [0x41e018], eax
call fcn.004060f7
test eax, eax
jge 0x40515a
push 8
call fcn.0040563c
pop ecx
call fcn.00405d94
test eax, eax
jge 0x40516b
push 9
call fcn.0040563c
pop ecx
push ebx
call fcn.00405795
pop ecx
test eax, eax
je 0x40517d
push eax
call fcn.0040563c
pop ecx
call fcn.00405d35
test byte [ebp - 0xd4], bl
je 0x405193
movzx ecx, word [ebp - 0xd0]
jmp 0x405196
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call fcn.004047a0
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x4051b9
push eax
call fcn.004058eb
call fcn.00405917
jmp 0x4051fa
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
jmp 0x40521c
mov eax, 0xff
call fcn.00406dc8
ret
call fcn.00406f9c
jmp 0x40504a
push ebp
mov ebp, esp
mov dword [0x41e008], edi
mov dword [0x41e00c], ebx
mov dword [0x41e004], esi
call fcn.004046a0
test eax, eax
je 0x404770
xchg ebx, eax
xchg ebx, eax
call fcn.00418e00
pop ebp
jmp 0x405222
Function at 0x418e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x40], 0x643
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x2c], 0
jne 0x418e95
jmp 0x418fb7
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00418d20
xor ecx, ecx
add ecx, 0x18
mov dword [esp + 0x18], eax
mov dx, word [esp + 0x54]
xor dx, word [esp + 0x54]
mov eax, dword [esp + 0x18]
mov word [esp + 0x54], dx
mov bl, byte [esp + 0x57]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x18]
mov byte [esp + 0x57], bl
movzx esi, word [esi + 0x14]
add eax, esi
xor ecx, 0x643
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0x2b58
movzx eax, word [eax + 6]
cmp ecx, eax
jge 0x418f94
mov eax, dword [esp + 0x3c]
mov word [esp + 0x22], 0x299f
mov cx, word [esp + 0x22]
mov edx, dword [esp + 0x44]
xor edx, dword [esp + 0x44]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
add eax, dword [esi + 0xc]
mov dword [esp + 0x24], eax
cmp cx, 0x7f3e
jae 0x418f07
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add edx, dword [ecx + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0041b0d0
mov dword [esp + 0x14], eax
mov al, 0xc2
mov ecx, 0x644
mov edx, dword [esp + 0x30]
sub ecx, dword [esp + 0x40]
add edx, ecx
mov dword [esp + 0x30], edx
sub al, byte [esp + 0x57]
mov byte [esp + 0x57], al
mov ecx, dword [esp + 0x1c]
add ecx, 0x28
mov dword [esp + 0x1c], ecx
jmp 0x418ee3
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x54]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0041b0d0
mov dword [esp + 0x10], eax
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
Function at 0x41a050
Capabilities:
Parse pe header

Disassembly:
push edi
mov edi, esp
push ebp
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [edi + 8]
mov byte [esp + 0x1d], 1
mov dword [esp + 0x18], 0x22e5
mov byte [esp + 0x17], 0x46
mov cx, word [esp + 0x1e]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
mov word [esp + 2], cx
jne 0x41a08f
mov dword [esp + 4], 0
jmp 0x41a109
jmp 0x41a091
mov eax, dword [esp + 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x41a0bf
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x41a0bd
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
jmp 0x41a109
jmp 0x41a0bf
mov eax, 0x32e5
mov cl, 0x72
mov dl, byte [esp + 0x17]
add dl, 0x57
mov esi, dword [esp + 0x18]
sub cl, byte [esp + 0x17]
mov ebp, dword [esp + 0x10]
sub eax, esi
sub ebp, eax
and ebp, 0xfffff000
mov dword [esp + 0xc], ebp
mov byte [esp + 0xb], dl
cmp byte [esp + 0xb], cl
je 0x41a09f
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x1d]
test al, 1
jne 0x41a091
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
lea esp, [edi - 8]
pop esi
pop ebp
pop edi
ret
Function at 0x41add0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 4], 0xd07
mov dword [ebp - 0xc], 0x7020
mov eax, dword [ebp - 4]
xor eax, 0xd1f
mov ecx, dword [ebp - 0xc]
mov dword [esp], eax
mov dword [ebp - 0x10], ecx
call fcn.00404210
mov ecx, 0x1bfb
mov edx, dword [ebp - 0x10]
cmp ecx, edx
mov dword [ebp - 0x14], eax
jbe 0x41ae2a
xor eax, eax
mov ecx, esp
mov dword [ecx], 0
mov ecx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x18], eax
call ecx
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov eax, ecx
add esp, 0x20
pop ebp
ret
mov eax, dword [ebp - 0x14]
add esp, 0x20
pop ebp
ret