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

Disassembly:
push edi
push esi
push ebx
xor esi, dword [esi + 0x6024448b]
or ebx, dword [edi + 0x7d]
adc al, 0x47
mov edx, dword [ebx]
and al, 0x10
neg eax
neg edx
xor bl, al
add byte [ecx - 0x76eb36bd], cl
push esp
and al, 0x10
mov al, byte [edi + ebp*8 + 0x1c]
or eax, eax
jge 0x40b5cd
inc edi
mov ah, 0x54
and al, 0xc
neg eax
neg edx
sbb dword [eax], 0xffffff89
inc esp
and al, 0x1c
mov dword [esp - 0x32], edx
or eax, eax
jne 0x40b5e9
and dword [ebx + 0x24], ebx
sbb byte [ebx + 0x33142444], cl
into
mov eax, dword [esp + 0x14]
xor ecx, esi
div ecx
pushal
fmul dword [ebx - 0xdb898bc]
int1
mov edx, ebx
jmp 0x40b630
cmp al, 0xd8
mov al, 0x4c
sbb byte [ebx - 0x74ebdbac], cl
and dword [eax + edx], esp
shr ebx, 1
rcr ecx, 1
shr edx, 1
rcr eax, 1
or ebx, ebx
jne 0x40b5f7
div ecx
lock not word [ebx]
and al, 0x1c
jno 0x40b5d5
mov eax, dword [esp + 0x18]
and dh, ah
add edx, ecx
jb 0x40b625
fist dword [ebp + ebp - 0x33]
ja 0x40b625
jb 0x40b626
mov dword fs:[0x2761024], eax
dec esi
xor edx, edx
mov eax, esi
dec edi
jne 0x40b634
invalid
fadd dword [ebx + 0x6d5b00da]
pop ebx
insd dword es:[edi], dx
sub eax, edx
adc byte [eax], al
call 0xff8ca2ca
push 0x40c760
push 0x6d40b948
jo 0x40b613
add byte [eax], al
add dl, cl
mov dword fs:[0x49000000], esp
add dword [ecx], 0xfffffffb
push ebx
push esi
push edi
mov dword [ecx - 0x39a126b], ebx
add byte [edx - 0x2fead335], cl
rol byte [esi - 0x53], 0x59
or dword [0x414054], 0xffffffff
and edi, 0x58
inc eax
inc ecx
add bh, bh
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov esp, dword [eax - 0x60bef420]
mov dword [ebp - 0x3f27ea5d], edx
aaa
add ecx, dword [ebx + 0x410b4d83]
fistp dword [ecx - 0x7d235ef8]
add byte [eax], al
mov eax, dword [eax]
mov dword [0x78f041], eax
call 0x41b2a2
cmp dword [0x6441d450], 0
jne 0x40b6bd
push 0x40b944
call dword [0x5040c0e0]
stc
loopne 0x40b72f
add al, byte [eax]
add byte [eax + 0x37], ch
rol byte [eax - 0x73], 1
jp 0x40b6d1
rol byte [eax], 1
and ebx, dword [ebx + 0x5a]
add byte [eax], al
mov eax, dword [0xf59b0b90]
mov dword [ebp - 0x28], eax
lea eax, [ebx + 0x35ff50d8]
mov word [ebx], cs
sbb dword [eax], eax
lea eax, [ebp - 0x20]
push eax
lea esp, [0x45ac50eb]
in al, 0x50
call dword [0xb840c0e8]
push 0x40d038
jno 0x40b6fc
xchg byte [eax], al
push edx
add al, byte ss:[eax]
add bh, dh
adc eax, sym.imp.MSVCRT.dll___p___initenv
mov ecx, dword [ebp - 0x20]
xor dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x78]
dec edx
jne 0x40b6fc
call 0x400f2e
add esp, 0x60
mov dword [ebp - 0x24], eax
test eax, 0xc17015a7
inc eax
add byte [ebx - 0x6f7413bb], cl
xor dword [eax], ebx
mov dword [0xe8ee50d0], eax
jmp 0x40b7b5
inc esp
and al, 0xc
stosb byte es:[edi], al
inc ecx
mov dh, 0xd9
shr edx, 1
rcr eax, 1
invalid
Function at 0x4060d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43e054], 0
je 0x406131
cmp word [0x43e330], 0xd7b2
jne 0x4060f9
cmp dword [0x43e338], 0
jbe 0x4060f9
mov eax, 0x43e32c
call dword [0x43e348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x40615c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43c02c], 0
jne 0x40614d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4087e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40894b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406bac
cmp si, word [0x43c7d0]
jb 0x40887e
cmp si, word [0x43c9d0]
ja 0x40887e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40887e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x43c7d0]
jae 0x408858
mov edi, ebx
dec edi
jmp 0x408879
cmp si, word [ebx*8 + 0x43c7d0]
jbe 0x408868
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408879
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x43c7d4]
call fcn.004086f4
jmp 0x40887e
cmp edi, dword [ebp - 0xc]
jae 0x408842
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40892d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40892d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d94
push dword [ebp - 0x164]
push 0x408968
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406d94
push dword [ebp - 0x168]
push 0x408978
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d94
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407140
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408952
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406ba4
ret
Function at 0x408b04
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408c09
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x440b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x440b74]
jne 0x408b50
mov eax, esi
mov edx, 0x440b78
mov ecx, 0x55
call fcn.00406d94
push 0x440b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408bf3
push 0x440b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406bac
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408bc1
cmp byte [0x440b58], 0
je 0x408b86
mov edx, esi
mov eax, ebx
call fcn.004089e4
jmp 0x408bc1
mov edx, esi
mov eax, ebx
call fcn.004087e4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408bc1
cmp dword [esi], 0
je 0x408baa
mov eax, esi
mov edx, 0x408c24
call fcn.00406f9c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004087e4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406f9c
push 0x440b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x440b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406c38
push eax
push 0x440b78
call sub.kernel32.dll_lstrcpynW
push 0x440b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c10
lea eax, [ebp - 4]
call fcn.00406b9c
ret
Function at 0x408e48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b94
xor eax, eax
push ebp
push 0x40902d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408e88
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408ea2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406c38
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409017
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40903c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f31
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40903c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f31
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409070
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408f31
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4090a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409017
xor eax, eax
push ebp
push 0x409010
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408c4c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408fa0
mov eax, dword [ebp - 0x10]
call fcn.004041b4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406d58
jmp 0x408feb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4090e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408feb
mov eax, dword [ebp - 0x10]
call fcn.004041b4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4090e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406d58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409017
cmp dword [ebp - 8], 0
je 0x409006
mov eax, dword [ebp - 8]
call fcn.004041d0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409034
lea eax, [ebp - 4]
call fcn.00406b9c
ret
Function at 0x4092f8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406b94
mov eax, dword [ebp - 0x21c]
call fcn.00406b94
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409497
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406bac
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406c38
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409398
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4093aa
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409395
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409463
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x4093d3
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408e48
cmp dword [ebp - 0x220], 0
je 0x40940b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004091ec
pop ecx
mov ebx, eax
jmp 0x409463
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408b04
mov eax, dword [ebp - 0x224]
call fcn.004091ec
pop ecx
mov ebx, eax
test bl, bl
jne 0x409456
cmp byte [0x440b58], 0
jne 0x409456
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408b04
mov eax, dword [ebp - 0x228]
call fcn.004091ec
pop ecx
mov ebx, eax
test bl, bl
jne 0x409463
push ebp
call fcn.0040929c
pop ecx
mov ebx, eax
test bl, bl
je 0x409479
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40949e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406ba4
ret

Function at 0x409c10
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40ac14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x440c50
push 0xa
push 0x40aca8
mov eax, dword [0x440c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40ac38
call fcn.004155f4
push ebx
mov eax, dword [0x440c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40ac4f
call fcn.004155f4
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40ac61
call fcn.004155f4
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x440c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x440c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x440c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x440c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x440c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x440c68], edx
pop esi
pop ebx
ret

Function at 0x40e304
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40e3ad
test eax, edx
je 0x40e3b0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40e32d
push edx
mov edx, eax
mov eax, esp
call fcn.00406db0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40e343
push eax
lea eax, [esp + 8]
call fcn.00406db0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40e352
movzx eax, word [eax]
sub eax, ecx
jmp 0x40e379
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40e393
add ecx, 4
js 0x40e36a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40e390
push eax
mov eax, ecx
mov edx, 2
call fcn.004062a8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40e377
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40e379
xor eax, eax
ret
test eax, eax
je 0x40e3c0
test edx, edx
jne 0x40e314
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x412bd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412c09
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406ce8
jmp 0x412c12
mov eax, ebx
mov edx, esi
call fcn.00406bac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412c1c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412c3e
movzx eax, word [esp]
jmp 0x412c40
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4133d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4134f5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004131e0
mov esi, eax
mov eax, dword [0x43d1e0]
cmp byte [eax], 0
je 0x41349d
mov eax, dword [0x43d084]
call fcn.004047b0
call fcn.004042fc
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4133a8]
call fcn.00408210
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x413510
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4134d9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x43d054]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x440c40]
call fcn.004082d4
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4134fc
lea eax, [ebp - 4]
mov edx, dword [0x4133a8]
call fcn.0040821c
ret

Function at 0x41549c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004065c8
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x415446
mov eax, edi
add eax, eax
call fcn.004041b4
mov esi, eax
jmp 0x415448
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x415481
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41546b
mov eax, esp
cmp esi, eax
je 0x41548e
mov eax, esi
call fcn.004041d0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4154c8
cmp bl, 0
je 0x4154c4
cmp bl, 0x41
jl 0x4154bf
cmp bl, 0x5a
jg 0x4154bf
or bl, 0x20
xor al, bl
inc esi
jmp 0x4154a3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x415408
Function at 0x4011b5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x8000080
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 8], edi
jne 0x4011f2
or esi, eax
jmp 0x401307
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xa0]
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4012f3
mov eax, dword [ebp - 0x64]
push esi
add eax, 4
push esi
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call edi
cmp eax, 0xffffffff
je 0x4012d7
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x20]
push 0x14
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4012f3
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x180]
push 0xe0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4012f3
cmp word [ebp - 0x1e], si
mov dword [ebp - 8], esi
jbe 0x401298
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x60]
push 0x28
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4012f3
movzx eax, word [ebp - 0x1e]
add ebx, dword [ebp - 0x50]
inc dword [ebp - 8]
cmp dword [ebp - 8], eax
jl 0x401271
push 1
push esi
push esi
push dword [ebp + 8]
call edi
add ebx, eax
xor edx, edx
mov eax, ebx
div dword [ebp - 0x15c]
test edx, edx
je 0x4012c5
mov eax, ebx
xor edx, edx
div dword [ebp - 0x15c]
inc eax
imul eax, dword [ebp - 0x15c]
mov ebx, eax
mov eax, dword [ebp + 0xc]
push esi
push esi
push ebx
push dword [ebp + 8]
mov dword [eax], ebx
call edi
cmp eax, 0xffffffff
jne 0x4012db
push 0xfffffffffffffffd
jmp 0x4012f5
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x38]
push 0x18
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4012f8
push 0xfffffffffffffffe
pop esi
jmp 0x401307
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
lea eax, [eax + ebx + 0x18]
mov dword [ecx], eax
cmp dword [ebp + 8], 0xffffffff
je 0x401316
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401996
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push dword [esp + 0x14]
push esi
push 1
push edi
call fcn.00401cc0
add esp, 0x10
cmp eax, esi
jae 0x4019b9
push 0xfffffffffffffffc
pop eax
jmp 0x4019eb
dec esi
js 0x4019e9
lea eax, [esi + 1]
mov ecx, dword [0x40d0c8]
movzx esi, byte [edi]
mov edx, ecx
and edx, 0xff
xor edx, esi
shr ecx, 8
movzx edx, word [edx*2 + 0x40d0e0]
xor edx, ecx
inc edi
dec eax
mov dword [0x40d0c8], edx
jne 0x4019bf
xor eax, eax
pop edi
pop esi
ret
Function at 0x4021e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4041b8
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 [0x40cd08], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40cd04], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40cd00], ecx
shr eax, 0x10
mov dword [0x40ccfc], eax
call fcn.00404080
test eax, eax
jne 0x40224a
push 0x1c
call fcn.004023b0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403260
call fcn.00404070
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40f410], eax
call fcn.00403a50
mov dword [0x40cce4], eax
test eax, eax
je 0x40227d
mov eax, dword [0x40f410]
test eax, eax
jne 0x402287
push 0xffffffffffffffff
call fcn.00402c80
add esp, 4
call fcn.004037a0
call fcn.004036b0
call fcn.00402c50
mov esi, dword [0x40f410]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x402366
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4022ce
test al, al
je 0x4022ce
and eax, 0xff
push eax
call fcn.00403650
add esp, 4
test eax, eax
je 0x4022a8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4022a8
cmp byte [esi], 0x22
jne 0x4022d7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4022e7
cmp al, 0x20
ja 0x4022e7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4022d7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x402308
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40230d
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.00402c80
jmp 0x40234b
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 0x4022d7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402366

Function at 0x4023b0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40ccec], 1
jne 0x4023be
call fcn.00404290
mov eax, dword [esp + 4]
push eax
call fcn.004042d0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]