joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b90
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov eax, 0x55555556
push edi
imul esi
mov eax, edx
mov edi, 3
shr eax, 0x1f
add edx, eax
mov eax, esi
mov ecx, edx
mov ebp, dword [esp + 0x30]
cdq
idiv edi
xor eax, eax
test ecx, ecx
mov dword [esp + 0x20], edx
jle 0x401c76
mov edx, dword [esp + 0x28]
lea esi, [ebp + 2]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], ecx
lea edi, [edx + 2]
mov cl, byte [edi - 2]
mov al, byte [edi - 1]
mov dl, cl
mov bl, al
and dl, 3
and al, 0xf
shl dl, 4
shr bl, 4
or dl, bl
and ecx, 0xff
mov byte [esp + 0x10], dl
mov dl, byte [edi]
mov bl, dl
and dl, 0x3f
shl al, 2
shr bl, 6
or al, bl
mov byte [esp + 0x18], dl
shr ecx, 2
mov byte [esp + 0x14], al
add edi, 3
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov byte [esi - 2], al
mov eax, dword [esp + 0x14]
add esi, 4
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0xff
mov byte [esi - 5], dl
mov edx, dword [esp + 0x18]
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edx, 0xff
mov byte [esi - 4], cl
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 3], al
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x401bd9
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
shl eax, 2
cmp edx, 1
jne 0x401cd0
mov ecx, dword [esp + 0x28]
pop edi
mov cl, byte [esi + ecx - 1]
pop esi
mov dl, cl
and ecx, 0xff
and dl, 3
shl dl, 4
mov byte [esp + 0x20], dl
mov edx, dword [esp + 0x20]
shr ecx, 2
and edx, 0xff
inc eax
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebp - 1], cl
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebp], cl
inc eax
mov byte [eax + ebp], 0x3d
inc eax
mov byte [eax + ebp], 0x3d
inc eax
mov byte [eax + ebp], 0
pop ebp
pop ebx
add esp, 0x14
ret
cmp edx, 2
jne 0x401d47
mov edx, dword [esp + 0x28]
mov cl, byte [esi + edx - 2]
mov dl, byte [esi + edx - 1]
mov bl, cl
mov byte [esp + 0x28], dl
and bl, 3
and ecx, 0xff
shl bl, 4
shr dl, 4
or bl, dl
mov dl, byte [esp + 0x28]
and dl, 0xf
mov byte [esp + 0x2c], bl
shl dl, 2
shr ecx, 2
mov byte [esp + 0x28], dl
inc eax
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [esp + 0x2c]
and ecx, 0xff
mov byte [eax + ebp - 1], dl
inc eax
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [esp + 0x28]
and ecx, 0xff
mov byte [eax + ebp - 1], dl
inc eax
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebp - 1], dl
mov byte [eax + ebp], 0x3d
inc eax
pop edi
mov byte [eax + ebp], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x401d90
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor edx, edx
xor esi, esi
push edi
test ebp, ebp
mov eax, ebx
jle 0x401e16
mov edi, dword [esp + 0x14]
mov cl, byte [esi + edi]
cmp cl, 0x7f
ja case.default.0x401dcd
cmp cl, 0x3d
je 0x401e20
and ecx, 0xff
mov cl, byte [ecx + 0x4094d8]
cmp cl, 0xff
je case.default.0x401dcd
cmp edx, 3
ja case.default.0x401dcd
jmp dword [edx*4 + 0x401e28]
shl cl, 2
mov byte [eax], cl
mov edx, 1
jmp case.default.0x401dcd
mov dl, cl
shr dl, 4
or byte [eax], dl
inc eax
shl cl, 4
mov byte [eax], cl
mov edx, 2
jmp case.default.0x401dcd
mov dl, cl
shr dl, 2
or byte [eax], dl
inc eax
shl cl, 6
mov byte [eax], cl
mov edx, 3
jmp case.default.0x401dcd
mov dl, byte [eax]
or dl, cl
mov byte [eax], dl
inc eax
xor edx, edx
inc esi
cmp esi, ebp
jl 0x401daa
pop edi
mov byte [eax], 0
pop esi
sub eax, ebx
pop ebp
pop ebx
ret
pop edi
sub eax, ebx
pop esi
pop ebp
inc eax
pop ebx
ret
Function at 0x402230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x390
push ebx
push ebp
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x194]
push str.kernel32.dll
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov al, 0x6e
mov bl, 0x65
mov byte [esp + 0x24], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2c], al
lea eax, [esp + 0x20]
mov cl, 0x69
push eax
push esi
mov byte [esp + 0x28], 0x47
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0x74
mov byte [esp + 0x2b], 0x45
mov byte [esp + 0x2d], 0x76
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], 0x72
mov byte [esp + 0x30], 0x6f
mov byte [esp + 0x32], 0x6d
mov byte [esp + 0x33], bl
mov byte [esp + 0x35], 0x74
mov byte [esp + 0x36], 0x56
mov byte [esp + 0x37], 0x61
mov byte [esp + 0x38], 0x72
mov byte [esp + 0x39], cl
mov byte [esp + 0x3a], 0x61
mov byte [esp + 0x3b], 0x62
mov byte [esp + 0x3c], 0x6c
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], 0x41
mov byte [esp + 0x3f], 0
call ebp
lea ecx, [esp + 0x8c]
push 0x104
push ecx
push str.COMSPEC
mov dword [0x40b1c0], eax
call eax
test eax, eax
jne 0x402332
mov edx, dword [str.cmd.exe]
mov ax, word [0x40a1a4]
mov cl, byte [0x40a1a6]
mov dword [esp + 0x8c], edx
mov word [esp + 0x90], ax
mov byte [esp + 0x92], cl
mov edx, dword [esp + 0x3a4]
lea eax, [esp + 0x8c]
push edx
push eax
lea ecx, [esp + 0x19c]
push str._s__c__s
push ecx
call fcn.0040395e
add esp, 0x10
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x48]
lea edx, [esp + 0x10]
mov byte [esp + 0x10], 0x43
rep stosd dword es:[edi], eax
mov al, 0x73
push edx
push esi
mov dword [esp + 0x50], 0x44
mov byte [esp + 0x19], 0x72
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1c], 0x74
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], 0x50
mov byte [esp + 0x1f], 0x72
mov byte [esp + 0x20], 0x6f
mov byte [esp + 0x21], 0x63
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], al
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 0x41
mov byte [esp + 0x26], 0
call ebp
lea ecx, [esp + 0x38]
lea edx, [esp + 0x48]
push ecx
push edx
push 0
push 0
push 0x8000000
push 0
push 0
lea ecx, [esp + 0x1b0]
push 0
push ecx
push 0
mov dword [0x40b1bc], eax
call eax
mov edi, eax
cmp edi, 1
jne 0x402401
mov edx, dword [esp + 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x3c]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x390
ret
Function at 0x405a7d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a528
cmp edx, dword [eax]
je 0x405a9f
add eax, 8
inc ecx
cmp eax, 0x40a5b8
jl 0x405a90
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a528]
jne 0x405bcd
mov eax, dword [0x40b390]
cmp eax, 1
je 0x405ba7
test eax, eax
jne 0x405ad0
cmp dword [0x40a254], 1
je 0x405ba7
cmp edx, 0xfc
je 0x405bcd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405b07
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407700
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406e30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405b4a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406e30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4098ac
push edi
call fcn.00407880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407700
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407710
lea eax, [ebp - 0xa0]
push 0x40988c
push eax
call fcn.00407710
push dword [esi + 0x40a52c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407710
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004077f0
add esp, 0x2c
pop edi
jmp 0x405bcd
lea eax, [ebp + 8]
lea esi, [esi + 0x40a52c]
push 0
push eax
push dword [esi]
call fcn.00406e30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x72540e
Capabilities:
Encode data using xor

Disassembly:
push cs
divps xmm4, xmmword [esi]
outsb dx, byte [esi]
imul dword [esi - 0x67d445e]
mov ebp, 0x5f6533fa
adc eax, 0xce7b2a3f
or dword [esi + 0x1c23a579], edi
or bh, byte [ecx + 0x3f]
dec edx
inc edi
stosd dword es:[edi], eax
outsd dx, dword [esi]
scasb al, byte es:[edi]
jl 0x7253fe
push eax
out dx, eax
cdq
retf
adc dh, byte [ebx + 0x4c5fa13f]
xchg byte [edx + 0x72], ah
add ebp, edi
push edx
push 0xffffffffffffffaa
sbb dword [ebx - 0x6953b924], 0x1d
retf 0x474f
xor dword [ebx - 0x56], eax
push ecx
mov bl, 0xbb
xchg ebx, eax
imul edi, dword [edi], 0x20e476ec
sub dword [edi - 0x70], 0x3c7b8d77
ja 0x72539e
jnp 0x72544f
ja 0x72539e
jnp 0x72544f
pop esp
arpl word [edx], ax
inc edi
pop ebx
cmp cl, ch
jp 0x7253fe
loop 0x7253d7
mov edx, 0x194f1e1b
cmp byte [edx - 0x48], bl
pushfd
xlatb
cmp bh, byte [0x2d050af]
sbb ebx, dword [esi]
dec edi
sbb dword [eax], edi
pop edx
mov eax, 0x3d3ad79c
scasd eax, dword es:[edi]
push eax
rol byte [edx], 1
cmp eax, 0x81c2dbd1
sbb dh, cl
dec ecx
cli
sbb esp, ebx
pushal
int 0xe0
jp 0x72541b
mov cl, 0x1f
mov eax, dword [0xa1fc833d]
pop edi
mov bh, 0xf0
and al, 0x9d
shl dword [ebx], 0x90
xchg ecx, eax
pushal
pop ecx
push eax
dec byte [edi + 0x4a3d9f2e]
push ds
dec esp
invalid
Function at 0x40def0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x7c]
push ebx
push esi
push edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], reloc.ole32.dll_CoDisconnectObject
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
mov edx, dword [eax + 0x30]
mov eax, dword [ecx + 0x3c]
lea eax, [edx + eax]
movzx edx, word [eax + 6]
add eax, 0xf8
mov dword [ebp - 0x74], eax
lea eax, [edx - 1]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jb 0x40e075
sub dword [ebp - 0x6c], 1
lea esi, [esi]
add dword [ebp - 0x6c], 1
imul eax, dword [ebp - 0x6c], 0x28
mov edx, dword [ebp - 0x74]
lea esi, [eax + edx]
lea edi, [ebp - 0x4c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x7c]
or edx, eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
test dword [ebp - 0x50], 0xffffffff
je 0x40e069
mov ebx, dword [ebp - 0x28]
mov eax, ebx
and eax, 0x2000000
je 0x40dfcc
push 0x4000
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 8]
jmp 0x40e069
mov eax, ebx
and eax, 0x20000000
je 0x40dfde
mov dword [ebp - 0x68], 1
jmp 0x40dfe5
mov dword [ebp - 0x68], 0
mov eax, ebx
and eax, 0x40000000
je 0x40dff7
mov dword [ebp - 0x64], 1
jmp 0x40dffe
mov dword [ebp - 0x64], 0
mov eax, ebx
and eax, 0x80000000
je 0x40e010
mov dword [ebp - 0x60], 1
jmp 0x40e017
mov dword [ebp - 0x60], 0
mov eax, ebx
and eax, 0x4000000
je 0x40e029
mov dword [ebp - 0x5c], 1
jmp 0x40e030
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x68]
shl eax, 4
lea eax, [ebp + eax - 0x24]
mov edx, dword [ebp - 0x64]
lea ecx, [eax + edx*8]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x5c], 1
jne 0x40e056
or dword [ebp - 0x54], 0x200
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + reloc.ole32.dll_CoInitialize]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
ja 0x40df74
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414640
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, dword [edx + 0x14]
mov eax, dword [eax]
lea eax, [ebx + eax]
mov edi, 0
lea esi, [esi]
lea ebx, [eax + edi]
mov ebp, dword [ebx]
mov esi, ecx
xor esi, ebp
mov dword [ebx], esi
lea ebx, [edi + 4]
mov edi, ebx
mov ebx, dword [edx + 8]
cmp ebx, edi
ja 0x414654
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
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 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
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 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1a1c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1a1c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1a1c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1a1c06a
add dl, dl
jne 0x1a1c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1a1c0dc
xor eax, eax
add dl, dl
jne 0x1a1c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1a1c17d
add dl, dl
jne 0x1a1c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a1c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a1c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a1c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1a1c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1a1c075
mov eax, 1
add dl, dl
jne 0x1a1c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a1c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1a1c0e1
sub eax, ebx
mov ebx, 1
jne 0x1a1c128
mov ecx, 1
add dl, dl
jne 0x1a1c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1a1c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1a1c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1a1c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1a1c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1a1c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1a1c136
cmp eax, 0x7d00
jae 0x1a1c16d
cmp eax, 0x500
jb 0x1a1c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1a1c075
cmp eax, 0x7f
ja 0x1a1c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1a1c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1a1c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1a1c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402a88
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.00404150
test esi, esi
jne 0x402abe
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.00404240
jmp 0x402adc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040299c
mov edi, eax
test esi, esi
je 0x402adc
cmp dword [ebx], 0
je 0x402adc
dec esi
jmp 0x402ac5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4bd020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403264
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403244
xor eax, eax
push ebp
push 0x40323d
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 0x403280
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 0x403244
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4bd020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4bd020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c204c], 0
je 0x403f91
cmp word [0x4c2220], 0xd7b2
jne 0x403f59
cmp dword [0x4c2228], 0
jbe 0x403f59
mov eax, 0x4c221c
call dword [0x4c2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4bd06c
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 0x403fb8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bd030], 0
jne 0x403fad
push 0
push 0x4bd064
push 0x4bd06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404104
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402754
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4c204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4040cc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405664
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 0x405894
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4056e7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405894
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4056e7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4058b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405770
xor eax, eax
push ebp
push 0x405769
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004054ac
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 0x40574e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4058d0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40574e
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 0x405770
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 0x40588a
cmp byte [ebp - 0xd], 0
jne 0x4057b7
cmp byte [ebp - 0x12], 0
je 0x40588a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4057d0
dec ebx
cmp byte [ebx], 0x2e
je 0x4057df
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4057cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40588a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40581c
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 0x40588a
cmp byte [ebp - 0xd], 0
je 0x40588a
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 0x40588a
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