joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404af0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x404b50
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x404c46
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x404bc0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x404b95
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x404ba5
cmp byte [esp + 0x1e], 0
je 0x404ba5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x404ba5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00404af0
nop

Function at 0x404ee0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x409060
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x409078]
sub esp, 4
test ebx, ebx
je 0x404f2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x404f24
test esi, esi
je 0x404f24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404f00
mov dword [esp], 0x409060
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x4052f0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00404ec0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x405326
jmp 0x405365
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x405323
cmp al, 0x20
je 0x405323
cmp al, 0x22
jne 0x405349
jmp 0x4053b4
cmp al, 0x20
lea esi, [esi]
je 0x405350
test al, al
je 0x405365
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x405337
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x4053ca
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x405357
cmp al, 0x20
je 0x405357
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x405374
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004044b0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x4053be
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x4053b0
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x405350
cmp al, 9
je 0x405357
jmp 0x405365
Function at 0x417e10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x50
test eax, eax
push esi
je 0x417e36
mov eax, dword [0x6377d0]
push ebx
push edi

Function at 0x4391c3
Capabilities:
Encode data using xor

Disassembly:
push edi
xor dword [esi - 0x73], 0x8a392fa5
invalid
cmp dword [edx - 0x2848f639], ecx
xchg edi, eax
daa
jle 0x4391be
repe cmpsd dword [esi], dword es:[edi]
lahf
jl 0x4391bd
imul edi, dword [ebp - 0x7d], 0xf3355784
add byte [esi - 0x68], ah
mov esi, 0xcedc9d34
fmul st(6), st(0)
mov ebp, 0xdef60b72
jb 0x4391f0
neg dh
pop sp
inc edx
sbb eax, 0x6f1cafc5
xchg ah, ch
in al, dx
jbe 0x4391e3
dec edi
fcomp st(0)
int 0xf6
xor eax, 0x46866df6
lodsb al, byte [esi]
push esi
call 0xd428bd0f
sub eax, dword [ebp + 0xd6dbf5]

Function at 0x47e812
Capabilities:
Encode data using xor

Disassembly:
lodsd eax, dword [esi]
inc ebp
xchg dword [edi + edi*4 + 0x7de1c714], ecx
fdivr dword [ebp + 0x4d]
add cl, byte [ecx + edi*8 + 0x75d8bc65]
lodsb al, byte [esi]
stosd dword es:[edi], eax

Function at 0x4828e8
Capabilities:
Encode data using xor

Disassembly:
invalid
popfd
add byte [esi + 0x1e], ch
std
sbb eax, 0x3093aa6d
invalid

Function at 0x48bbe9
Capabilities:
Encode data using xor

Disassembly:
cld
adc byte [ebp - 0x15], cl
push ss
xchg edi, eax
mov bh, 0x95
and byte [ecx], bl
inc eax
aas
xor dword [ebp + 0x65ac3b22], ecx
jmp 0x8818018f
inc edi
and dword [edx - 0x282c78fb], edi
jne 0x48bc5b
add eax, dword [ebp + 0xe73eed4]
lds ecx, [ecx + 0x3c439044]
mov dl, 0xc3
mov dh, 0xa0
inc edi
cmpsb byte [esi], byte es:[edi]
jl 0x48bbb6
jl 0x48bc70
salc
pushal
dec edx
rcr byte [edi + 0x1113e5b4], 1
mov ah, 0x43
rcl byte [edx - 0x76], cl
mov ecx, 0x59db7c9a
mov ah, 0xe9
scasd eax, dword es:[edi]
in eax, 0x13
adc dword [ebx + eax*2 - 0x4675ad2e], esi
lcall 0xafe9, 0xb459db7c
mov dh, 0x46
cli
call 0xa4596499
push eax
sub eax, 0x695f7787
cmp eax, 0x28a37d5b
xor byte [edi], ah
pop edx
bound ebx, qword [ecx - 0x66c44cfc]
push 0x76861c48
add dl, byte [ebp + 0x2b8f44a9]
cmp al, 0x64
cmc
js 0x48bc0e
popal
rcr dword [ebx], cl
les ebx, [ebx - 0x5b6508f6]
and dword [esi - 0x2e458c8], ecx
xchg ecx, eax
sub al, byte [ecx]
invalid
salc
clc
aam 0x66
retf 0xcfdb

Function at 0x495203
Capabilities:
Encode data using xor

Disassembly:
call 0xc5b36b72
mov edx, 0x79429b58
inc edx
jns 0x4951fb
inc edx
jns 0x4951fb
pop ss
pop esp
dec ebx
ror dword [esi - 0x2df72bc6], 0x98
aaa
cwde
sti
inc esp
cwde
sbb ah, bh
pop ecx
push esi
nop
sub al, 0xb6
push cs
insd dword es:[edi], dx
lcall 0x9b13, 0x9cec3a13
lcall 0x7a6d, 0xb20d9486
cmp byte [eax + ebx*4], al
add al, 0x98
adc byte [eax + 0x22], bh
out dx, al
mov ah, byte ss:[edx]
xor eax, 0x60f4b818
push ss
or dword [ebp - 0x24], edi
push ebp
mov ecx, 0x36005c33
aas
pop esp
jg 0x495230
mov ecx, 0x9afaec94
sbb al, byte [eax + 0x279a3279]
stosb byte es:[edi], al
pop es
push edi
xlatb
fnstsw word [ecx + eax*8]
mov dword [ebp - 0x71ef16bb], edi
xchg edi, eax
adc dword [eax + ebp*2 + 0x4c], ebx
fcom qword [eax + 0x7e]
or dword [edx + 0x1b], 0x10296b3f
popfd
wait
int3
Function at 0x62a421
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6343a0
cmp edx, dword [eax]
je 0x62a443
add eax, 8
inc ecx
cmp eax, 0x634430
jl 0x62a434
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6343a0]
jne 0x62a571
mov eax, dword [0x638d7c]
cmp eax, 1
je 0x62a54b
test eax, eax
jne 0x62a474
cmp dword [0x6342cc], 1
je 0x62a54b
cmp edx, 0xfc
je 0x62a571
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62a4ab
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062ae00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062b290
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62a4ee
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062b290
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62fd54
push edi
call fcn.0062d160
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062ae00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062ae10
lea eax, [ebp - 0xa0]
push 0x62fd34
push eax
call fcn.0062ae10
push dword [esi + 0x6343a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062ae10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062d0d4
add esp, 0x2c
pop edi
jmp 0x62a571
lea eax, [ebp + 8]
lea esi, [esi + 0x6343a4]
push 0
push eax
push dword [esi]
call fcn.0062b290
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 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10001b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x1000cbec
call fcn.100022ba
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10001c14
test esi, esi
jne 0x10001c14
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x10001bf8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001bf2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001bf2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x10001be1
cmp esi, eax
jae 0x10001be5
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001bd3
cmp esi, eax
jb 0x10001be9
xor eax, eax
jmp 0x10001bf2
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x10001c1d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x1000cbec
call fcn.100022ba
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x10001b85
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001d18
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001d4a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10001d46
cmp esi, eax
jae 0x10001d4a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001d38
cmp esi, eax
jb 0x10001d50
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10001d80
Capabilities:
Enumerate files on windows

Disassembly:
push 4
call fcn.100025f2
add esp, 4
test eax, eax
je 0x10001d9e
mov dword [eax], 0
mov dword [0x1000d8f0], eax
jmp fcn.10001000
xor eax, eax
mov dword [0x1000d8f0], eax
jmp fcn.10001000

Function at 0x1000405c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov al, 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
rol esi, 0x45
mov eax, 0xb945c6c8
cmpsd dword [esi], dword es:[edi]
Function at 0x10004643
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc esi
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10003df4
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10003da9
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
inc dword [eax]

Function at 0x10004cfe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.10003dc2
or byte [eax + 0x2ff845c6], ah
inc ebp
clc
das

Function at 0x10005f85
Capabilities:
Access peb ldr_data

Disassembly:
in al, dx
add ebp, 0x24
push esp
call fcn.10003de4
rcr byte [ebx + 0x32], cl
in eax, dx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x10005fa8
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.10003de4
or byte [esi - 0x774e999], 0x8b
inc edi
cmp al, 0x8b
push esp
pop es
js 0x10005fc2
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
sbb byte [ebx - 0x20fcdfa6], cl
call fcn.10003de4
adc eax, 0x49e0e686
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x10005fd1
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x10005fd1
call fcn.10003de4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x617b2e47
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x32a62dd
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4057f0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x405815
or esi, 1
push 1
call edi
test ax, ax
jns 0x405821
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x40582d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x405839
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x406a50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x108], edi
jle 0x406a9f
nop dword [eax + eax]
mov eax, dword [esi + 0x104]
lea edx, [ebp + 0xf]
mov byte [ebp + 0xf], 0
push edx
push dword [ebp + 0x10]
mov ecx, dword [eax + edi*4]
push ebx
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax]
cmp byte [ebp + 0xf], 0
jne 0x406b3c
inc edi
cmp edi, dword [esi + 0x108]
jl 0x406a70
mov eax, dword [ebp + 8]
add eax, 0xffffff00
cmp eax, 0x18
ja case.0x406ab7.257
movzx eax, byte [eax + 0x406c34]
jmp dword [eax*4 + 0x406c20]
cmp ebx, 9
jne case.0x406ab7.257
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x406b23
mov eax, dword [ecx]
mov eax, dword [eax + 0xe4]
call eax
test al, al
je 0x406b23
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx]
mov eax, dword [eax + 0xf0]
call eax
test al, al
je 0x406b23
mov ecx, dword [esi + 0x84]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0048aae6
add esp, 8
test eax, eax
je 0x406b23
mov eax, dword [esi + 0x84]
cmp byte [eax + 0x679], 0
jne case.0x406ab7.257
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.004093e0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push ebx
mov dword [ebp + 8], eax
call fcn.00491066
mov ecx, dword [esi + 0x80]
lea edx, [ebp + 8]
add esp, 4
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x8000000a
push edx
push 0x40a6c0
call dword [eax + 0x118]
mov esi, eax
test esi, esi
je case.0x406ab7.257
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x84], 0
je case.0x406ab7.257
mov eax, dword [esi + 0x94]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x98]
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 6
mov word [ebp - 0xc], bx
mov dword [ebp - 0x10], eax
call fcn.004057f0
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x84]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0x8bba
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408e90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x408ebb
cmp esi, dword [edi + 0x84]
je 0x408ebb
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x84]
cmp esi, eax
je 0x408fbc
test eax, eax
je 0x408f2d
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], 0x14
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x84]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
push ecx
push 0
push 0
push str.killfocus
push dword [edi + 0x84]
mov ecx, edi
call fcn.004098f0
mov dword [edi + 0x84], 0
test esi, esi
je 0x408fbc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x408fbc
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xe4]
call eax
test al, al
je 0x408fbc
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xf0]
call eax
test al, al
je 0x408fbc
xorps xmm0, xmm0
mov dword [edi + 0x84], esi
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x24], 0
movq qword [esp + 0x1c], xmm0
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x84]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
push ecx
push 0
push 0
push str.setfocus
push dword [edi + 0x84]
mov ecx, edi
call fcn.004098f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40c2e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
mov esi, ecx
mov byte [esi + 0x199], al
test al, al
jne 0x40c310
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x40c34a
cmp dword [ecx + 0x84], esi
jne 0x40c34a
pop esi
mov dword [ebp + 8], 0
pop ebp
jmp fcn.00408e90
cmp byte [esi + 0x198], 0
je 0x40c34a
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x40c34a
push esi
call fcn.004092a0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xe4]
call eax
test al, al
je 0x40c34a
push dword [esi + 0x650]
mov ecx, dword [esi + 0x40]
push 0x3e8
push esi
call fcn.004090e0
pop esi
pop ebp
ret 4

Function at 0x40d500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x40d5d9
mov ecx, dword [0x4cc580]
test ecx, ecx
movzx eax, word [ebp + 0x10]
cmove ecx, dword [0x4cc584]
push esi
push dword [ebp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40d583
mov ecx, dword [0x4cc580]
test ecx, ecx
push esi
cmove ecx, dword [0x4cc584]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x40d55e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop ebp
ret 0x14
mov eax, dword [0x4cc580]
test eax, eax
push ebx
cmove eax, dword [0x4cc584]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x40d588
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop esi
pop ebp
ret 0x14
push edi
push ebx
call fcn.00487e40
mov edi, eax
add esp, 4
test edi, edi
je 0x40d5cb
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.00489f40
add esp, 0xc
mov edx, ebx
cmp byte [ebp + 0x18], 0
mov ecx, edi
je 0x40d5bd
call fcn.00406400
jmp 0x40d5c2
call fcn.004064a0
push edi
call fcn.00487e49
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
pop esi
pop ebp
ret 0x14
cmp eax, 1
jne 0x40d584
cmp byte [ebp + 0x18], 0
mov ecx, dword [ebp + 0xc]
je 0x40d5f0
call fcn.00406560
pop ebp
ret 0x14
call fcn.004066d0
pop ebp
ret 0x14
Function at 0x4103c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4103cb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x410487
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b1380]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b1380]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b1380]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b1380]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b1380]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b1380]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b1380]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b1380]
sub edi, 1
jne 0x4103e0
pop edi
test esi, esi
je 0x4104aa
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b1380]
sub esi, 1
jne 0x410490
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x410c70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x410cb3
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410ca5
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x410cc4
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.00489f40
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret