joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4141d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
push esi
push edi
mov edi, ecx
mov esi, 1
bsr ecx, eax
mov eax, esi
mov dword [ebp - 4], edi
shl eax, cl
cmp edx, eax
ja 0x41431c
mov ebx, dword [edi + 4]
lea eax, [edx - 1]
or eax, esi
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00413b70
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x4142f7
mov eax, ecx
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
movzx edx, byte [eax + 0xa]
imul esi, esi, 0x1000193
xor esi, edx
movzx edx, byte [eax + 0xb]
imul esi, esi, 0x1000193
xor esi, edx
mov edx, dword [edi + 0xc]
imul esi, esi, 0x1000193
and esi, dword [edi + 0x18]
lea ebx, [edx + esi*8]
mov esi, dword [ebx]
mov dword [ebp + 8], ebx
cmp esi, dword [ebp - 8]
jne 0x414282
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x4142ec
mov edx, dword [ebx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x4142b9
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x4142b4
mov edi, dword [eax + 4]
mov ebx, dword [ebp - 0xc]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov ebx, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], eax
jmp 0x4142e9
cmp esi, edx
je 0x4142cc
nop dword [eax]
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x414300
cmp esi, edx
jne 0x4142c0
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov edi, dword [ebp - 4]
mov eax, ecx
cmp ecx, dword [ebp - 8]
jne 0x414232
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x4142e9
push str.invalid_hash_bucket_count
call fcn.0042a2a8
int3
Function at 0x418950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f07d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x44c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0042bd84
mov edi, eax
add esp, 4
test edi, edi
je 0x4189ed
push 1
mov dword [ebp - 4], 0
call fcn.0042a4c6
add esp, 4
mov dword [edi + 4], eax
jmp 0x4189ef
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.004018f0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x418a4a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x418a4a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x418a66
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x418a89
cmp byte [ebp + 0xc], 0
je 0x418a75
push esi
call fcn.0042a95c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x418a95
mov esi, str.ios_base::badbit_set
jmp 0x418aa5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004041a0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00402500
push 0x447ac0
lea eax, [ebp - 0x28]
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x423bf0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x44c100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44cff0], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x423c36
cmp edi, dword [0x44d410]
jne 0x423c31
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bc5c
mov esp, ebp
pop ebp
ret
call fcn.004240a0
call fcn.00423e20
test eax, eax
jne 0x423c4f
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bc5c
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44cbd4]
push esi
test eax, eax
je 0x423dfc
cmp dword [0x44cfe8], 0
je 0x423dfc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEngine
push eax
call esi
mov dword [0x44d414], eax
test eax, eax
je 0x423dfc
push str.DestroyEngine
push dword [0x44cbd4]
call esi
mov dword [0x44d418], eax
test eax, eax
je 0x423dfc
push str.TranslatePair
push dword [0x44cbd4]
call esi
mov dword [0x44d41c], eax
test eax, eax
je 0x423dfc
push str.FreeAtlasData
push dword [0x44cbd4]
call esi
mov dword [0x44d428], eax
test eax, eax
je 0x423dfc
push str.AtlInitEngineData
push dword [0x44cbd4]
call esi
mov dword [0x44d420], eax
test eax, eax
je 0x423dfc
push str.SetTransState
push dword [0x44cbd4]
call esi
mov dword [0x44d424], eax
test eax, eax
je 0x423dfc
push str.AwuWordDel
push dword [0x44cfe8]
call esi
mov dword [0x44cbd0], eax
test eax, eax
je 0x423dfc
lea ecx, [ebx + 0x20c]
lea edx, [ebp - 0x414]
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x423d30
lea eax, [ebp - 0x414]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x423d5c
xor ecx, ecx
mov word [eax], cx
jmp 0x423d82
mov eax, dword [0x443108]
movups xmm0, xmmword [str.Rule_Sets_]
mov dword [ebp - 0x404], eax
mov ax, word [0x44310c]
movups xmmword [ebp - 0x414], xmm0
mov word [ebp - 0x400], ax
push 0
push 0
push 0x410
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
lea eax, [ebx + 4]
push eax
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x423dfc
push 0x44e3d0
push 0
push 0x44d430
push 2
push 0
call dword [0x44d420]
add esp, 0x14
test eax, eax
jne 0x423dfc
lea eax, [ebp - 0x414]
push eax
push 0
push edi
push 1
call dword [0x44d414]
add esp, 0x10
cmp eax, 1
jne 0x423dfc
pop esi
mov dword [0x44d410], edi
pop edi
mov dword [0x44cff0], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bc5c
mov esp, ebp
pop ebp
ret
call fcn.004240a0
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0042bc5c
mov esp, ebp
pop ebp
ret
Function at 0x424510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x44c100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x424537
push 0x57
jmp 0x4245c3
push 0x1c
lea eax, [ebp - 0x60]
mov dword [ebp - 0x48], 0
push eax
xorps xmm0, xmm0
push esi
push edi
movups xmmword [ebp - 0x60], xmm0
movq qword [ebp - 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4245c9
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4245c9
mov eax, 0x5a4d
cmp word [ebp - 0x44], ax
jne 0x4245be
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x54]
ja 0x4245be
cmp eax, 0x40
jb 0x4245be
push 0
push 0xf8
push ebx
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4245c9
cmp dword [ebx], 0x4550
jne 0x4245be
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bc5c
mov esp, ebp
pop ebp
ret 0xc
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bc5c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x425000
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x34]
test esi, esi
push edi
cmove esi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [ebp + 0x2c]
test edi, edi
jne 0x425025
xorps xmm0, xmm0
lea edi, [ebp - 0x10]
movups xmmword [ebp - 0x10], xmm0
mov eax, dword [ebp + 0x1c]
push edi
push dword [ebp + 0x28]
or eax, 4
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x425053
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x30
push ebx
mov ebx, dword [ebp + 0x30]
lea eax, [ebp + 0x34]
push 1
push eax
push dword [edi]
mov dword [ebp + 0x34], ebx
call fcn.00425380
test eax, eax
jne 0x4250a5
push esi
lea eax, [ebp + 0x34]
mov dword [ebp + 0x34], ebx
push eax
push 1
push dword [edi + 8]
call fcn.004250e0
test eax, eax
jne 0x4250a5
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 4]
call esi
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x30
test byte [ebp + 0x1c], 4
jne 0x4250b4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [ebp - 0x10]
cmp edi, eax
jne 0x4250ca
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 4]
call esi
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x30
Function at 0x42abc6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x42abed
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x42abf0
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0042aba2
pop esi
leave
ret 8

Function at 0x42ca22
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42ca61
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ca61
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ca61
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42ca61
cmp dword [ecx + 0x74], 0xe
jbe 0x42ca61
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42cfb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x44c100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x42cfd7
mov ecx, 5
int 0x29
push 2
call fcn.0042cac6
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x42d0e2
test esi, esi
jne 0x42d0e2
push 2
call fcn.0042cac6
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042bc5c
mov esp, ebp
pop ebp
ret
Function at 0x438ce0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x438d0a
mov eax, 2
pop ebp
ret
push esi
call fcn.0042ce00
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x438d2a
jmp dword [eax*4 + 0x438d60]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.0042cf40
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x438d70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x44c100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x438e6b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x438e6b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x438dca
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x438da8
jmp 0x438e6b
cmp edx, 0x200
jae 0x438ed1
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x438e6b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x438e6a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x438e6a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x438eb3
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x438e50
pop edi
mov eax, dword [0x44f968]
test eax, eax
jne 0x438e91
push 0x445398
call fcn.00439bf0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x438e8c
or eax, 0xffffffff
mov dword [0x44f968], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x438ebf
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bc5c
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x438e6a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bc5c
mov esp, ebp
pop ebp
ret
call fcn.0042bef3
int3

Function at 0x4391e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00439210
mov esi, dword [ebp + 8]
test al, al
je 0x4391fe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00439220
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x439350
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4393ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4393ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4393ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4393ac
cmp dword [ecx + 0x74], 0xe
jbe 0x4393ac
cmp dword [ecx + 0xe8], 0
je 0x4393ac
push dword [ebp + 8]
call fcn.00439220
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x44f974
call fcn.00438ff0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4393e1
push dword [ebp + 8]
call fcn.004391e0
mov esp, ebp
pop ebp
ret

Function at 0x439420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43947c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43947c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43947c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43947c
cmp dword [ecx + 0x74], 0xe
jbe 0x43947c
cmp dword [ecx + 0xe8], 0
je 0x43947c
push dword [ebp + 8]
call fcn.00439220
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x44f974
call fcn.00438ff0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4394b1
push dword [ebp + 8]
call fcn.004391e0
mov esp, ebp
pop ebp
ret
Function at 0x4010bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401115
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401115
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401107
cmp esi, ecx
jae 0x401115
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4010f5
cmp esi, ecx
jae 0x401115
cmp word [esi], 0
je 0x401115
mov eax, esi
jmp 0x401117
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401590
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0x8004ffff
lea ebx, [esi + 0x10]
je 0x4015d9
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x4015be
push edi
mov ecx, ebx
call fcn.00402341
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x14]
jne 0x4015a8
mov ecx, ebx
call fcn.00402366
lea edi, [esi + 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.00402625
jmp 0x4015dc
lea edi, [esi + 0x1c]
lea ecx, [esi + 0x20]
call fcn.0040294a
mov ecx, edi
call fcn.0040294a
mov ecx, ebx
call fcn.00402366
lea ecx, [esi + 8]
call fcn.0040294a
pop edi
lea ecx, [esi + 4]
pop esi
pop ebx
jmp fcn.0040294a
Function at 0x401a5b
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401a89
xor al, al
jmp 0x401b04
call fcn.004011e0
push eax
lea ecx, [ebp + 8]
call fcn.00402965
or dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004025e9
push eax
push ebx
push 0x41e89c
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004025c3
test edi, edi
je 0x401afa
cmp edi, 0x6f
je 0x401afa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401afa
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x1c
call fcn.004024ed
mov bl, 1
lea ecx, [ebp + 8]
call fcn.0040294a
mov al, bl
pop edi
pop ebx
leave
ret 4

Function at 0x401b0a
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
call fcn.004011e0
push eax
lea ecx, [ebp - 8]
call fcn.00402965
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.004025e9
push eax
xor ebx, ebx
mov dword [ebp - 0x10], eax
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004025c3
test esi, esi
js 0x401bc0
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402580
push 0x41e788
lea ecx, [ebp - 4]
call fcn.0040242c
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401b8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401bb8
push str.Temp
lea ecx, [ebp - 4]
call fcn.0040242c
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401a5b
test al, al
je 0x401bb8
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x20]
call fcn.004024ed
mov bl, 1
lea ecx, [ebp - 4]
call fcn.0040294a
lea ecx, [ebp - 8]
call fcn.0040294a
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x401c4c
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x420018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
or esi, 0xffffffff
call fcn.00405a60
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41e8b0
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401d49
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402580
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.0040239f
lea ecx, [ebp - 0x214]
call fcn.0040294a
push 0x41e784
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401d49
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401d49
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401d49
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401d49
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.00401fdb
pop ecx
test eax, eax
jne 0x401d3f
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401d49
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004056fe
leave
ret