joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55c6df
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0x55
push str.oledrop1.cpp
mov eax, dword [ebp - 0x24]
push eax
call fcn.004b78e0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x38], 0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x55c743
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
or al, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
or al, 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], eax
jmp 0x55c770
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x55c770
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
or ecx, 2
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x34]
or ecx, 1
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.0051d724
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
jne 0x55c84a
call fcn.0051d713
cmp eax, dword [ebp + 8]
je 0x55c79d
jmp 0x55c84a
push 1
push 0x209
push 0x200
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x55c7d5
push 1
push 0x108
push 0x100
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x55c82a
cmp dword [ebp - 0x1c], 0x202
je 0x55c7f9
cmp dword [ebp - 0x1c], 0x205
je 0x55c7f9
cmp dword [ebp - 0x1c], 0x201
je 0x55c7f9
cmp dword [ebp - 0x1c], 0x204
jne 0x55c7fb
jmp 0x55c84a
cmp dword [ebp - 0x1c], 0x100
jne 0x55c80c
cmp dword [ebp - 0x18], 0x1b
jne 0x55c80c
jmp 0x55c84a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call fcn.00516c26
neg eax
sbb eax, eax
inc eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [0x656fb8]
jbe 0x55c845
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x30], 1
jmp 0x55c781
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x30]
mov esp, ebp
pop ebp
ret 4
Function at 0x45b24f
Capabilities:
Encode data using xor

Disassembly:
push edi
inc eax
std
ljmp 0x5844
adc cl, bl
nop
loope 0x45b243
mov edi, 0xc4f550c5
xchg ebp, eax
rcl byte [ebp + 0x48e2fdff], cl
sub edi, ebx
inc edx
in al, 5
mov ah, 0x1b
inc ecx
adc byte [esi], ah
push edi
xor al, 0x20
xor eax, 0xf2328e60
mov dh, byte [ebp + ebx*8 - 9]
mov dword [0xdaa7f231], eax
sub edx, dword [ecx]
xlatb
cwde
daa
lodsb al, byte [esi]
aam 0x52
xor eax, ebp
mov dl, 0x18
cld
add eax, 0x39136b5e
cwde
invalid

Function at 0x51a608
Capabilities:
Encode data using xor

Disassembly:
loopne 0x51a653
hlt
insd dword es:[edi], dx
ja 0x51a6ab
xchg esi, eax
xchg edi, eax
scasd eax, dword es:[edi]
adc al, 0x38
in al, dx
push 0x7c
inc ecx
in eax, dx
cmp eax, 0x9bdd42e
sub al, 0xad
push 0xdefb134e
pushal
pushal
std
out 0x63, al
pop esi
xor bh, byte [ecx]
movsb byte es:[edi], byte [esi]
mov byte [edx + 0x25], al
xor byte [ebx - 0x70fd06c1], bl
pop esi
mov bh, 0x29
sub dword [esi], 0x17cccd75
sbb edx, ebx
loopne 0x51a6b6
and eax, 0x3f239c30
stc
add cl, byte [edi - 0x7ed648a2]
jne 0x51a639
int3
loop 0x51a6b8
inc ecx
cmp al, 0x8c
adc edx, dword [esi]
xor al, 8
cld
mov bh, 0xdd
mov al, byte [0x879472fc]
jge 0x51a65d
aad 0x7c
insb byte es:[edi], dx
rcr dword [esi + 0x32], cl
scasd eax, dword es:[edi]
jmp 0x8090d896
invalid
movsd dword es:[edi], dword [esi]
out dx, al
test al, 0xeb
test eax, 0x6ce99045
pushfd
lcall 0x6275, 0x853bb708
invalid

Function at 0x58ba2b
Capabilities:
Encode data using xor

Disassembly:
jb 0x58b9c8
mov eax, dword [0x42718f18]
retf
inc ebp
inc ebp
or eax, dword [esi]
pop eax
loop 0x58b9cb
inc edx
fsubr qword [ecx + 0x453b98]
dec ebx
jne 0x58ba6d
inc ebp
add byte [ebx + 0x75], cl
xor byte [ebx + 0x52], cl
dec ebx
push edx
xchg edi, eax
jcxz 0x58ba38
add al, 0x87
and dword [esi - 0x47], edx
fist word [ecx + 0x6705e4f4]
pop ecx
fcom dword [ebx*4 + 0x3c37a4e8]
dec ebp
cmc
out 0x95, eax
mov word [ebp + 0x6f65a885], es
out dx, eax
test ebx, eax
pop ss
push ebx
in eax, 0x47
mov esp, 0x15fe1bf8
push es
jmp 0x9714ec3

Function at 0x5c51f5
Capabilities:
Encode data using xor

Disassembly:
xor dl, byte [0x81dc895a]
sub dword [edx + 0x504aad3f], 0x2f0a1958
mov dword [ecx + 0x5896c36a], edx
mov edx, edi
xlatb
invalid

Function at 0x5c90ec
Capabilities:
Encode data using xor

Disassembly:
outsd dx, dword [esi]
js 0x5c9125
retf
jae 0x5c916d
pop edi
inc esp
adc al, byte [esi - 0x57]
dec edx
hlt
xor eax, 0xb5aa18d7
xor al, 0x1f
rcl ecx, cl
daa
jne 0x5c9119
jne 0x5c9119
stc
dec edi
test eax, 0x6973a6db
jle 0x5c9175
invalid
mov fs, word [edi + 0x44]
push ebx
out 0x58, al
mov bl, 0xf8
clc
fstp st(4)
adc al, 0xd1
stosb byte es:[edi], al
pop edi
pushal
pop ds
inc dword [eax - 0x297740e9]
sub byte [edi], bh
cdq
dec esi
scasb al, byte es:[edi]
pop esi
dec esp
push edx
jns 0x5c9110
xor ecx, dword [eax]
xor eax, 0x4d86bbcf
mov dword [0xd3a53a89], eax
mov dword [esi + 0x109af9c6], ecx
adc edx, dword [ecx]
add eax, 0xf827180f
out dx, eax
pop edi
push eax
imul eax, edi, 0x75
jle 0x5c922b
invalid
invalid
Function at 0x6156dd
Capabilities:
Encode data using xor

Disassembly:
pop ecx
add dh, ah
mov esp, 0xee1e9761
sar byte [eax + 0x1698a4ae], cl
and byte [edi - 0x466c7b98], cl
xchg ebx, eax
xchg ebx, eax
push ds
push 0xa7a261ff
aad 0xe7
jmp 0x615741
dec ecx
lds ebp, [ebx - 0x2ccf788a]
mov dh, byte [eax - 0x7a]
pop edi
mov bl, 0xd8
push 0xe3d46241
in eax, 0xe6
push ecx
out 0x51, al
or byte [eax - 0x2af28ad], 0x9f
xlatb
push eax
std
lahf
ficom dword [ebx + edi*2 - 0x2d]
push ecx
aas
cwde
pop edx
aad 0x77
sub dword [ebx], edi
jbe 0x615743
movsd dword es:[edi], dword [esi]
insb byte es:[edi], dx
imul esi, dword [eax], 0xe
inc edx
mov al, byte [0xff830012]
sub dword [edx + eax*8], eax
jbe 0x615738
aas
loope 0x615733
mov edi, 0x360d39ab
inc ebx
rol byte [ebx], cl
or dword [edi + 0x36], eax
mov edx, 0x8ccaabe9
insb byte es:[edi], dx
sbb dword [edx + 0x42], 0xffffffbb
test al, 0xc7
mov cl, 0xe2
push esp
jbe 0x615755
packssdw mm0, mm5
pop ss
test dword [eax], eax
loopne 0x615720
mov edi, fs
jp 0x6157bd
dec esp
and al, byte [eax + 0x43da2cb6]
int1
and edx, ebp
pop edx
bound ebp, qword [ebx]
dec ebx
movsd dword es:[edi], dword [esi]
dec eax
invalid
imul byte [edx + 0x1a2231b7]
add al, 0xd6
xchg dword [eax], eax
inc edi
test eax, 0x617a2946
mov ecx, 0x7556067
test byte [ebp - 0x71], al
ror dl, cl
push es
test al, 0xe2
rcl edx, 1
adc eax, 0x78a6f0ab
ja 0x615784
sbb edx, esp
xor ah, bh
inc edi
mov al, 0x76
inc ebp
mov dl, 0x43
lea ebp, [eax - 0x5e]
div byte [eax - 0x7af1b0a6]
push edx
mov dl, 0xde
and dl, byte [edx - 0x3a6fb11d]
nop
inc ebp
bound edx, qword [edi + 0x12]
jnp 0x61580c
leave
sub byte [edi], dl
push edx
add dword [ecx], 0xffffffad
lodsd eax, dword [esi]
xchg edx, eax
sub dword [ebx], 0xe85073ab
sar byte [ecx - 0x306d7eb0], 0xb0
dec ecx
lds ebp, [edi - 0x5a]
and byte [ebp + 0x2c1d2329], al
adc dword [edi + 6], 0x35cfa3cb
test dword [edi + esi - 0xd], esp
aaa
push es
scasb al, byte es:[edi]
cmc
xchg esi, eax
call 0xc3831301
pop esp
xchg ebx, eax
test eax, 0x5250cf81
push esi
sbb eax, 0xb2183044
movsd dword es:[edi], dword [esi]
bound esp, qword [edi + 0x66]
push edi
xor eax, 0x96b27bf5
jecxz 0x615818
xchg edx, eax
iretd
scasb al, byte es:[edi]
add byte [esi + 0x7a15b253], 0x84
push esp
int1
sar dword [ebx - 0x60], 0x10
pop es
xchg edx, eax
xchg esp, eax
and byte [esi], bh
add dword [edi + 0x53], esi
mov al, 0xde
je 0x6158a5
pop edx
into
cdq
pushfd
mov al, byte [0xbb423286]
xor dh, dh
add byte [edx + 0x3a76de60], 0x35
push eax
pop es
invalid
mov al, byte [0xf20b56c5]
xchg edi, eax
xor byte [ebx], ch
mov bl, byte [ebx]
pop eax
mov ah, 0xf1
rcr byte ds:[esi], cl
inc dword [ebx - 0x74348927]
mov cl, 0x78
add edx, dword [ecx + 0x41]
invalid

Function at 0x6308e2
Capabilities:
Encode data using xor

Disassembly:
in eax, dx
cmp eax, dword [edx + 0x33]
push ebp
add al, byte [esi - 0x5f]
inc edi
insb byte es:[edi], dx
mov bh, 0xfc
xor edx, dword [ebp + 2]
inc esi
mov eax, dword [0xfcb76c47]
push edi
push ebx
jbe 0x6308e5
dec edi
xor cl, dl
mov ch, 0xf
ljmp 0x1adf
Function at 0x64fdae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6542f0
cmp edx, dword [eax]
je 0x64fdd0
add eax, 8
inc ecx
cmp eax, 0x654380
jl 0x64fdc1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6542f0]
jne 0x64fefe
mov eax, dword [0xa57934]
cmp eax, 1
je 0x64fed8
test eax, eax
jne 0x64fe01
cmp dword [0x654234], 1
je 0x64fed8
cmp edx, 0xfc
je 0x64fefe
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64fe38
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006504c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006506f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64fe7b
lea eax, [ebp - 0x1a4]
push eax
call fcn.006506f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x653470
push edi
call fcn.00651ec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.006504c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006504d0
lea eax, [ebp - 0xa0]
push 0x653450
push eax
call fcn.006504d0
push dword [esi + 0x6542f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.006504d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00651e34
add esp, 0x2c
pop edi
jmp 0x64fefe
lea eax, [ebp + 8]
lea esi, [esi + 0x6542f4]
push 0
push eax
push dword [esi]
call fcn.006506f0
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 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3d8d6a04
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
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
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7c217fc3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401850
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [0xc2a228], 0x400
push esi
push edi
jne 0x401887
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea esi, [ebp - 0x24]
call fcn.00401970
mov ecx, esi
call fcn.00401990
mov edi, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetClipboardViewer]
xor esi, esi
cmp esi, 0xa5a
jge 0x40189f
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x2afe5b
jle 0x4018b5
cmp edi, 0x78e8e445
jne 0x4018be
inc esi
cmp esi, 0x1bf9
jl 0x401893
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
lea esp, [esp]
push 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp esi, 0x206d47
jg 0x4018ed
inc esi
cmp esi, 0x4f6a4
jl 0x4018d0
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40190c
cmp ebx, 0x785074d5
jne 0x401915
inc esi
cmp esi, 0x11915
jl 0x4018f8
mov eax, dword [0x80b09c]
mov ecx, dword [0x80b070]
mov dword [0xc2a228], eax
mov dword [0xc2a22c], ecx
call fcn.004015d0
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
lea esp, [esp]
cmp dword [0xc2a228], 0x51f
jne 0x401952
lea edx, [ebp - 0x2c]
push edx
call esi
sub edi, 1
jne 0x401940
mov eax, dword [0xc2917c]
mov dword [0xc297bc], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40430b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80a218]
jne 0x404315
repz ret
jmp fcn.00407c6c
Function at 0x409abf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406562
and dword [ebp - 4], 0
cmp dword [0x80beec], 0
mov ebx, eax
jne 0x409b70
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409c21
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409c21
push eax
call fcn.004064f0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x80beec], eax
call esi
push eax
call fcn.004064f0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x80bef0], eax
call esi
push eax
call fcn.004064f0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x80bef4], eax
call esi
push eax
call fcn.004064f0
pop ecx
mov dword [0x80befc], eax
test eax, eax
je 0x409b70
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004064f0
pop ecx
mov dword [0x80bef8], eax
mov eax, dword [0x80bef8]
cmp eax, ebx
je 0x409bc8
cmp dword [0x80befc], ebx
je 0x409bc8
push eax
call fcn.0040656b
push dword [0x80befc]
mov esi, eax
call fcn.0040656b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409bc8
test edi, edi
je 0x409bc8
call esi
test eax, eax
je 0x409bbf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409bbf
test byte [ebp - 0xc], 1
jne 0x409bc8
or dword [ebp + 0x10], 0x200000
jmp 0x409c01
mov eax, dword [0x80bef0]
cmp eax, ebx
je 0x409c01
push eax
call fcn.0040656b
pop ecx
test eax, eax
je 0x409c01
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409c01
mov eax, dword [0x80bef4]
cmp eax, ebx
je 0x409c01
push eax
call fcn.0040656b
pop ecx
test eax, eax
je 0x409c01
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80beec]
call fcn.0040656b
pop ecx
test eax, eax
je 0x409c21
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409c23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x2c012402
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x5d0609e5
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
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 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
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 [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x40dee0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x57d490], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x57d48c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x57d490], edx
cmp eax, 0x26f
jl 0x40dee8
mov dword [0x4e0ed0], 0x270
ret

Function at 0x40df20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x57d494]
mov ebx, dword [eax*4 + 0x57d490]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x57dac4]
mov dword [eax*4 + 0x57d490], edx
cmp eax, 0xe2
jl 0x40df28
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x57d494]
mov ebx, dword [eax*4 + 0x57d490]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x57d104]
mov dword [eax*4 + 0x57d490], edx
cmp eax, 0x26e
jl 0x40df78
mov edx, dword [0x57d490]
mov ecx, dword [0x57de4c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x57dac0]
mov dword [0x57de4c], eax
mov dword [0x4e0ed0], 0
pop ebx
ret

Function at 0x40e000
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x4e0ed0]
add dword [0x4e0ed0], 1
mov eax, dword [0x57c030]
cmp eax, dword [0x4e0620]
jne 0x40e023
cmp ebx, 0x271
jb 0x40e044
mov eax, dword [0x57c030]
call fcn.0040dee0
not dword [0x57c030]
mov eax, dword [0x57c030]
mov dword [0x4e0620], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40e060
call fcn.0040df20
xor ebx, ebx
mov dword [0x4e0ed0], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x57d490]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret