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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4617c8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x474860]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 2
ja 0x40336a
cld
sub eax, 0xfe8f59bd
out dx, eax
invalid
mov dword [ebp - 0x14], 0
call int.00403140
test al, al
je 0x4034a1
cmp dword [0x47ac00], 8
push 0
push 0x80
push 4
push 0
push 3
mov eax, 0x47abec
cmovae eax, dword [0x47abec]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4034a1
cmp esi, 0xffffffff
je 0x4034a1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push eax
mov edx, 0x46cd94
lea ecx, [ebp - 0x74]
call fcn.004034f0
push str.__:___r_n
mov edx, eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.004035e0
lea ecx, [ebp + 0x20]
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00403630
push str._r_n__r_n_r_n_r_n
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004035e0
add esp, 0x10
cmp dword [ebp - 0x30], 0x10
jb 0x403427
push dword [ebp - 0x44]
call fcn.00447bb4
add esp, 4
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
jb 0x40344a
push dword [ebp - 0x5c]
call fcn.00447bb4
add esp, 4
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x40346d
push dword [ebp - 0x74]
call fcn.00447bb4
add esp, 4
cmp dword [ebp - 0x18], 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0x10
jb 0x4034a1
push dword [ebp - 0x2c]
call fcn.00447bb4
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x4034b2
push dword [ebp + 8]
call fcn.00447bb4
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x4034d5
push dword [ebp + 0x20]
call fcn.00447bb4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447bb9
mov esp, ebp
pop ebp
ret
Function at 0x405130
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4618c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x474860]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp eax, 9
ja 0x4051cf
mov edi, 0x2c8a7a3c
inc ebx
mov edx, 0x1222ea16
imul esp, dword [ecx], 0x2f14172f
and byte [edi], dh
and edi, ecx
adc ah, byte [edi + eax*2 + 0x3595d183]
mov edi, 0xa349ae53
test dword [edi + ebp*2 + 0x43a64b7e], edi
mov ecx, es
mov eax, dword [0xa2c8c877]
jne 0x40519c
mov esi, 0x8c304619
fdiv qword [ebx - 0x559e19f7]
sbb dword [esi + 0x30], eax
mov esp, ds
mov bl, 9
out 0x61, al
stosb byte es:[edi], al
ror dh, 1
xor ebx, esp
outsb dx, byte [esi]
pop edx
cdq
ret 0xb8c4
mov eax, dword [0x47ad20]
test al, 1
jne 0x4051e7
or eax, 1
mov dword [0x47ad20], eax
call esi
mov dword [0x47ad24], eax
call esi
sub eax, dword [0x47ad24]
cmp eax, 0xc8
jb 0x405242
sub esp, 0x18
mov eax, edi
cdq
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
push eax
call fcn.00403020
sub esp, 0x10
mov ecx, esp
push str.dlprogress
mov dword [esp + 0x54], 0
call fcn.00402480
mov dword [esp + 0x50], 0xffffffff
call fcn.004031f0
add esp, 0x30
call esi
push ecx
mov ecx, edi
mov dword [0x47ad24], eax
call fcn.00426a10
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407969
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4079a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4079a0
lea ebx, [ebx]
cmp esi, edx
jae 0x4079a4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x407990
cmp esi, edx
jb 0x4079ab
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40e480
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46229b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x474860]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp eax, 7
ja 0x40e50d
push eax
int 0x69
lea ebp, [ebx + 0x870eb64]
jns 0x40e52d
adc ebx, dword [esi]
jnp 0x40e4a4
invalid
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0044b2e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call 0x5140e52f
call edi
push eax
push 0x46cd04
push 0x46ce04
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x218]
mov edi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e550
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00407350
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x40e5d4
push 0x46cfec
push eax
call fcn.00449126
add esp, 8
test eax, eax
je 0x40e5d4
sub eax, dword [esi]
sar eax, 1
js 0x40e5d4
inc eax
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.0040c840
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004071d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e5d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
test edi, edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447bb9
mov esp, ebp
pop ebp
ret
Function at 0x40e7c0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462266
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x474860]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 3
ja 0x40e834
jae 0x40e7ef
adc dword [ecx + 0x3b7a4013], edi
cdq
int 0xbe
int1
xor al, 3
aas
inc esp
cli
mov eax, 0xf442db4b
sahf
adc cl, byte [esi]
sub byte [eax - 0x48ee40d2], ch
loopne 0x40e86e
sti
ljmp 0xa110
mov eax, dword [0x47ad44]
test al, 1
jne 0x40e873
or eax, 1
mov dword [0x47ad44], eax
mov byte [ebp - 4], 1
push 0x46cd04
mov ecx, 0x47ad48
mov dword [0x47ad48], 0
call fcn.00406f00
push 0x465320
call fcn.0044857e
add esp, 4
mov byte [ebp - 4], 0
add al, 0xc6
inc ebp
cld
add byte [ecx + 0x47ad48], ah
mov eax, dword [0x47ad48]
cmp dword [eax - 0xc], 0
je 0x40e8b8
lea ecx, [eax - 0x10]
call fcn.00407420
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 8]
add eax, 0x10
add edi, 0xfffffff0
mov dword [esi], eax
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e9c3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x40e9c3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0044b2e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x40e942
lea edx, [ebp - 0x218]
lea edi, [edx + 2]
lea ebx, [ebx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40e900
sub edx, edi
sar edx, 1
cmp edx, 1
jle 0x40e942
lea edx, [edx*2 - 2]
cmp edx, 0x208
jae 0x40e93d
xor eax, eax
mov word [ebp + edx - 0x218], ax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00406f00
jmp 0x40e99f
call fcn.0044954b
push eax
lea eax, [ebp - 0x218]
push eax
push str._s_s
push 0x47ad48
call fcn.004076b0
add esp, 0x10
push 0
push dword [0x47ad48]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e98c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e98c
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x47ad48
call fcn.00406ff0
mov ecx, dword [0x47ad48]
lea ecx, [ecx - 0x10]
call fcn.00407420
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e9c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447bb9
mov esp, ebp
pop ebp
ret
Function at 0x40f440
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462423
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x474860]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x224
call fcn.00447bc8
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40f4a4
mov ecx, eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0x2c], 0
call fcn.0040f1f0
jmp 0x40f4a6
xor eax, eax
mov dword [edi], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 5
ja 0x40f4f7
mov eax, dword [0x1da825e7]
mov dl, 0x46
add edx, dword [eax]
or ch, ah
dec ecx
fsub dword [ebx]
mov eax, esi
mov byte [0xddaed3c8], al
sti
iretd
mov esi, dword [edi]
call fcn.0040f700
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x218], eax
mov eax, dword [edi]
mov ecx, edi
mov byte [eax + 8], 0
mov eax, dword [edi]
mov dword [eax], 0
mov eax, dword [edi]
mov dword [eax + 4], 0
mov eax, dword [edi]
mov byte [eax + 0x21c], 0
mov eax, dword [edi]
mov dword [eax + 0x30], 0
mov eax, dword [edi]
mov dword [eax + 0x34], 0
call fcn.0040f680
sub esp, 0x18
mov ecx, esp
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x46cfb4
mov byte [ecx], 0
call fcn.0040dbb0
mov ecx, dword [edi]
lea ecx, [ecx + 0xc]
call fcn.0043f400
call fcn.00414820
mov esi, dword [edi]
call fcn.00414920
mov dword [esi + 0x220], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f5a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
in eax, 0x5d
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 6
ja 0x40f5f6
test byte [ebp + 0x7c806a56], bh
aas
or byte [0x21658fa6], 0x66
xchg edi, eax
mov ecx, 0x2f9f9326
pop eax
test dword [edx - 7], esi
outsb dx, byte [esi]
sub byte [esi], bl
cmp byte [esi + ecx*2 - 0xb], 0x59
sbb byte [edx - 0x29], cl
je 0x40f590
mov edx, 0xa46b97b4
dec esp
or edx, dword [edi + 0x439639c5]
and eax, 0xef65a930
test cl, bl
mov es, word [eax - 0x41336c15]
test dword [eax + edx*8], ecx
stosd dword es:[edi], eax
sbb bh, byte [eax + 0x4c]
cmp ah, byte [ebx + ecx*4 - 0x2fea00cd]
popal
inc esi
add byte [ebx + 0x297703f8], al
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 3
ja 0x40f62c
jl 0x40f5a4
popal
or eax, 0x396fb4e5
lcall 0xeeaa, 0xcf47a027
adc al, 0x7c
test al, 0x2b
add dword [esi], ecx
sub byte [ebp - 9], cl
pop esp
or dword [eax + 0x17a3f9dc], ebp
pop ss
int1
add al, 0x5a
pop edx
inc eax
or eax, 0x4e8baf9e
mov byte es:[esi + 0x25], 0
mov ecx, dword [esi + 0x26]
mov byte [esi + 0x25], 0
mov byte [esi + 0xc], 0
test ecx, ecx
je 0x40f640
call fcn.0043f590
mov dword [esi + 0x26], 0
mov esi, dword [ebx]
test esi, esi
je 0x40f671
lea ecx, [esi + 0x128]
call fcn.0040f290
lea ecx, [esi + 0x38]
call fcn.0040f290
lea ecx, [esi + 0xc]
call fcn.0043f390
push esi
call fcn.00447bb4
add esp, 4
pop esi
pop ebx
Function at 0x411f10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 3
ja 0x411f47
int3
retf
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 0x10]
mov dword [ebp + 8], eax
test eax, eax
jle 0x411fef
push ebx
lea ecx, [ecx]
cmp dword [edi + 0x14], 0x10
jb 0x411f6a
mov eax, dword [edi]
jmp 0x411f6c
mov eax, edi
mov bl, byte [eax + esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 7
ja 0x411fcb
cld
aaa
movsb byte es:[edi], byte [esi]
xor dword [eax + 0x72d55c5c], eax
xor byte [eax], ch
fsubr dword [esi + 0x69]
les ebp, ss:[edx + 0x352e04f8]
cmp eax, ebp
mov al, byte [ecx + 0x20440674]
jp 0x411f2a
or al, 0xcb
scasb al, byte es:[edi]
xchg ecx, eax
jno 0x411f47
xor eax, edi
mov cl, 0xcd
push esp
push ds
iretd
sub bl, 0x20
cmp bl, 0x5e
ja 0x411fe0
inc esi
cmp esi, dword [ebp + 8]
jl 0x411f60
pop ebx
pop edi
pop esi
pop ebp
ret 4
push 0
push 0x46cfb4
mov ecx, edi
call fcn.0040dbb0
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x413294
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462e08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x474860]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x4132df
jmp [eax + 8]
push 0x38
sub al, 0xac
lds ebx, [edi - 0x559a7f33]
xor edi, ebx
adc dword es:[ecx + 0x49], eax
adc eax, dword [ebx]
js 0x413294
fcmovb st(0), st(7)
inc ebp
in al, 0xf
add byte [eax], al
add bh, al
inc ebp
loopne 0x4132ea
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
add byte [eax], al
add dh, al
inc ebp
rol byte [eax], 1
mov al, byte [ebp + 0x10]
mov dword [ebp - 4], 0
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 0
cmp eax, esi
je 0x413318
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.0040da80
push 0
push 0x46cfb4
mov ecx, esi
mov byte [ebp - 0x17], 0
mov dword [ebp - 0x14], edi
call fcn.0040dbb0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
push 0x4131c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41336f
cmp eax, 0xffffffff
je 0x41336f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp - 0x17], 0
je 0x41336f
lea eax, [ebp - 0x30]
cmp esi, eax
je 0x41336f
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0040da80
cmp dword [ebp - 0x1c], 0x10
mov bl, byte [ebp - 0x17]
jb 0x413383
push dword [ebp - 0x30]
call fcn.00447bb4
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447bb9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4138e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 5
ja 0x413934
out dx, eax
and al, 0xb9
leave
ffree st(4)
fsubr dword [ebp - 0x2851e352]
jb 0x413952
in al, 0x19
inc edx
pop esp
xor byte [ecx], 0x76
invalid
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x413968
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x46cfb4
mov ecx, esi
mov byte [esi], 0
call fcn.0040dbb0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
iretd
push eax
push esi
call fcn.00413780
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x417d00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46248a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x474860]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004477cd
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x417da6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.0044983c
push 0x46f950
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.0044ba4b
push edi
push esi
call fcn.004476a9
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447bb9
mov esp, ebp
pop ebp
ret 4

Function at 0x419090
Capabilities:
Check for time delay via gettickcount

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 7
ja 0x4190ec
push ecx
stosd dword es:[edi], eax
inc edx
inc edx
imul eax, dword [eax], 4
loopne 0x4190ab
or eax, 0xfd550a74
pop ebx
outsd dx, dword [esi]
sbb eax, 0x80f37004
dec ebp
or byte [eax + 0x3b], 0x33
add al, 0x70
or byte [ebp - 0x80], 0x48
cmp esi, dword [ebx]
enter 0x29be, 0xffffffffffffffb3
mov dword [0x65210a5c], eax
das
test byte [ebx], bl
xchg dl, ah
mov esp, 0x11358f03
add ebp, edx
loop 0x41909d
mov bl, 0x2b
fmul dword [eax + 0x7f]
jae 0x419111
xchg ebp, eax
pop esp
sar dword [edx + 0x15], cl
jg 0x41909a
hlt
call 0x419a60
ret 4
invalid

Function at 0x419100
Capabilities:
Check for time delay via gettickcount

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 4
ja 0x41913e
add eax, 0x2e743576
sal al, 1
sub al, 0x91
inc ebp
inc ecx
cmp eax, 0x7a0c4fbe
outsd dx, dword [esi]
inc ecx
insd dword es:[edi], dx
cmc
insd dword es:[edi], dx
add al, 0x1e
pop ebp
movsb byte es:[di], byte [si]
iretd
call fcn.00419af0
ret 4
Function at 0x419d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x474860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x419d82
retf
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x1c], 0x6054b50
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0
mov dword [ebp - 0x20], 0
jb 0x419dba
mov esi, dword [esi]
push 0x46d268
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0044a143
mov eax, dword [ebp - 0x20]
add esp, 0xc
pop esi
test eax, eax
je 0x419ded
push eax
push 1
lea eax, [ebp - 0x1c]
push 0x16
push eax
call fcn.0044a3a9
push dword [ebp - 0x20]
call fcn.0044a493
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447bb9
mov esp, ebp
pop ebp
ret

Function at 0x41a160
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x474860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 1
ja 0x41a19a
popal
inc esi
add byte [ebx + 0x157701f8], al
push edi
adc byte [ebp - 0x4bb40125], bh
inc ecx
or dword [esi - 0x14], 3
sbb dword [esi], esi
je 0x41a17d
aaa
mov edi, 0x3c77071
add byte [eax], al
add byte [eax], al
mov dword [ebx], 0
mov dword [edi], 0
call fcn.0041cbb0
cmp dword [eax + 0x278], 0
je 0x41a24e
call fcn.0041cbb0
cmp dword [eax + 0x280], 0
je 0x41a24e
cmp dword [esi + 0x14], 8
jb 0x41a1d2
mov esi, dword [esi]
call fcn.0041cbb0
mov eax, dword [eax + 0x278]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x41a24e
test esi, esi
je 0x41a24e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
jle 0x41a247
cmp eax, 0xffffffff
je 0x41a247
cmp eax, 0xfa000
jge 0x41a247
add eax, 5
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx], eax
test eax, eax
je 0x41a247
call fcn.0041cbb0
mov eax, dword [eax + 0x280]
push 0
lea ecx, [ebp - 8]
push ecx
push dword [edi]
push dword [ebx]
push esi
call eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447bb9
mov esp, ebp
pop ebp
ret

Function at 0x41bdb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov dword [0x479848], 0x46d530
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov ecx, 0x47984c
call fcn.0041c890
mov dword [0x47abd4], 0
mov dword [0x47abd8], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
inc edi
add byte [ebx], al
add byte [eax], al
add bh, bh
adc eax, sym.imp.KERNEL32.dll_GetTickCount
cmp eax, 2
ja 0x41be0c
xor dword [esi + 0x5a682c94], ebx
or byte [eax - 0x4e], 0xe2
stc
jmp 0x41bddc
mov byte [0x47abdd], 0
mov byte [0x47abde], 0
mov byte [0x47abdc], 0
mov dword [0x47abe0], 0
mov byte [0x47abe4], 0
mov dword [0x47abe8], 0
mov eax, 0x479848
ret
Function at 0x41c020
Capabilities:
Encode data using xor

Disassembly:
sub dl, al
invalid
push esi
push edi
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 5
ja 0x41c06e
pop esi
mov ss, word [ebx - 0x71c727c7]
popfd
call 0x916ce4d0
loopne 0x41bfde
salc
xchg dword [eax + 0x65], ebx
xor ah, byte [eax - 0x7ac9e835]
mov dl, bl
inc eax
lodsd eax, dword [esi]
jle 0x41c041
pop ecx
mov word [eax - 0x71f84573], fs
in eax, 0x90
sub al, 0x71
mov ch, bh
and byte [esi], ah
pop edi
pop eax
mov al, byte [0x870cd45e]
fdiv st(6), st(0)
jmp 0x7456393
call fcn.0041bfc0
test al, al
je 0x41c083
push 0
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
ret