joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6e20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6e000]
push edi
jmp 0x4c6e3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c6e41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6e30
mov eax, 1
add ebx, ebx
jne 0x4c6e53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c6e64
jne 0x4c6e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6e83
dec eax
add ebx, ebx
jne 0x4c6e70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c6e48
add ebx, ebx
jne 0x4c6e7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c6ed5
xor ecx, ecx
sub eax, 3
jb 0x4c6e9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c6f0a
sar eax, 1
mov ebp, eax
jmp 0x4c6ea6
add ebx, ebx
jne 0x4c6ea6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6e74
inc ecx
add ebx, ebx
jne 0x4c6eb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6e74
add ebx, ebx
jne 0x4c6ec1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c6eb6
jne 0x4c6ed2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c6eb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c6ef4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c6ee6
jmp 0x4c6e36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c6ef4
add edi, ecx
jmp 0x4c6e36
pop esi
mov edi, esi
mov ecx, 0x3a8d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c6f12
cmp byte [edi], 0x11
jne 0x4c6f12
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 0x4c6f17
lea edi, [esi + 0xc1000]
mov eax, dword [edi]
or eax, eax
je 0x4c6f8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc72dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc7430]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c6f44
mov ecx, edi
jns 0x4c6f73
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 + 0xc7434]
or eax, eax
je 0x4c6f89
mov dword [ebx], eax
add ebx, 4
jmp 0x4c6f61
call dword [esi + 0xc7444]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4c6fc0
cmp al, 0xef
ja 0x4c6fb3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4c6f95
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4c6fa2
mov ebp, dword [esi + 0xc7438]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x4c6ff4
sub esp, 0xffffff80
jmp 0x46a08c
Function at 0x403130
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push ebx
push esi
push edi
call fcn.00407570
push eax
push str._Consent
push str.ROCred.Privacy
push str.Ai4rei.E.Skal
call fcn.00411aa0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test edi, edi
mov dword [esp + 0xc], eax
jne 0x403170
push eax
call fcn.00411ac0
test al, al
jne 0x4031ec
mov eax, dword [esp + 0xc]
push eax
mov esi, 1
call fcn.00411ac0
test al, al
je 0x4031a5
mov eax, dword [esp + 0xc]
push eax
call fcn.00411ad0
test al, al
je 0x403192
mov esi, 3
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00411ae0
test al, al
je 0x4031aa
or esi, 4
jmp 0x4031aa
mov esi, 7
lea edx, [esp + 0xc]
push edx
push str.http:__ai4rei.net_about_telemetry_
push esi
push ebx
push 0xfffffffffffffffa
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call fcn.00411a40
test al, al
je 0x403241
mov eax, dword [esp + 0xc]
push eax
call fcn.00407570
push eax
push str._Consent
push str.ROCred.Privacy
push str.Ai4rei.E.Skal
call fcn.00411a70
test edi, edi
jne 0x403241
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00411ac0
test al, al
je 0x403241
mov edx, dword [esp + 0xc]
push edx
call fcn.00411ad0
test al, al
jne 0x403216
mov eax, dword [esp + 0xc]
push eax
call fcn.00411ae0
test al, al
je 0x403241
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
push 0x403250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x403241
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x4045b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x38
push ebx
push esi
push str.MediaBackground
call fcn.00407510
mov cl, byte [eax]
xor ebx, ebx
cmp cl, bl
je 0x4046c5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4046c5
mov esi, dword [esp + 0x44]
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
push 0xfffffffffffffffa
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x7f00
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], 0x4067d0
mov dword [esp + 0x48], str.BackgroundMediaClass
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
pop edi
je 0x4046c5
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov al, byte [0x440720]
test al, 1
jne 0x40468a
mov dl, al
push 0x405150
or dl, 1
mov dword [0x440734], ebx
mov byte [0x440720], dl
mov byte [0x440738], bl
mov byte [0x440739], bl
mov byte [0x44073c], bl
mov dword [0x440730], 0x433bb0
call fcn.004290a8
add esp, 4
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push 0x440730
push edx
mov edx, dword [esp + 0x18]
push 0x6b
sub ecx, eax
push esi
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
push ecx
push 0x54000000
push 0x4334b8
push str.BackgroundMediaClass
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
pop esi
mov al, 1
pop ebx
add esp, 0x38
ret
Function at 0x4075a0
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x220
push ebx
push 0x436034
push 0x44034c
xor bl, bl
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call fcn.0041f8e0
push 0x43412c
push str.FontSize
push 0
push str.ROCred
push 0
push 0x44034c
call fcn.0041f180
push 0
push 0x44034c
call fcn.0041f4b0
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push 0x434124
push 0xa
push 0
call fcn.00415fb0
test eax, eax
je 0x4076a8
xor edx, edx
mov ecx, dword [esp + 8]
mov dword [esp + 0xd], edx
lea eax, [esp + 0x14]
mov dword [esp + 0x11], edx
push eax
mov word [esp + 0x19], dx
push ecx
mov byte [esp + 0x1f], dl
mov edx, dword [esp + 0xc]
push edx
mov byte [esp + 0x18], bl
call fcn.0041afa0
test al, al
je 0x40779d
push 8
lea eax, [esp + 0x10]
push str.bvio:
push eax
call fcn.0040d410
push 0x43600c
push 0x44034c
call fcn.0041f8d0
lea ecx, [esp + 0xc]
push ecx
push 0x44034c
call fcn.0041f600
test al, al
je 0x40768a
push 0
push 0x4077f0
push 0x44034c
call fcn.0041eff0
mov bl, 1
push 0x436034
push 0x44034c
call fcn.0041f8d0
lea edx, [esp + 0x14]
push edx
call fcn.0041add0
jmp 0x407799
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push 0x434114
push 0xa
push 0
call fcn.00415fb0
test eax, eax
je 0x4077b1
lea edx, [esp + 0x120]
push 0x104
push edx
call fcn.00415da0
test eax, eax
je 0x40779d
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0
lea ecx, [esp + 0x12c]
push str.rcd
push ecx
call fcn.00415be0
test eax, eax
je 0x40779d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40779d
push esi
push eax
push eax
push 3
push eax
push eax
lea edx, [esp + 0x34]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40778d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push 0
push eax
push ecx
push edx
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
je 0x407787
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
push eax
push 0x44034c
call fcn.0041f600
test al, al
je 0x40778d
push 0
push 0x4077f0
push 0x44034c
call fcn.0041eff0
mov bl, 1
jmp 0x40778d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
test bl, bl
jne 0x4077b1
push 0x44034c
call fcn.0041f900
xor al, al
pop ebx
add esp, 0x220
ret
push 0x434108
push 0
push 0x104
push 0x440248
push 0
call fcn.004159f0
test al, al
je 0x4077dc
push 0x440248
push 0x44034c
call fcn.0041f600
mov al, 1
pop ebx
add esp, 0x220
ret
Function at 0x40a380
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor bl, bl
cmp byte [eax], 0x2e
jne 0x40a3d9
lea ecx, [esp + 8]
push ecx
push 1
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a3d9
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 8]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a3ce
mov bl, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
ret 0xc

Function at 0x40a440
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
push str.PolicyNoTrayIcon
call fcn.00407530
test eax, eax
mov ebp, dword [esp + 0x88]
push 0xfffffffffffffffa
push ebp
sete bl
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], 0x58
push 6
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
call edi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebp
call edi
test bl, bl
je 0x40a4dc
push 1
push esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 6
call fcn.00417a10
push 0x40
mov dword [esp + 0x44], eax
lea eax, [esp + 0x48]
push eax
push 0x3ec
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0x40
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x94]
push 0
push edx
push 1
call edi
test eax, eax
je 0x40a575
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x40a55c
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40a549
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x40a523
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x94]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x40a510
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
test bl, bl
je 0x40a595
lea eax, [esp + 0x2c]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 2
push ebp
call esi
push 9
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8
Function at 0x40a5b0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1a40
call fcn.004290f0
push ebp
push esi
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0x3c
lea edx, [esp + 0x24c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1a5c]
lea eax, [esp + 0x1a60]
push eax
push ecx
push edx
mov byte [esp + 0x1b], 0
call dword [sym.imp.USER32.dll_wvsprintfA]
mov esi, dword [esp + 0x1a58]
mov cl, 0x5c
cmp byte [esi], cl
jne 0x40a63f
cmp byte [esi + 1], cl
jne 0x40a63f
cmp byte [esi + 2], 0x3f
jne 0x40a638
cmp byte [esi + 3], cl
jne 0x40a63f
mov al, byte [esi + 4]
cmp al, 0x55
je 0x40a61d
cmp al, 0x75
jne 0x40a63f
mov al, byte [esi + 5]
cmp al, 0x4e
je 0x40a628
cmp al, 0x6e
jne 0x40a63f
mov al, byte [esi + 6]
cmp al, 0x43
je 0x40a633
cmp al, 0x63
jne 0x40a63f
cmp byte [esi + 7], cl
jne 0x40a63f
mov eax, 1
jmp 0x40a641
xor eax, eax
neg al
mov edi, dword [esp + 0x1a50]
lea ecx, [esp + 0x14c]
sbb eax, eax
push 0x100
and eax, 0x80
push ecx
or eax, 0x441
push str..exe
mov dword [esp + 0x20], eax
lea eax, [esp + 0x258]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 1
call fcn.0040a380
test al, al
je 0x40a6a5
lea edx, [esp + 0x14c]
mov dword [esp + 0x38], edx
jmp 0x40a6ad
mov dword [esp + 0x38], str.exefile
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40a6ee
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40a791
test byte [esp + 0x1a54], 1
jne 0x40a6dd
push eax
push edi
call fcn.0040a440
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xf], 1
jmp 0x40a791
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x4c7
je 0x40a791
push 0
lea ecx, [esp + 0x650]
push 0x400
push ecx
push 0x400
call ebp
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edx, [esp + 0x4c]
push 0x100
push edx
push 0x3f3
push 0xfffffffffffffffa
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x64c]
lea ecx, [esp + 0x24c]
push eax
push ecx
lea edx, [esp + 0x54]
push esi
push edx
lea eax, [esp + 0xa5c]
push 0x1000
push eax
call fcn.004183d0
add esp, 0x18
lea ecx, [esp + 0xa4c]
push 0x10
push ecx
push edi
call fcn.00401100
lea edx, [esp + 0xa4c]
push 0x1000
push edx
call fcn.0040a360
lea eax, [esp + 0x24c]
push 0x400
push eax
call fcn.0040a360
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
add esp, 0x1a40
ret
Function at 0x40f330
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push edx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f36b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop esi
mov al, 1
mov dword [ecx], edx
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov al, bl
pop esi
pop ebx
ret 0x10

Function at 0x40f3b0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push edx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f3eb
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop esi
mov al, 1
mov dword [ecx], edx
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov al, bl
pop esi
pop ebx
ret 0x10

Function at 0x40f580
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push edi
push eax
mov ecx, dword [esi]
xor bl, bl
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40f5c3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x40f5bf
call edi
mov dword [esi + 4], eax
pop edi
mov al, bl
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
pop ebx
add esp, 8
ret 8

Function at 0x40f820
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
xor edx, edx
mov dword [esp + 8], eax
mov dword [ecx + 4], edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [esp + 4], ecx
jmp fcn.0040f580
Function at 0x412920
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push 0x14
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
je 0x4129e2
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
mov dword [esi], 1
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea ecx, [esp + 0xc]
mov dword [esi + 8], edi
push ecx
push 4
push esi
push 0x4129f0
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x4129ac
cmp dword [esi], 0
jne 0x41298e
int3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test eax, eax
jne 0x41299a
int3
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x4129ce
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x4129be
call edi
mov edi, eax
jmp 0x4129ce
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp dword [esi], 0
jne 0x4129d4
int3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop esi
ret 0x10
mov eax, 0x8007000e
pop esi
ret 0x10

Function at 0x414a50
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x24
call fcn.00420a60
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x414b0e
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x414b08
push ebx
push ebx
push 1
push ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x414aff
mov edi, dword [esp + 0x14]
lea eax, [esi + 0x18]
push eax
push 4
mov ecx, dword [edi + 0x48]
push esi
push 0x414b20
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x414af6
push esi
call fcn.0040f8c0
mov dword [esi + 0x20], ebx
lea ebx, [edi + 0x30]
push ebx
mov dword [esi + 8], edi
mov dword [esi + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0xc
push esi
push edi
call fcn.0040f8e0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
mov eax, dword [esi + 0x10]
mov dword [esi + 0x10], ebx
push eax
call ebp
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], ebx
push eax
call ebp
push esi
call fcn.00420f10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
Function at 0x415550
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x415578
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x41562c
call esi
cmp eax, 3
jne 0x41562c
push 0x5c
push edi
call fcn.00429bfd
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x41562c
mov esi, ebp
sub esi, edi
lea ecx, [esi + 1]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41562c
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
sub eax, edi
mov byte [eax + ebp], 0
call fcn.00415550
test eax, eax
jne 0x4155ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4155ff
mov esi, 1
jmp 0x415601
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x41562c
mov ecx, dword [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x415574
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x415700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41573f
or eax, ebx
mov ebx, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
mov ecx, dword [esp + edi*4 + 0x10]
mov edx, dword [esp + 0x24]
push 0
push ebx
push 2
push 0
push ecx
push 0xc0000000
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x415775
test esi, esi
jne 0x41577e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41577e
or esi, 0xffffffff
inc edi
cmp edi, 4
jb 0x415747
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
xor eax, eax
cmp esi, 0xffffffff
pop esi
pop ebp
pop ebx
setne al
add esp, 0x10
ret 0xc