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

Disassembly:
mov eax, 0x80
call fcn.004257a0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x49258b
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x49259d
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x492709
push esi
call fcn.0049a030
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x4925d3
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.0048ec30
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x492612
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.004915e0
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.00491750
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.00491850
add esp, 0x24
jmp 0x492651
test ebp, ebp
jl 0x49261e
cmp ebp, 0x80
jle 0x492632
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.0048ec30
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x492676
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x38]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x49267f
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.004915e0
push esi
call fcn.0049a030
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.00491750
add esp, 0x1c
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x4926bb
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.004915e0
push esi
call fcn.0049a030
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.00491750
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.00491900
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x4926ee
jmp 0x49267d
Function at 0x4dbd89
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4dbdc1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004daca4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dac7b
jmp 0x4dbdcd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ddb8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ddbd0
call fcn.004f45c9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4ddbd0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ddbc7
xor eax, eax
jmp 0x4ddbd8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ddbde
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e0e05
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004f45c9
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4e0e36
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004e0e5b
pop edi
pop esi
pop ebx
ret 8
Function at 0x4e11ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4fd9a0
call fcn.00424bc4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004f45c9
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4e1209
call fcn.004f45c9
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4e1217
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4e1225
or eax, 0xffffffff
jmp 0x4e130d
mov ecx, esi
call fcn.004e1140
mov dword [ebp - 0x14], eax
call fcn.004db891
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4e125c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4e125c
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004db845
push dword [ebp - 0x14]
call fcn.004db3c8
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004e0e5b
cmp eax, edi
je 0x4e12cf
test byte [esi + 0x24], 0x10
je 0x4e129d
push 4
mov ecx, esi
pop ebx
call fcn.004de744
test ah, 1
je 0x4e1295
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004dde2e
cmp dword [esi + 0x1c], edi
je 0x4e12cf
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004de8d0
jmp 0x4e12cf
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4e12e3
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4e12fc
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4e12fc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004e117a
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4f3b5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004f45c9
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4f3b97
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f3b97
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4f3b9b
xor eax, eax
jmp 0x4f3c19
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004da41d
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4f3bd3
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4f3bbd
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004f3d1e
push ebx
mov edi, eax
call fcn.004da446
test edi, edi
pop ecx
je 0x4f3c15
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004f3a70
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004f3c1e
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x1580840
Capabilities:
Encode data using xor

Disassembly:
add eax, edi
cmp bh, ch
bt bx, 1
cmc
mov byte [esp], 3
cmp eax, edx
pushal
pushfd
push ebp
lea esp, [esp + 0x2c]
jb 0x1585596
jmp 0x1590dbe
cmp eax, dword [ebp - 0x10]
push esp
call fcn.015f35ba
cmovg ebx, ebp
xor al, 0x4c
jge 0x1590de9
popal
inc edi
pop ecx
leave
xchg ecx, eax
and eax, dword [eax + edx*8 - 0x4e01a52f]
stosd dword es:[edi], eax
sbb ecx, dword [edx + 0x7c5e6cb8]
rcr dword [eax], 0x1c
mov edi, 0x1d6d087
push 0x67482466
loopne 0x1590dff
sub byte [ebx - 0x71cbd671], dl
xor al, 0x8e
popal
cmp al, 0x7c
call 0x40f12e03
jecxz 0x1590df4
hlt
ficomp dword [eax + 0x77db2e94]
inc ebp
add al, 0xea
cmp al, dh
imul ebx, dword [ebx], 0xffffff91
pop esp
mov ch, 0xa4
psraw mm2, qword [ebp + 0x421560c5]
xor eax, 0xdf031b07
inc eax
xor al, bl
mov ebp, 0x8bf6f588
test word [esi + 0x4e29adf9], cx
int1
jp 0x1590ea9
sub al, 0x6a
dec eax
js 0x1590e5c
imul byte [edi + 0x6e]
aaa
imul edx, esp, 0x45
xor al, 0x3a
xchg ecx, eax
jmp 0xc01970a7
mov dh, byte [0x6ea8d599]
mov bl, 0x54
push 0xffffffffffffffdb
inc esi
invalid
xor eax, dword [eax + 0x3a5707de]
xor edi, esi
add dh, dh
inc eax
cld
fist word [edi - 0x79]
ja 0x1590edd
sub byte [edx - 0x21f19382], bh
pushfd
invalid
pop ecx
daa
xor eax, 0xaacfe325
mov dl, 0xe0
call 0x170f49d2
sahf
mov al, byte ds:[0x6ff7dfcd]
imul esp, dword [edi + 0x1bf71bca], 0xffffffd4
arpl word [ecx - 0x49409d9f], cx
ret 0x435f

Function at 0x1589f87
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 4]
ja 0x15fe5b7
rcr al, cl
and al, ch
cmp al, 0xf2
sub ebx, edi
sar di, cl
btc di, sp
add ebx, esp
sbb al, 0x3a
call fcn.015f0139
and byte [ecx + 0x7cde20f1], al
sbb edi, dword [esi]
mov dh, 0xa6
xor ecx, 0x1b7cde20
mov dh, 0xa6
and byte [edi], al
rcl esp, 1
outsb dx, byte [esi]
mov bl, 0xfc
pushal
sti
sub byte [edx + ebx + 0x44de7631], cl
je 0x1589faa
ret

Function at 0x1604a87
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0x44]
je 0x158558d
call fcn.01580840
cmpsb byte [esi], byte es:[edi]
xor eax, 0x7c34b958
sbb ebp, dword [esi + 0x30ac39ee]
adc dl, byte [ecx]
mov al, 0x2d
sub ebp, dword [ebp + 0x56cc5b7e]
invalid
add edi, eax
cmc
stc
movzx ecx, word [edi + ecx*2]
jmp 0x15fbe70
mov edi, dword [edx + 0x1c]
cmp sp, 0x5a7e
cmc
pushal
add edi, eax
mov word [esp], 0xaf4
pushal
mov edi, dword [edi + ecx*4]
bt bx, ax
cmc
mov dword [esp + 4], esi
test ch, 0x3b
test edi, edi
mov byte [esp], bh
jmp 0x157f521
lea esp, [esp + 0xc]
jb 0x158c255
push ebp
cmp dh, bh
push 0xdd893698
cmp byte [edi - 1], 0
mov word [esp], bp
pushfd
push dword [esp]
lea esp, [esp + 0x10]
jne 0x15854f9
bsf di, bx
mov edi, dword [edx + 0x24]
bt cx, 1
push edi
jmp 0x15ea250

Function at 0x1605e12
Capabilities:
Encode data using base64

Disassembly:
shl ch, 1
mov ecx, dword [ebp + 0xc]
pushfd
cmp ecx, 0xffff
jmp 0x1609a4a
pushfd
test bh, bh
mov dword [ebp - 0x10], ecx
shr ecx, 0xd
jmp 0x15fca3b
pushal
Function at 0x1609a68
Capabilities:
Encode data using base64

Disassembly:
mov dword [0x2e8efc99], eax
mov edx, 0x5a12167e
cmpsb byte [esi], byte es:[edi]
cmp byte [ecx + 0x3a9b891c], dh
mov al, byte [0x4bd35bcd]
xchg ecx, eax
xchg ebx, eax
bound edi, qword [edi - 0x40d29710]
call 0x36f8f32e
je 0x1609a6a
scasd eax, dword es:[edi]
mov ch, 0x3d
rcr byte [esi], 1
jb 0x1609a09
mov ebp, 0x8af54f2f
test dword fs:[eax - 0x78], ebp
mov ss, word [ebx + 0x33bbf815]
test eax, 0x482449f9
jge 0x1609aab
lea esp, [esp + 0x34]
jbe 0x158cec7
add cl, 0xf4
cmc
xor bl, dh
mov edi, dword [edx + 0x24]
shl cx, cl
add edi, eax
call fcn.01588045
call fcn.0187066b
imul esp, dword [esi], 0
pop esp
inc esi
stosb byte es:[edi], al
neg eax
test byte [ebx], bl
jo 0x1609a33
mov eax, dword [0x65f5f037]
dec edi
push edx
fnstcw word [edi + 0x30]
scasb al, byte es:[edi]
mov bl, 0xa9
sub ch, byte [ebp + 0x2bf53b68]
jnp 0x1609a6d
in eax, dx
mov ecx, 0x91e01292
xchg edx, eax
in eax, 0x8c
invalid
and esi, dword [eax - 0x15]
invalid
dec ebp
mov esi, 0x82e1643a
jae 0x1609a96
jp 0x1609ac4
xchg ebp, eax
enter 0xffffffffffffc814, 0x33
mov edx, 0xff1c88a2
xor edi, dword [edx - 0xe3775e]
and ah, dl
stc
xchg ecx, eax
sbb byte [esi - 0x1d], dh
lcall 0x85d6, 0x21866201
fistp qword [edx - 0xb]
push cs
dec ebx
mov ah, 0xfe
shr dword [edx + 0x25], cl
mov edx, 0xe6c008d3
xchg esp, eax
aam 0x18
cwde
xlatb
mov ecx, 0x392ddfc5
in eax, dx
loop 0x1609a9d
xor byte [edi - 0x2216c2cd], bh
stc
sub al, 0xa2
leave
mov dword [ebp + 0x1f], esp
scasb al, byte es:[edi]
in eax, dx
imul edx, esp, 0xffffffdf
pop dword [ebx + 0x24948a5f]
jae 0x1609b67
leave
invalid
push cs
cmpsb byte [esi], byte es:[edi]
loopne 0x1609b68
rdpmc
sub eax, eax
xor byte [esi - 0x74], bh
dec ebx
sbb byte [ebx - 6], dh
pop ss
retf

Function at 0x187247c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push dword [esp]
mov dword [ebp], eax
mov byte [esp], bh
lea esp, [esp + 0x2c]
jmp 0x1872956
Function at 0x1006040f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1009dba0]
jne 0x10060419
repz ret
jmp fcn.100642a8

Function at 0x10075428
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1009ebd0]
je 0x10075443
inc edi
cmp edi, 0x17
jb 0x10075434
cmp edi, 0x17
jae 0x100755c3
push ebp
push 3
call fcn.10083762
cmp eax, 1
pop ecx
je 0x1007558f
push 3
call fcn.10083762
test eax, eax
pop ecx
jne 0x10075477
cmp dword [0x1009ffe8], 1
je 0x1007558f
cmp ebx, 0xfc
je 0x100755c2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100a0680
push ebp
call fcn.1006c3f0
add esp, 0xc
test eax, eax
je 0x100754ad
push esi
push esi
push esi
push esi
push esi
call fcn.100662c4
add esp, 0x14
push 0x104
mov esi, 0x100a0699
push esi
push 0
mov byte [0x100a079d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100754f1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1006c3f0
add esp, 0xc
test eax, eax
je 0x100754f1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100662c4
add esp, 0x14
push esi
call fcn.10060eb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10075536
push esi
call fcn.10060eb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100a0994
push 0x100924e0
sub ecx, eax
push ecx
push eax
call fcn.1007b2f6
add esp, 0x14
test eax, eax
je 0x10075536
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100662c4
add esp, 0x14
jmp 0x10075538
xor esi, esi
push 0x10092d68
push ebx
push ebp
call fcn.1007b23a
add esp, 0xc
test eax, eax
je 0x10075558
push esi
push esi
push esi
push esi
push esi
call fcn.100662c4
add esp, 0x14
push dword [edi*8 + 0x1009ebd4]
push ebx
push ebp
call fcn.1007b23a
add esp, 0xc
test eax, eax
je 0x1007557a
push esi
push esi
push esi
push esi
push esi
call fcn.100662c4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.100835a5
add esp, 0xc
jmp 0x100755c2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100755c2
cmp ebp, 0xffffffff
je 0x100755c2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1009ebd4]
push dword [esi]
call fcn.10060eb0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100835a5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10062fc8
xor ebx, ebx
cmp dword [0x100a09d0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1008367b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1008375b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1008375b
push eax
call fcn.10062f5a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100a09d0], eax
call esi
push eax
call fcn.10062f5a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100a09d4], eax
call esi
push eax
call fcn.10062f5a
mov dword [0x100a09d8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10068183
test eax, eax
pop ecx
pop ecx
je 0x10083649
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100662c4
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1008367b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10062f5a
cmp eax, ebx
pop ecx
mov dword [0x100a09e0], eax
je 0x1008367b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10062f5a
pop ecx
mov dword [0x100a09dc], eax
mov eax, dword [0x100a09dc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10083700
cmp dword [0x100a09e0], ecx
je 0x10083700
push eax
call fcn.10062fd1
push dword [0x100a09e0]
mov esi, eax
call fcn.10062fd1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10083700
cmp edi, ebx
je 0x10083700
call esi
cmp eax, ebx
je 0x100836cd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100836cd
test byte [ebp - 0x18], 1
jne 0x10083700
lea eax, [ebp - 0x10]
push eax
call fcn.10068232
test eax, eax
pop ecx
je 0x100836e8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100662c4
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100836f7
or dword [ebp + 0x10], 0x200000
jmp 0x1008373b
or dword [ebp + 0x10], 0x40000
jmp 0x1008373b
mov eax, dword [0x100a09d4]
cmp eax, dword [ebp - 8]
je 0x1008373b
push eax
call fcn.10062fd1
cmp eax, ebx
pop ecx
je 0x1008373b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1008373b
mov eax, dword [0x100a09d8]
cmp eax, dword [ebp - 8]
je 0x1008373b
push eax
call fcn.10062fd1
cmp eax, ebx
pop ecx
je 0x1008373b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100a09d0]
call fcn.10062fd1
cmp eax, ebx
pop ecx
je 0x1008375b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1008375d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x40b060
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x4f3470
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b0ec
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x40b0ec
cmp ebx, 0x15f90
jl 0x40b0e3
cmp ebx, 0x1d4c0
jge 0x40b0c0
mov eax, 0x32
jmp 0x40b0e5
cmp ebx, 0x2bf20
jge 0x40b0cf
mov eax, 0x64
jmp 0x40b0e5
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x40b0e5
mov eax, 0xfa
jmp 0x40b0e5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b100
inc ebx
cmp ebx, 0x57e40
jl 0x40b078
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b11a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.00421bd0
add esp, 4
mov eax, dword [0x4f3474]
test eax, eax
jne 0x40b150
cmp dword [0x4e73a0], 1
je 0x40b1d4
xor ebx, ebx
xor esi, esi
cmp dword [0x4f346c], 0
je 0x40b194
mov dword [0x4f3474], 1
cmp dword [0x4e73a0], 1
je 0x40b17f
mov dword [0x4f3470], 0
push dword [0x4f3468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b1f2
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.00461420
push ebx
push 0x16
call fcn.00461420
add esp, 0x10
jmp 0x40b150
mov dword [0x4f346c], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4f3468], eax
cmp eax, 0xffffffff
jne 0x40b1b8
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40b13d
push 0x40aff0
call fcn.00461e40
push 0x40afb0
call fcn.00461e40
add esp, 8
jmp 0x40b13d
push 1
push 2
call fcn.00461420
mov esi, eax
push 1
push 0x16
call fcn.00461420
add esp, 0x10
mov ebx, eax
jmp 0x40b134
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.00421c10
add esp, 0xc
test eax, eax
je 0x40b21c
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4e72fc]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4e72f8]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4e72f4]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4e72f0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x40b224
push dword [ebp - 0x10]
push dword [0x4f3468]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
jmp 0x40b16e