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

Disassembly:
jmp 0xdb9302
pushal
call 0xdb9308
pop ebp
sub ebp, 0x10
sub ebp, 0x9b92f8
jmp 0xdb931e
mov eax, 0x9b92f8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c5
mov edx, 0xb22795f6
xor byte [eax], dl
inc eax
dec ecx
jne 0xdb9335
jmp 0xdb9348
jge 0xdb9385
jge 0xdb93cb
retf 0xf6f6
or bh, byte [edi - 0xe]
rcr byte [esi - 0x929691e], cl
sahf
adc al, ah
invalid
adc eax, 0xf31eebfd
div dh
neg byte [edi]
sal dh, 0xf6
idiv byte [ebx - 0x6e]
ror byte [edx], cl
jg 0xdb9372
sar byte [ebx - 0x66], cl
sal dh, cl
jge 0xdb9412
invalid
sal dl, cl
div dh
div dh
neg byte [esi - 0x929691e]
sahf
adc al, ah
invalid
les ecx, [ebp - 0x2d25080a]
cmpsd dword [esi], dword es:[edi]
push ds
div dh
neg byte [edi]
mov bl, 0xf4
div dh
mov dword [0x8309aba2], eax
cli
or dword [ebx - 0x971e102], eax
div dh
jge 0xdb9442
invalid
daa
lds esp, [esi*2 - 0x6410ce2]
jb 0xdb93ca
div dh
idiv cl
stc
jle 0xdb93d6
div dh
not byte [eax + 0x76cfea7d]
or eax, 0xec72f91e
div dh
div byte [esi + 0xd]
pop ds
stc
jb 0xdb9415
jge 0xdb9408
iretd
div dh
not byte [eax - 0x2cf6f289]
stc
jb 0xdb941c
div dh
div byte [edi + 0x9093a1f]
or edi, ebx
mov edx, 0x3775f7cf
fistp qword [edx + 0x3775f7cf]
jne 0xdb9469
pop ds
dec ebx
or dword [ecx], ecx
or edi, ebx
mov byte [0x3775f4cf], al
invalid
xor al, 0xfa
mul byte [ebx - 0x5e5fe583]
mov dword [0x7dfa837d], eax
mov edi, esi
or al, byte [esi + esi*2 + 0x7c]
invalid
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x377c180e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x33a001ac
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4067c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x40695e
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 0x406938
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406933
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40698f
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 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x406971
pop edi
not eax
pop esi
ret 0xc
Function at 0x403bec
Capabilities:
Encode data using xor

Disassembly:
push 0x403d88
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
dec eax
add byte [eax], al
add byte [eax], dh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
fild qword [ebx + 0xe0876cf]
loope 0x403c54
mov esp, 0x133d314e
or dword [esp + ecx*2], ebp
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
sub eax, 0x30303043
sub eax, 0x706c7276
outsd dx, dword [esi]
push 0x30004473
xor al, 0x36
jge 0x403c59
xor ch, byte [esi]
add byte [ebx], ah
xor byte [ebx], ah
inc ebx
cmp bl, byte [edi + edx*2]
add byte [eax], al
add byte [eax], dl
add byte [eax], al
add byte [edx], al
add byte [eax], al
add byte [edx], al
add byte [eax], al
add byte [eax], al
push ds
add byte [esi], bl
aas
sub al, 0x1b
xchg edx, eax
and cl, byte [ebx - 0x79]
shr dword [esi - 0x31], 1
loope 0x403cab
xchg edx, eax
outsb dx, byte [esi]
add dword [eax], eax
add byte [eax], al
mov al, byte [0xb0000000]
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [ebp + 0x3d], ah
sub bl, byte [ecx + eax + 0x20]
inc esp
inc ebp
inc ecx
inc esp
add byte [eax], al
inc ebp
inc esi
sub eax, 0x46373345
sub eax, 0x72657355
inc ebx
jb 0x403cd0
outsd dx, dword [esi]
outsb dx, byte [esi]
je 0x403d03
outsd dx, dword [esi]
insb byte es:[edi], dx
xor dword [eax], eax
xor eax, 0xdf783335
mov edi, 0xf3315da9
dec esi
lodsb al, byte [esi]
loop 0x403c8b
xor esp, dword [ebx - 0x2e9ed419]
retf 0x7b17
jnp 0x403c8b
aam 0xe6
inc ecx
test dword [edx + 0x44902847], eax
adc al, 0x2a
add dword [eax], eax
add eax, dword [eax]
pop eax
inc esi
inc eax
add byte [eax], al
add byte [eax], al
add bh, bh
cmp al, 0x47
inc eax
add byte [ebx + eax*8 + 0x42], dh
add byte [ecx], al
add byte [eax], al
add al, dh
cmp al, 0x40
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, dh
cmp al, 0x40
add byte [edx + 0x10008ea], ah
add byte [eax], al
add byte [eax + 0x46], bl
inc eax
add byte [eax], al
add byte [eax], al
add bh, bh
Function at 0x402d3c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403f24
test esi, esi
jne 0x402d73
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404014
jmp 0x402d94
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402bd8
mov dword [esp], eax
test esi, esi
je 0x402d94
cmp dword [ebx], 0
je 0x402d94
dec esi
jmp 0x402d7b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4032d0
Capabilities:
Query or enumerate registry value

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

Function at 0x403da0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41f04c], 0
je 0x403e01
cmp word [0x41f220], 0xd7b2
jne 0x403dc9
cmp dword [0x41f228], 0
jbe 0x403dc9
mov eax, 0x41f21c
call dword [0x41f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41e068
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 0x403e28
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41e02c], 0
jne 0x403e1d
push 0
push 0x41e060
push 0x41e068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d90
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 0x405df6
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.00404194
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ec4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405de0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dfd
lea eax, [ebp - 0x10]
call fcn.00403f24
ret

Function at 0x4079dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004043c0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4079f5
test al, 0x10
jne 0x4079f9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a3f0
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 0x40a429
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404014
jmp 0x40a432
mov eax, ebx
mov edx, esi
call fcn.00403f78
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a43c
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 0x40a45d
mov al, byte [esp]
jmp 0x40a45f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40aaf4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a95c
mov eax, dword [0x41e5a4]
cmp byte [eax], 0
je 0x40ab70
mov eax, dword [0x41e4a0]
call fcn.00402e40
call fcn.00402b04
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.00407d10
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 0x40abb8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40aba6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41e478]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41f668]
call fcn.00405220
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 0x40b988
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 0x40b9ec
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.00404194
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040763c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9f3
lea eax, [ebp - 0xc]
call fcn.00403f24
ret

Function at 0x416414
Capabilities:
Enumerate pe sections
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
xor edx, edx
mov dword [esp], edx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41644f
push 0
push 0x416548
push 0x41654c
push 0
call sub.user32.dll_MessageBoxA_1
push 0
push ebp
call sub.kernel32.dll_GetFileSize
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
call fcn.004029a4
mov ebx, eax
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
push ebx
push ebp
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x416490
push 0
push 0x416548
push 0x416550
push 0
call sub.user32.dll_MessageBoxA_1
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x50]
call fcn.004029a4
mov dword [esp], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x50]
mov eax, dword [esp]
call fcn.0040630c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x54]
mov edx, ebx
mov eax, dword [esp]
call fcn.00406304
mov eax, dword [esp + 0x10]
mov si, word [eax + 6]
dec esi
test si, si
jb 0x416529
inc esi
xor edi, edi
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0x3c]
mov eax, ebx
add edx, eax
add edx, 0xf8
movzx ecx, di
shl ecx, 3
lea ecx, [ecx + ecx*4]
add edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x10]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x14]
add edx, eax
push edx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
add eax, dword [esp + 4]
pop edx
call fcn.00406304
inc edi
dec si
jne 0x4164e1
mov edx, dword [esp + 4]
mov eax, ebx
call fcn.004029d4
push ebp
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4165c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov dword [esp], edx
mov esi, eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword [esi + 0x3c]
mov eax, esi
add edx, eax
mov dword [esp + 8], edx
mov edx, dword [esp + 8]
add edx, 0x78
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
mov edx, dword [edx]
add edx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x1c]
add edx, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x20]
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x24]
add edx, eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 0x18]
dec ebx
test ebx, ebx
jb 0x4166aa
inc ebx
mov eax, dword [esp + 0x20]
movzx edx, word [eax]
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp edx, eax
jbe 0x41664d
add dword [esp + 0x18], 4
inc eax
cmp edx, eax
ja 0x416643
mov edx, dword [esp + 0xc]
mov edx, dword [edx]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp edx, eax
ja 0x416668
mov ecx, dword [esp + 0xc]
add edx, dword [ecx + 4]
cmp eax, edx
jb 0x41669d
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
add eax, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
call fcn.00416300
mov ecx, eax
mov edx, dword [esp + 0x24]
xor eax, eax
call fcn.00416314
cmp eax, dword [esp]
jne 0x41669d
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, esi
mov dword [esp + 4], eax
jmp 0x4166aa
add dword [esp + 0x20], 2
add dword [esp + 0x1c], 4
dec ebx
jne 0x41662e
mov eax, dword [esp + 4]
add esp, 0x28
pop esi
pop ebx
ret

Function at 0x416d24
Capabilities:
Hash data with md5

Disassembly:
push ebx
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov edx, 0x40
lea ecx, [eax + 0x18]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x416d37
mov edx, 0x10
lea ecx, [eax + 0x58]
xor ebx, ebx
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x416d46
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebx
ret

Function at 0x4178d4
Capabilities:
Hash data with md5

Disassembly:
push ebx
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov edx, 0x40
lea ecx, [eax + 0x18]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x4178e7
mov edx, 0x10
lea ecx, [eax + 0x58]
xor ebx, ebx
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x4178f6
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebx
ret
Function at 0x419660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004043b0
mov eax, dword [ebp - 8]
call fcn.004043b0
mov eax, dword [ebp - 0xc]
call fcn.004043b0
xor eax, eax
push ebp
push 0x419859
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4196e1
push 0x419874
push dword [ebp - 4]
push 0x419880
push dword [ebp - 8]
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.00404280
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.00407428
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 8]
call fcn.00403fbc
lea eax, [ebp - 0x60]
mov edx, 0x44
call fcn.0040630c
lea eax, [ebp - 0x1c]
mov edx, 0x10
call fcn.0040630c
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
test ebx, ebx
je 0x419734
mov word [ebp - 0x30], 5
push 0
push 0x10000000
push 0
push 0
push 0
mov eax, ebx
call fcn.004043c0
mov esi, eax
push esi
call sub.user32.dll_CreateDesktopA
mov dword [ebp - 0x58], esi
jmp 0x41973c
mov ax, word [ebp + 8]
mov word [ebp - 0x30], ax
cmp dword [ebp - 0xc], 0
jne 0x4197af
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x8008000
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004043c0
push eax
mov eax, dword [ebp - 4]
call fcn.004043c0
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x41981e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x8008000
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040420c
mov eax, dword [ebp - 0x6c]
call fcn.004043c0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
jmp 0x41981e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004043c0
mov ebx, eax
push ebx
push 0
push 0x8008000
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004043c0
push eax
mov eax, dword [ebp - 4]
call fcn.004043c0
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x41981e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0
push 0x8008000
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040420c
mov eax, dword [ebp - 0x70]
call fcn.004043c0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
mov eax, dword [ebp - 0x1c]
mov ebx, eax
cmp byte [ebp + 0x10], 0
je 0x419831
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419860
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.00403f48
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403f48
ret
Function at 0x419884
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41991d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00407bf0
mov eax, dword [ebp - 4]
mov edx, 0x419938
call fcn.0040430c
jne 0x4198d0
push 0
push 0
push 5
xor ecx, ecx
mov edx, esi
mov eax, ebx
call fcn.00419660
mov ebx, eax
jmp 0x419902
push edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00407b84
mov eax, dword [ebp - 8]
call fcn.004043c0
push eax
mov eax, esi
call fcn.004043c0
push eax
mov eax, ebx
call fcn.004043c0
push eax
push 0x419940
push 0
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419924
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f48
ret

Function at 0x419a48
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004043c0
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x419a76
test bl, 2
jne 0x419a76
or ebx, 2
push ebx
mov eax, esi
call fcn.004043c0
push eax
call sub.kernel32.dll_SetFileAttributesA
pop esi
pop ebx
ret

Function at 0x419a7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00403f24
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0x110]
mov edx, dword [ebp - 0xc]
call fcn.0040630c
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
mov eax, edi
call fcn.004043c0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x419b0a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004043c0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x419b0a
cmp dword [ebp - 0x10], 1
jne 0x419b0a
mov eax, ebx
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00404194
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x419ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004043b0
xor eax, eax
push ebp
push 0x419f24
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x419f0e
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004043c0
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
je 0x419f0e
push 0
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
push edi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
push edi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419f2b
lea eax, [ebp - 4]
call fcn.00403f24
ret
Function at 0x41a0bc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004043b0
xor eax, eax
push ebp
push 0x41a14b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004043c0
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41a135
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov dword [esi], eax
mov eax, dword [esi]
call fcn.004029a4
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a152
lea eax, [ebp - 4]
call fcn.00403f24
ret

Function at 0x41a1c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebp, eax
mov eax, dword [esp]
call fcn.004041c0
mov edi, eax
mov eax, dword [esp]
call fcn.004041c0
mov esi, eax
test esi, esi
jle 0x41a1ff
mov ebx, 1
mov eax, dword [esp]
movzx eax, byte [eax + ebx - 1]
xor edi, eax
inc ebx
dec esi
jne 0x41a1f1
mov eax, dword [esp + 4]
mov edx, ebp
call fcn.00403f78
mov eax, ebp
call fcn.004041c0
mov esi, eax
test esi, esi
jle 0x41a235
mov ebx, 1
mov eax, dword [esp + 4]
call fcn.00404418
mov edx, edi
xor dl, byte [ebp + ebx - 1]
not dl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x41a21c
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret