joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6420
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x4c64a0
cmp eax, 0x40
jbe 0x4c644c
lea eax, [esi + 0x40]
push eax
push esi
call fcn.004caac0
add esp, 8
mov dword [esi + 0x9c], 0x14
mov eax, dword [esi + 0x9c]
mov ecx, 0x40
sub ecx, eax
push ecx
add eax, esi
push 0
push eax
call fcn.004db150
add esp, 0xc
xor eax, eax
lea esp, [esp]
xor dword [esi + eax*4], 0x36363636
add eax, 1
cmp eax, 0x10
jb 0x4c6470
push edi
lea edi, [esi + 0x40]
push edi
call fcn.004caa00
push edi
push 0x40
push esi
call fcn.004caa40
add esp, 0x10
mov dword [esi + 0x9c], 0xffffffff
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4c64ba
mov edx, dword [esp + 8]
add esi, 0x40
push esi
push eax
push edx
call fcn.004caa40
add esp, 0xc
pop esi
ret

Function at 0x4c64c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x5e4ce0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x2c]
cmp dword [esi + 0x9c], 0xffffffff
je 0x4c64ee
push esi
push 0
push 0
call fcn.004c6420
add esp, 0xc
push edi
lea edi, [esi + 0x40]
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004caac0
add esp, 8
xor eax, eax
xor dword [esi + eax*4], 0x6a6a6a6a
add eax, 1
cmp eax, 0x10
jb 0x4c6502
push edi
call fcn.004caa00
push edi
push 0x40
push esi
call fcn.004caa40
push edi
lea ecx, [esp + 0x20]
push 0x14
push ecx
call fcn.004caa40
lea edx, [esp + 0x28]
push edi
push edx
call fcn.004caac0
mov eax, dword [esp + 0x50]
add esp, 0x24
test eax, eax
pop edi
jbe 0x4c6553
push eax
lea eax, [esp + 0xc]
push eax
push ebx
call fcn.004db700
add esp, 0xc
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
call fcn.004d99c4
add esp, 0x18
ret
Function at 0x4c7240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x5e4ce0]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
lea ecx, [esp + 0xbc]
push edi
push ecx
mov dword [esp + 0x20], eax
call fcn.004c6380
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc4]
push edx
push eax
push esi
call fcn.004c63a0
mov edx, dword [ebp + 0x14]
mov ecx, 0x28
lea esi, [esp + 0xd0]
lea edi, [esp + 0x170]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x170]
push ecx
push edx
push ebx
call fcn.004c6420
mov eax, dword [ebp + 0x20]
lea ecx, [eax - 1]
mov eax, 0xcccccccd
mul ecx
shr edx, 4
add esp, 0x1c
add edx, 1
mov dword [esp + 0x18], edx
je 0x4c7441
lea edx, [esp + 0x204]
mov dword [esp + 0x10], 0
mov ebx, 1
mov dword [esp + 0xc], edx
xor eax, eax
mov ecx, 0x28
lea esi, [esp + 0x160]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x204], eax
mov dword [esp + 0x208], eax
mov dword [esp + 0x20c], eax
mov dword [esp + 0x210], eax
mov dword [esp + 0x214], eax
mov ecx, ebx
shr ecx, 0x10
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x219], cl
mov ecx, dword [ebp + 0x18]
mov edx, ebx
shr edx, 8
test ecx, ecx
mov byte [esp + 0x218], al
mov byte [esp + 0x21a], dl
mov byte [esp + 0x21b], bl
mov eax, 4
jbe 0x4c7400
mov dword [esp + 0x14], ecx
mov edi, edi
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x220]
push edx
call fcn.004c6420
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x228]
push 0x14
push ecx
call fcn.004c64c0
add esp, 0x18
xor eax, eax
lea esp, [esp]
movzx edx, byte [esp + eax + 0x218]
xor byte [esp + eax + 0x204], dl
movzx ecx, byte [esp + eax + 0x219]
movzx edx, byte [esp + eax + 0x21a]
xor byte [esp + eax + 0x205], cl
xor byte [esp + eax + 0x206], dl
movzx ecx, byte [esp + eax + 0x21b]
movzx edx, byte [esp + eax + 0x21c]
xor byte [esp + eax + 0x207], cl
xor byte [esp + eax + 0x208], dl
add eax, 5
cmp eax, 0x14
jb 0x4c7390
sub dword [esp + 0x14], 1
mov ecx, 0x28
lea esi, [esp + 0xc0]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
jne 0x4c7360
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, dword [ebp + 0x20]
jae 0x4c7424
mov edx, dword [esp + 0xc]
mov dl, byte [edx + eax]
mov esi, dword [esp + 0x1c]
mov byte [eax + esi], dl
add ecx, 1
add eax, 1
cmp ecx, 0x14
jb 0x4c7406
mov eax, 0x14
add dword [esp + 0x10], eax
sub dword [esp + 0xc], eax
add ebx, 1
lea eax, [ebx - 1]
cmp eax, dword [esp + 0x18]
jb 0x4c72e8
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d99c4
mov esp, ebp
pop ebp
ret
Function at 0x4c7860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x1c]
jmp 0x4c7870
mov eax, dword [esi + 0x64]
mov ebx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x6c]
sub ebx, eax
sub ebx, ecx
jne 0x4c788e
test eax, eax
jne 0x4c789a
test ecx, ecx
jne 0x4c789a
mov ebx, edi
jmp 0x4c790c
cmp ebx, 0xffffffff
jne 0x4c789a
mov ebx, 0xfffffffe
jmp 0x4c790c
mov ecx, dword [esi + 0x1c]
lea edx, [edi + ecx - 0x106]
cmp eax, edx
jb 0x4c790c
mov eax, dword [esi + 0x28]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.004db700
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x38]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea ecx, [eax + edx*2]
jmp 0x4c78d0
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x4c78df
sub eax, edi
jmp 0x4c78e1
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x4c78d0
mov ecx, dword [esi + 0x30]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x4c7900
sub eax, edi
jmp 0x4c7902
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x4c78f1
add ebx, edi
mov ecx, dword [esi + 4]
call fcn.004c49f0
test eax, eax
je 0x4c796e
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x64]
mov ecx, dword [esi + 4]
add edx, dword [esi + 0x28]
push ebx
push edx
call fcn.004c46c0
add dword [esi + 0x6c], eax
mov edx, dword [esi + 0x6c]
cmp edx, 3
jb 0x4c7956
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x28]
lea ebx, [eax + ecx]
movzx eax, byte [ebx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [ebx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edx, 0x106
jae 0x4c796e
mov ecx, dword [esi + 4]
call fcn.004c49f0
test eax, eax
jne 0x4c7870
pop edi
pop esi
pop ebx
ret
Function at 0x4caa00
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x4ce28e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4ce2c7
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ce251
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004228f8
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4cfdce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4cfe11
call fcn.004d1993
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4cfe11
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4cfe2c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004cf985
test ebx, ebx
mov esi, eax
je 0x4cfe2a
test edi, edi
je 0x4cfe2a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4d2904
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5e4ce0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4d2944
push 0x5ac3c0
push 4
push eax
call fcn.004da30c
push eax
call fcn.0040378e
add esp, 0x10
jmp 0x4d2956
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4d29c4
push edi
call fcn.004df54e
mov edi, dword [eax]
call fcn.004df54e
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004dad3b
add esp, 0x18
mov ebx, eax
call fcn.004df54e
cmp dword [eax], 0
je 0x4d29a4
call fcn.004df54e
push dword [eax]
call fcn.004cac1b
pop ecx
jmp 0x4d29ab
call fcn.004df54e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4d29c4
cmp ebx, esi
jae 0x4d29c4
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4d29c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d99c4
leave
ret
Function at 0x4d99c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5e4ce0]
jne 0x4d99ce
repz ret
jmp fcn.004e1459

Function at 0x4ecc17
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004e207f
xor ebx, ebx
cmp dword [0x5ea484], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4eccec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4ecc57
xor eax, eax
jmp 0x4ecdb0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5aeb48
push edi
call esi
cmp eax, ebx
je 0x4ecc50
push eax
call fcn.004e201c
mov dword [esp], 0x5aeb38
push edi
mov dword [0x5ea484], eax
call esi
push eax
call fcn.004e201c
mov dword [esp], 0x5aeb24
push edi
mov dword [0x5ea488], eax
call esi
push eax
call fcn.004e201c
mov dword [0x5ea48c], eax
lea eax, [ebp - 8]
push eax
call fcn.004e0d65
test eax, eax
pop ecx
pop ecx
je 0x4eccba
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e1567
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4eccec
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004e201c
cmp eax, ebx
pop ecx
mov dword [0x5ea494], eax
je 0x4eccec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004e201c
pop ecx
mov dword [0x5ea490], eax
mov eax, dword [0x5ea490]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4ecd65
cmp dword [0x5ea494], esi
je 0x4ecd65
push eax
call fcn.004e2088
pop ecx
call eax
cmp eax, ebx
je 0x4ecd32
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x5ea494]
call fcn.004e2088
pop ecx
call eax
test eax, eax
je 0x4ecd32
test byte [ebp - 0x18], 1
jne 0x4ecd65
lea eax, [ebp - 0xc]
push eax
call fcn.004e0d9c
test eax, eax
pop ecx
je 0x4ecd4d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e1567
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4ecd5c
or dword [ebp + 0x10], 0x200000
jmp 0x4ecd96
or dword [ebp + 0x10], 0x40000
jmp 0x4ecd96
mov eax, dword [0x5ea488]
cmp eax, esi
je 0x4ecd96
push eax
call fcn.004e2088
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4ecd96
mov eax, dword [0x5ea48c]
cmp eax, esi
je 0x4ecd96
push dword [ebp - 4]
push eax
call fcn.004e2088
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 [0x5ea484]
call fcn.004e2088
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f1f12
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5e4ce0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004f1ea7
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004db150
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4f1f61
cmp dword [ebp - 0x1c], 5
jb 0x4f1f79
jmp 0x4f1f75
cmp dword [ebp - 0x10], 1
jne 0x4f1f79
cmp dword [ebp - 0x1c], 4
ja 0x4f1f75
jne 0x4f1f79
cmp dword [ebp - 0x18], 0
jbe 0x4f1f79
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x5aecc0
call fcn.004f1d98
test eax, eax
jge 0x4f1f9a
mov byte [0x5eb440], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d99c4
add ebp, 0x78
leave
ret
Function at 0x4f21c0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x464
mov eax, dword [0x5e4ce0]
xor eax, esp
mov dword [esp + 0x460], eax
mov eax, dword [esp + 0x468]
mov ecx, dword [esp + 0x46c]
lea edx, [esp + 4]
push edx
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x168], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4f2242
mov edx, dword [esp + 4]
lea eax, [esp]
push eax
lea ecx, [esp + 0x158]
push ecx
push 0
push 0
push str.AppData
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x154]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4f2250
sub eax, edx
jne 0x4f2276
xor al, al
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.004d99c4
add esp, 0x464
ret 8
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x164]
push ecx
lea edx, [esp + 0x26c]
push 0x104
push edx
call fcn.004da30c
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push str.MozillaFirefoxprofiles.ini
lea eax, [esp + 0x26c]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor esi, esi
lea ebx, [ebx]
push esi
push str.Profile_d
lea ecx, [esp + 0x28]
push 0x40
push ecx
call fcn.004dad1f
add esp, 0x10
lea edx, [esp + 0x268]
push edx
push 0x104
lea eax, [esp + 0x68]
push eax
push 0x5af400
push str.Path
lea ecx, [esp + 0x34]
push ecx
call edi
lea eax, [esp + 0x60]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4f2300
sub eax, edx
je 0x4f23bf
lea edx, [esp + 0x268]
push edx
push 0
push str.IsRelative
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x4f239e
lea ecx, [esp + 0x60]
push 0x2f
push ecx
call fcn.004dbf80
add esp, 8
test eax, eax
je 0x4f2352
mov edi, edi
push 0x2f
push eax
mov byte [eax], 0x5c
call fcn.004dbf80
add esp, 8
test eax, eax
jne 0x4f2340
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x370]
push 0x104
push eax
call fcn.004da30c
lea ecx, [esp + 0x170]
push ecx
lea edx, [esp + 0x70]
push 0x104
push edx
call fcn.004da30c
add esp, 0x18
push str.MozillaFirefox
lea eax, [esp + 0x64]
push eax
call ebx
lea ecx, [esp + 0x36c]
push ecx
lea edx, [esp + 0x64]
push edx
call ebx
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [esp + 0x24]
add esp, 8
test al, al
jne 0x4f23bf
add esi, 1
cmp esi, 0x14
jl 0x4f22c0
mov ecx, dword [esp + 0x470]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.004d99c4
add esp, 0x464
ret 8
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3d594be0
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x34903f30
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401ec8
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x405b08
jmp fcn.00401631

Function at 0x401f0e
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x405b08
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401f2b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x401f30
push 1
pop eax
pop esi
ret
call fcn.00401ec8
pop esi
ret

Function at 0x1000f9c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000f9cf
pop dword [ebp - 0x1c]
mov eax, 0x3e3a7795
add eax, 0xd1c6823a
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xdf36f40a
add dword [ebp - 0x2c], 0x6f1b5141
mov dword [ebp - 0x28], 0x78497863
sub dword [ebp - 0x28], 0x46162c1e
mov dword [ebp - 0x24], 0xa9fc6a42
sub dword [ebp - 0x24], 0x5db02614
mov dword [ebp - 0x20], 0x6ca7b63a
add dword [ebp - 0x20], 0x935849c6
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x404c0bfa
add dword [ebp - 0x2c], 0x34265d5c
mov dword [ebp - 0x28], 0xb1b95aee
add dword [ebp - 0x28], 0x8fb30687
mov dword [ebp - 0x24], 0xc5d1bc61
sub dword [ebp - 0x24], 0x62624ff5
mov dword [ebp - 0x20], 0x74249b92
add dword [ebp - 0x20], 0x8bdb646e
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x4ec685ae
sub eax, 0x3ec4d59a
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x39747
push 0
call eax
mov ecx, 0x33d7
xor esi, esi
add esi, eax
mov edx, 0xcdbc321e
sub edx, 0xbdb9821e
add edx, dword [ebp - 0x1c]
mov ebx, 0xfa42a9c8
add ebx, 0x28b1b7d1
add dword [ebp - 0xc], 0x5479cc8
mov edi, dword [edx]
mov dword [ebp - 0x18], 0x5677f7e9
xor edi, ebx
xor dword [ebp - 0xc], ecx
mov dword [esi], edi
add esi, 0xd4a06cd8
sub esi, 0xd4a06cd4
add edx, 4
loop 0x1000fae8
add eax, 0xc22f
xor ebx, ebx
add ebx, eax
add eax, 0x901ec276
add eax, 0x6fe13d8f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x402870
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40289f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004039e4
jmp 0x4028bd
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004027f8
mov edi, eax
test ebx, ebx
je 0x4028bd
cmp dword [esi], 0
je 0x4028bd
dec ebx
jmp 0x4028a6
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402c78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c58
xor eax, eax
push ebp
push 0x402c51
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 0x402c94
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 0x402c58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404c18
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 0xf003f
push 0
push 0x404dd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c79
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404dec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404ce6
xor eax, eax
push ebp
push 0x404cdf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x404cc8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404e0c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ce6
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x404dc7
cmp byte [ebp - 0xd], 0
jne 0x404d28
cmp byte [ebp - 0x12], 0
je 0x404dc7
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404d41
dec ebx
cmp byte [ebx], 0x2e
je 0x404d50
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404d40
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404dc7
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d7d
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404dc7
cmp byte [ebp - 0xd], 0
je 0x404dc7
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404dc7
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x405360
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405390
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x405386
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.00402794
or eax, 0xffffffff
jmp 0x405384
mov eax, 0x67
call fcn.00402784
or eax, 0xffffffff
jmp 0x405384