joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fc45
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46fd5d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46fd5d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048cf66
mov esi, eax
test esi, esi
je 0x46fd5d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46fd5d
mov ecx, esi
call fcn.0046fbb0
cmp edi, eax
jge 0x46fd5d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46fce3
mov dword [esp + 0x34], 1
jmp 0x46fd3e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46fd5d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046e420
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x473e90
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x473eda
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x473f09
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x473f4b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x48d90a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48d942
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048b997
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048b96f
jmp 0x48d94e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48efff
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 0x48f041
call fcn.00494af7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48f041
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48f038
xor eax, eax
jmp 0x48f049
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048f04f
pop edi
pop esi
pop ebx
ret 4

Function at 0x495027
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x495055
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x495073
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00494f8d
jmp 0x495073
mov eax, dword [esi + 0x14]
test eax, eax
je 0x495073
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00494f8d
test edi, edi
mov eax, edi
jne 0x49505d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x40c0a0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x40c0a4]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.00402a94
jmp 0x4011d3
mov eax, dword [0x40c0a4]
test eax, eax
jne 0x4011c9
mov dword [0x40c0a4], 1
mov dword [esp + 4], 0x410014
mov dword [esp], 0x41000c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x40c01c], 1
mov eax, dword [0x40c0a4]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x410008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x40c0a4], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x40c0a0
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.00401f71
mov dword [esp], 0x40208c
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x40c074], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.00401910
mov eax, dword [0x40c004]
mov dword [esp + 4], 0x40c008
mov dword [esp], eax
call fcn.004013c8
call fcn.0040174c
mov eax, dword [0x406014]
mov edx, dword [0x40c00c]
mov dword [eax], edx
mov ecx, dword [0x40c00c]
mov edx, dword [0x40c008]
mov eax, dword [0x40c004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00405520
mov dword [0x40c014], eax
mov eax, dword [0x40c018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x40c014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x40c01c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x40c014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40c04c], 1
mov dword [0x40c050], 1
mov dword [0x40c054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401918
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402904
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort

Function at 0x4024ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40250b
mov eax, 0
jmp 0x40254f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40252e
mov eax, 0
jmp 0x40254f
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40254a
mov eax, 0
jmp 0x40254f
mov eax, 1
leave
ret
Function at 0x402551
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4025b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4025a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4025a8
mov eax, dword [ebp - 4]
jmp 0x4025c4
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402585
mov eax, 0
leave
ret
Function at 0x4bde10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x76000]
push edi
jmp 0x4bde2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bde31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bde20
mov eax, 1
add ebx, ebx
jne 0x4bde43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bde54
jne 0x4bde73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bde73
dec eax
add ebx, ebx
jne 0x4bde60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bde38
add ebx, ebx
jne 0x4bde6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bdec5
xor ecx, ecx
sub eax, 3
jb 0x4bde8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bdefa
sar eax, 1
mov ebp, eax
jmp 0x4bde96
add ebx, ebx
jne 0x4bde96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bde64
inc ecx
add ebx, ebx
jne 0x4bdea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bde64
add ebx, ebx
jne 0x4bdeb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bdea6
jne 0x4bdec2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bdea6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bdee4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bded6
jmp 0x4bde26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bdee4
add edi, ecx
jmp 0x4bde26
pop esi
mov edi, esi
mov ecx, 0x3876
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bdf02
cmp byte [edi], 0x11
jne 0x4bdf02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4bdf07
lea edi, [esi + 0xba000]
mov eax, dword [edi]
or eax, eax
je 0x4bdf7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd1f78]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd207c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bdf34
mov ecx, edi
jns 0x4bdf63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd2080]
or eax, eax
je 0x4bdf79
mov dword [ebx], eax
add ebx, 4
jmp 0x4bdf51
call dword [esi + 0xd2090]
mov ebp, dword [esi + 0xd2084]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4bdfb3
sub esp, 0xffffff80
jmp 0x459d8f
Function at 0x40177f
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4100d4], 0
jne 0x40178d
call fcn.00401755
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4017ba
test cl, 7
je 0x4017ba
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
dec esi
inc ecx
jmp 0x40179b
cmp esi, 8
jb 0x40183e
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4100d0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
dec edi
jne 0x4017c4
xor edx, edx
test esi, esi
jbe 0x40185e
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4100d0]
inc edx
cmp edx, esi
jb 0x401845
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x40190c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004012c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40199e
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040759f
lea eax, [ebp - 0x800]
push eax
call fcn.0040975c
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004078eb
test al, al
jne 0x40197a
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040975c
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x40199e
push eax
push 0xaf
call fcn.00409266
push eax
push 0x40e2b0
call fcn.0040a55a
add esp, 0xc
leave
ret 8
Function at 0x40345f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x403479
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x40348c
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x40349f
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406f0d
test eax, eax
je 0x4034d8
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4034d8
cmp word [eax], bx
je 0x4034d8
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4034ec
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403508
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403508
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x403580
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x403541
push edi
call fcn.0040975c
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.004094dd
jmp 0x40354a
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x403567
push dword [ebp + 8]
call fcn.00409528
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.004094dd
jmp 0x403576
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040d2db
push dword [esi + 4]
mov ecx, esi
call fcn.004032ae
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40364b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x403671
cmp dword [ebp + 0xc], esi
jbe 0x403666
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4036c1
mov ecx, edi
call fcn.00403419
test al, al
je 0x4036a7
cmp dword [ebp + 0xc], esi
jbe 0x4036a7
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.0040364b
jmp 0x4036c4
cmp dword [edi + 0xc], 1
jne 0x4036bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4036bc
xor eax, eax
jmp 0x4036c4
or eax, 0xffffffff
jmp 0x4036c4
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x4039aa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.00406f0d
test eax, eax
je 0x4039d4
mov eax, dword [esp + 8]
test eax, eax
je 0x4039d4
cmp word [eax], 0
je 0x4039d4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x4039f1
cmp dword [esp + 4], 0
je 0x4039ef
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4039ef
xor eax, eax
inc eax
jmp 0x4039f1
xor eax, eax
ret 8

Function at 0x403a50
Capabilities:
Get file attributes

Disassembly:
call fcn.00406f0d
test eax, eax
je 0x403a70
mov eax, dword [esp + 8]
test eax, eax
je 0x403a70
cmp word [eax], 0
je 0x403a70
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x403a7a
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x403a7d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406f0d
test eax, eax
je 0x403aa2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403aa2
cmp word [eax], 0
je 0x403aa2
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x403ab4
cmp dword [ebp + 8], 0
je 0x403abb
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x403abd
xor al, al
pop ebp
ret 0xc

Function at 0x403bf1
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406f0d
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x403c17
cmp esi, ebx
je 0x403c17
cmp word [esi], bx
je 0x403c17
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x403c26
cmp dword [ebp + 8], ebx
je 0x403c54
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x403c3f
cmp byte [ebp + 0x10], bl
je 0x403c3b
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00403a7d
xor eax, eax
jmp 0x403c57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403c54
cmp eax, 3
je 0x403c54
xor eax, eax
inc eax
jmp 0x403c57
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405286
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x48]
test eax, eax
jl 0x4052b8
cmp dword [ebp - 8], ebx
jne 0x4052f9
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x4052f9
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4052a5
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4052a5
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x405339
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x40ec24
push eax
call dword [ecx]
test eax, eax
jl 0x405339
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x405330
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
setge bl
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8