joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027a8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403ba4
test esi, esi
jne 0x4027de
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403c94
jmp 0x4027fc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026bc
mov edi, eax
test esi, esi
je 0x4027fc
cmp dword [ebx], 0
je 0x4027fc
dec esi
jmp 0x4027e5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40317c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40315c
xor eax, eax
push ebp
push 0x403155
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403198
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40315c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403a28
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403a89
cmp word [0x40a218], 0xd7b2
jne 0x403a51
cmp dword [0x40a220], 0
jbe 0x403a51
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403ab0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x403aa5
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4043f0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404620
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404473
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404620
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404473
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40463c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4044fc
xor eax, eax
push ebp
push 0x4044f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404238
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4044da
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40465c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4044da
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4044fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404616
cmp byte [ebp - 0xd], 0
jne 0x404543
cmp byte [ebp - 0x12], 0
je 0x404616
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40455c
dec ebx
cmp byte [ebx], 0x2e
je 0x40456b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40455b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404616
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4045a8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404616
cmp byte [ebp - 0xd], 0
je 0x404616
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404616
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4044fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404620
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404473
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404620
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404473
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40463c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4044fc
xor eax, eax
push ebp
push 0x4044f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404238
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4044da
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40465c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4044da
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4044fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404616
cmp byte [ebp - 0xd], 0
jne 0x404543
cmp byte [ebp - 0x12], 0
je 0x404616
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40455c
dec ebx
cmp byte [ebx], 0x2e
je 0x40456b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40455b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404616
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4045a8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404616
cmp byte [ebp - 0xd], 0
je 0x404616
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404616
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4047ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404812
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403dec
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b7c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4047fc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404819
lea eax, [ebp - 0x10]
call fcn.00403ba4
ret

Function at 0x406658
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406691
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403c94
jmp 0x40669a
mov eax, ebx
mov edx, esi
call fcn.00403bf8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4066a4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4066c5
mov al, byte [esp]
jmp 0x4066c7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406d4c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406bc4
mov eax, dword [0x4093ac]
cmp byte [eax], 0
je 0x406dc8
mov eax, dword [0x409304]
call fcn.00402b0c
call fcn.0040262c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405b4c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406e10
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406dfe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.004041fc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x4077bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407820
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403dec
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004059a8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407827
lea eax, [ebp - 0xc]
call fcn.00403ba4
ret

Function at 0x408110
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4012a0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
call fcn.00406990
mov esi, dword [fcn.00401180]
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x1c]
call dword [fcn.004011a4]
call fcn.00406990
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
mov edi, dword [fcn.00401144]
mov edx, 0x404a00
lea ecx, [ebp - 0x20]
call edi
mov edx, 0x4049a0
lea ecx, [ebp - 0x1c]
call edi
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x28]
push edx
push eax
mov dword [ebp - 0x28], 0x80000001
call fcn.00408210
mov edx, eax
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x1c]
push edx
push eax
push 3
call dword [fcn.00401148]
add esp, 0x10
push 0x4081f4
jmp 0x4081f3
ret
Function at 0x402e9f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402ebc
mov dword [ebp - 8], reloc.USER32.dll_CreatePopupMenu
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402ece
mov dword [ebp - 0xc], 0x421020
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ee3
mov ecx, dword [0x451458]
add ecx, eax
push ecx
call fcn.004030c7
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030b1
test eax, eax
je 0x40309f
test byte [ebp + 0x17], 0x80
je 0x40304a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x413984], 0
and dword [0x413980], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x415008
mov dword [0x413468], 8
mov dword [0x41d010], eax
mov dword [0x41d00c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41d008], 0x41d008
mov dword [ebp + 8], eax
jle 0x4030a7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f5c
mov esi, dword [ebp + 0x14]
mov edi, 0x41d020
push esi
push edi
call fcn.004030b1
test eax, eax
je 0x40309f
sub dword [ebp + 0x14], esi
mov dword [0x413458], edi
mov dword [0x41345c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x413458
mov dword [0x413460], edi
mov dword [0x413464], eax
call fcn.004061ab
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403042
mov esi, dword [0x413460]
sub esi, edi
call ebx
test byte [0x4514b4], 1
mov edi, eax
je 0x402ffd
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x402fca
cmp dword [ebp + 0x14], 0
jne 0x402ffd
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404f48
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403036
cmp dword [ebp + 0x10], 0
jne 0x40301c
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405a49
test eax, eax
je 0x403046
add dword [ebp - 4], esi
jmp 0x40302a
mov eax, dword [0x413460]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x402f7f
jmp 0x4030a7
cmp dword [ebp + 0x14], 0
jg 0x402f4f
jmp 0x4030a7
push 0xfffffffffffffffc
jmp 0x4030a1
push 0xfffffffffffffffe
jmp 0x4030a1
test edi, edi
jne 0x40308c
cmp dword [ebp + 0x14], edi
jle 0x4030a7
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403060
mov esi, ebx
mov edi, 0x41d020
push esi
push edi
call fcn.004030b1
test eax, eax
je 0x40309f
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405a49
test eax, eax
je 0x403046
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403056
jmp 0x4030a7
cmp dword [ebp + 0x14], esi
jge 0x403094
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030b1
test eax, eax
jne 0x4030a4
push 0xfffffffffffffffd
pop eax
jmp 0x4030aa
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4055d1
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040588f
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405610
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x451488], eax
jmp 0x40579a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40562a
test eax, eax
je 0x405748
test bl, 2
je 0x405748
mov esi, 0x443070
push edi
push esi
call fcn.00405d2f
cmp dword [ebp + 8], 0
je 0x405649
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40564f
push edi
call fcn.004057e8
cmp byte [edi], 0
jne 0x40565d
cmp byte [0x443070], 0x5c
jne 0x405668
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40573e
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004057cc
cmp byte [eax], 0
je 0x4056ae
cmp byte [ebp - 0x1c], 0
je 0x4056ae
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4056c4
mov al, byte [esi + 1]
test al, al
je 0x40571d
cmp al, 0x2e
jne 0x4056c4
cmp byte [esi + 2], 0
je 0x40571d
push esi
push ebx
call fcn.00405d2f
test byte [ebp - 0x14c], 0x10
je 0x4056e9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40571d
push dword [ebp + 0xc]
push edi
call fcn.004055d1
jmp 0x40571d
push dword [ebp - 4]
push edi
call fcn.00405589
test eax, eax
jne 0x405715
cmp dword [ebp - 4], eax
je 0x40570d
push edi
push 0xfffffffffffffff1
call fcn.00404f48
push 0
push edi
call fcn.00405bea
jmp 0x40571d
inc dword [0x451488]
jmp 0x40571d
push edi
push 0xfffffffffffffff2
call fcn.00404f48
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40568c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405748
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40579a
cmp dword [ebp - 0xc], esi
jne 0x40575c
inc dword [0x451488]
jmp 0x40579a
push edi
call fcn.00406033
test eax, eax
je 0x40579a
push edi
call fcn.004057a1
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405589
test eax, eax
jne 0x405792
cmp dword [ebp - 4], esi
je 0x405754
push edi
push 0xfffffffffffffff1
call fcn.00404f48
push esi
push edi
call fcn.00405bea
jmp 0x40579a
push edi
push 0xffffffffffffffe5
call fcn.00404f48
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a78
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x4475f8
push 0x4093c8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405ac6
push 1
push 0
push esi
call fcn.004059a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405be5
cmp eax, ebx
jg 0x405be5
mov esi, 0x4479f8
push ebx
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405be5
cmp eax, ebx
jg 0x405be5
push esi
push edi
push str._s_s_r_n
push 0x4471f8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x451410]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d51
push 4
push 0xc0000000
push esi
call fcn.004059a2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405be5
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bde
push edi
push esi
push ebp
call fcn.00405a1a
test eax, eax
je 0x405bde
push str._Rename__r_n
push esi
call fcn.00405907
test eax, eax
jne 0x405b7c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405bb1
add eax, 0xa
push 0x4093b0
push eax
call fcn.00405907
mov ebp, eax
test ebp, ebp
je 0x405bad
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b9e
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b98
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405bb3
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4471f8
push eax
call fcn.0040595d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405a49
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405bea
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405c0d
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405a78
pop ecx
pop ecx
inc dword [0x451490]
ret 8
Function at 0x40605a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40607e
xor eax, eax
test eax, eax
je 0x406090
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406090
xor ecx, ecx
jmp 0x406093
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40613d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x447dfc], 0
push esi
jne 0x406174
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40614e
mov dword [ecx*4 + 0x447df8], eax
inc ecx
cmp ecx, 0x100
jl 0x406149
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4061a5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x447df8]
xor eax, esi
inc ecx
dec edx
jne 0x406187
pop edi
not eax
pop esi
ret 0xc
Function at 0x403078
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047e0
test esi, esi
jne 0x4030ae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048d0
jmp 0x4030cc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f7c
mov edi, eax
test esi, esi
je 0x4030cc
cmp dword [ebx], 0
je 0x4030cc
dec esi
jmp 0x4030b5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x471020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403854
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403834
xor eax, eax
push ebp
push 0x40382d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403870
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403834
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x471020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x471020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404660
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x474048], 0
je 0x4046c1
cmp word [0x47421c], 0xd7b2
jne 0x404689
cmp dword [0x474224], 0
jbe 0x404689
mov eax, 0x474218
call dword [0x474234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47102c], 0
jne 0x4046dd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret