joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b396c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi], 0
je 0x100b3987
push dword [esi]
movzx edx, word [esi + 0x4c]
mov ecx, dword [edi + 0x3c]
call fcn.100b15f4
cmp dword [esi + 4], 0
je 0x100b399c
push dword [esi + 4]
movzx edx, word [esi + 0x4c]
mov ecx, dword [edi + 0x70]
call fcn.100b15f4
cmp dword [esi + 8], 0
je 0x100b39b1
push dword [esi + 8]
movzx edx, word [esi + 0x4c]
mov ecx, dword [edi + 0x40]
call fcn.100b15f4
test byte [esi + 0x48], 2
je 0x100b39d8
mov edx, dword [esi + 0xc]
test edx, edx
je 0x100b3a34
mov ecx, edi
call fcn.100b3a73
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 0x20]
sub ecx, 4
je 0x100b3a34
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], ecx
jmp 0x100b3a34
push ebx
movzx ebx, word [esi + 0x18]
test ebx, ebx
je 0x100b3a1a
cmp dword [esi + 0xc], 0
je 0x100b39f4
push dword [esi + 0xc]
mov ecx, dword [edi + 0x7c]
mov edx, ebx
call fcn.100b15f4
cmp dword [esi + 0x10], 0
je 0x100b3a07
push dword [esi + 0x10]
mov ecx, dword [edi + 0x78]
mov edx, ebx
call fcn.100b15f4
cmp dword [esi + 0x14], 0
je 0x100b3a1a
push dword [esi + 0x14]
mov ecx, dword [edi + 0x74]
mov edx, ebx
call fcn.100b15f4
movzx eax, word [esi + 0x30]
pop ebx
test eax, eax
je 0x100b3a34
push eax
push dword [edi + 0xdc]
lea edx, [esi + 0x1c]
mov ecx, edi
call fcn.100bb951
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x100b3a49
mov edx, dword [edi + 0x34]
add ecx, 0xfffffffc
je 0x100b3a49
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x100b3a5e
mov edx, dword [edi + 0x38]
add ecx, 0xfffffffc
je 0x100b3a5e
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], ecx
mov ecx, dword [edi + 0x1c]
add esi, 0xfffffffc
je 0x100b3a6c
mov eax, dword [ecx]
mov dword [esi], eax
mov dword [ecx], esi
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x100c29c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
mov eax, ecx
xor ecx, ecx
push ebp
push esi
mov dword [esp + 0x1c], eax
xor ebp, ebp
mov esi, dword [eax]
mov eax, 0x100
push edi
xor edi, edi
mov dword [esp + 0x14], edi
movzx edx, byte [esi + 4]
imul edx, eax
movzx eax, byte [esi + 5]
add dx, ax
movzx eax, dx
cmp cx, ax
jae 0x100c2b5c
push ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
add eax, 6
add ecx, eax
mov eax, 0x100
mov dword [esp + 0x28], ecx
movzx edx, byte [ecx + 6]
imul edx, eax
movzx eax, byte [ecx + 7]
add dx, ax
movzx eax, dx
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x100c2a40
cmp ebx, 1
je 0x100c2a40
mov eax, dword [esp + 0x30]
movzx edx, word [eax + 0x16]
jmp 0x100c2a48
mov eax, dword [esp + 0x30]
movzx edx, word [eax + 0x18]
movzx eax, word [eax + 0x14]
mov esi, eax
mov ebx, eax
shr ebx, 1
test ax, ax
je 0x100c2a68
movzx eax, dx
imul eax, dword [esp + 0x14]
add eax, ebx
cdq
idiv esi
mov dword [esp + 0x14], eax
movzx edx, byte [ecx + 2]
mov eax, 0x100
imul edx, eax
movzx eax, byte [ecx + 3]
add dx, ax
mov eax, dword [esp + 0x38]
movzx esi, dx
mov dword [esp + 0x10], esi
test eax, eax
je 0x100c2a99
cmp eax, 1
je 0x100c2a99
mov eax, dword [esp + 0x30]
movzx eax, word [eax + 0x16]
jmp 0x100c2aa1
mov eax, dword [esp + 0x30]
movzx eax, word [eax + 0x18]
mov esi, dword [esp + 0x30]
movzx edx, word [esi + 0x14]
mov esi, dword [esp + 0x10]
test dx, dx
jne 0x100c2ab6
mov eax, esi
jmp 0x100c2ac7
movzx eax, ax
imul eax, esi
mov esi, edx
add eax, ebx
cdq
idiv esi
mov dword [esp + 0x10], eax
test byte [ecx + 9], 1
movzx ebx, word [esp + 0x40]
jne 0x100c2ad7
mov ebx, 1
xor ecx, ecx
xor esi, esi
cmp cx, bx
jae 0x100c2b41
test di, di
jne 0x100c2ae9
xor eax, eax
jmp 0x100c2af9
cmp eax, ebp
jl 0x100c2aef
mov eax, ebp
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jge 0x100c2af9
mov eax, ecx
mov edx, dword [esp + 0x18]
sub edx, eax
movzx ecx, di
mov eax, dword [esp + 0x44]
movzx eax, word [eax + 4]
imul ecx, eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov dword [ecx + eax], edx
add edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
test si, si
jne 0x100c2b36
push dword [esp + 0x38]
lea ecx, [esp + 0x2c]
push dword [esp + 0x34]
call fcn.100c1280
mov ebp, eax
mov eax, dword [esp + 0x10]
inc esi
inc edi
cmp si, bx
jb 0x100c2ae0
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
add ecx, 0xa
sub dword [esp + 0x20], 1
mov dword [esp + 0x1c], ecx
jne 0x100c2a04
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 0x18

Function at 0x100c6e70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x100c6eae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x100c6ea6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x100c6eb0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x100c6e96
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100c6f80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x100c6f96
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x100c6fb1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x403e10
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
test ecx, ecx
jne 0x403e32
push edx
push str._s__none__s
push dword [0x4caac8]
call fcn.00401240
add esp, 0x10
pop esi
pop ebp
ret
test ecx, 0x80000
mov esi, 0x4be8cc
mov eax, str._utf
cmove eax, esi
test ecx, 0x800000
push eax
mov eax, str._use_offset_limit
cmove eax, esi
test ecx, 0x40000
push eax
mov eax, str._ungreedy
cmove eax, esi
test ecx, 0x20000
push eax
mov eax, str._ucp
cmove eax, esi
test ecx, 0x10000
push eax
mov eax, str._no_start_optimize
cmove eax, esi
test ecx, 0x40000000
push eax
mov eax, str._no_utf_check
cmove eax, esi
test ecx, 0x8000
push eax
mov eax, str._no_dotstar_anchor
cmove eax, esi
test ecx, 0x4000
push eax
mov eax, str._no_auto_possess
cmove eax, esi
test ecx, 0x2000
push eax
mov eax, str._no_auto_capture
cmove eax, esi
test ecx, 0x1000
push eax
mov eax, str._never_utf
cmove eax, esi
test ecx, 0x800
push eax
mov eax, str._never_ucp
cmove eax, esi
test ecx, 0x100000
push eax
mov eax, str._never_backslash_c
cmove eax, esi
test ecx, 0x400
push eax
mov eax, str._multiline
cmove eax, esi
test ecx, 0x200
push eax
mov eax, str._match_unset_backref
cmove eax, esi
test ecx, 0x4000000
push eax
mov eax, str._match_invalid_utf
cmove eax, esi
test ecx, 0x2000000
push eax
mov eax, str._literal
cmove eax, esi
test ecx, 0x100
push eax
mov eax, str._firstline
cmove eax, esi
test ecx, 0x1000000
push eax
mov eax, str._extended_more
cmove eax, esi
test cl, 0x80
push eax
mov eax, str._extended
cmove eax, esi
test ecx, 0x20000000
push eax
mov eax, str._endanchored
cmove eax, esi
push eax
test cl, 0x40
mov eax, str._dupnames
cmove eax, esi
test cl, 0x20
push eax
mov eax, str._dotall
cmove eax, esi
test cl, 0x10
push eax
mov eax, str._dollar_endonly
cmove eax, esi
test cl, 8
push eax
mov eax, str._caseless
cmove eax, esi
test cl, 4
push eax
mov eax, str._auto_callout
cmove eax, esi
test ecx, ecx
push eax
mov eax, str._anchored
cmovns eax, esi
test cl, 1
push eax
mov eax, str._allow_empty_class
cmove eax, esi
test ecx, 0x400000
push eax
mov eax, str._alt_verbnames
cmove eax, esi
test ecx, 0x200000
push eax
mov eax, str._alt_circumflex
cmove eax, esi
test cl, 2
push eax
mov eax, str._alt_bsux
cmove eax, esi
push eax
push edx
push str._s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
push dword [0x4caac8]
call fcn.00401240
add esp, 0x88
pop esi
pop ebp
ret
Function at 0x40da40
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x4c6180]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40da89
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40da89
push 0xc00
call eax
test eax, eax
jne 0x40db1e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40db1e
cmp ecx, 0x104
ja 0x40db1e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x40dac2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40db1d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x40dae5
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x40dae2
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b84f
mov esp, ebp
pop ebp
ret
Function at 0x411950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x20
mov eax, dword [edi + 4]
cmp eax, ecx
mov dword [edi + 0x78], 0
cmova eax, ecx
mov dword [edi + 0x7c], 0
mov dword [edi + 0x54], eax
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 0x30], 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 1
mov dword [edi + 0x70], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x90], 0xffffffff
mov dword [edi + 0x94], 0xffffffff
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x58], 0
cmp eax, dword [edi + 0x20]
je 0x411a86
mov ecx, 0x20
lea ebx, [edi + 0xd0]
mov dword [ebp + 8], ecx
nop word [eax + eax]
mov eax, dword [ebx]
test eax, eax
je 0x411a58
mov dword [ebx], 0
nop dword [eax]
mov ecx, dword [ebx - 8]
mov esi, dword [eax]
push eax
mov ecx, dword [ecx + 0x14]
push ecx
mov eax, dword [ecx + 4]
call eax
mov eax, esi
test esi, esi
jne 0x411a40
mov ecx, dword [ebp + 8]
add ebx, 0x28
sub ecx, 1
mov dword [ebp + 8], ecx
jne 0x411a30
mov edx, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
test edx, edx
je 0x411a81
mov eax, dword [edi + 0x14]
push edx
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x5c], 0
mov eax, dword [edi]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x10]
mov dword [edi + 0x98], eax
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
mov dword [edi + 0x9c], 0
lea ebx, [edi + eax*8]
mov dword [edi + 0xa0], 0
lea eax, [ecx + 1]
mov dword [edi + 0xa4], 0
mov dword [edi + 0x58], eax
lea eax, [ebx + 0x20]
push eax
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
call fcn.00413760
mov dword [ebp + 8], eax
lea esi, [ebx + 0x1c]
test eax, eax
jne 0x411b69
push esi
call fcn.00413760
mov dword [ebp + 8], eax
test eax, eax
jne 0x411b69
lea eax, [ebx + 0x20]
push eax
call fcn.00413880
test eax, eax
jne 0x411b6e
push esi
call fcn.00413880
test eax, eax
jne 0x411b6e
push ebx
call fcn.00413020
mov dword [ebp + 8], eax
test eax, eax
je 0x411b7f
mov dword [edi + 0x44], 0
lea esi, [edi + 0xe4]
mov dword [ebp - 4], 0x20
cmp dword [esi - 4], 0
lea ebx, [esi + 4]
je 0x411b54
push ebx
call fcn.00413880
push esi
call fcn.00413880
lea eax, [esi - 4]
push eax
call fcn.00413aa0
push esi
call fcn.004138b0
push ebx
call fcn.004138b0
add esi, 0x28
sub dword [ebp - 4], 1
jne 0x411b36
mov eax, dword [ebp + 8]
test eax, eax
jle 0x411b78
movzx eax, ax
or eax, 0x80070000
test eax, eax
je 0x411b7f
mov dword [edi + 0x40], eax
cmp dword [edi + 0x38], 0
jne 0x411b98
cmp dword [edi + 0x40], 0
jne 0x411b98
cmp dword [edi + 0x3c], 0
jne 0x411b98
mov dword [edi + 0x44], 0
xor ecx, ecx
cmp dword [edi + 0x44], ecx
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413510
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x41355b
cmp edx, 0x40
je 0x413547
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.0045d090
add esp, 0xc
mov eax, dword [esi]
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x413561
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.0045d090
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov ebx, 4
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4135a4
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x413610
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x4c6020]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x413a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00460e02
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x413a7d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416c50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4c9a14], 0
jne 0x416c98
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
test esi, esi
pop esi
jne 0x416c90
xor al, al
mov esp, ebp
pop ebp
ret 4
mov al, 1
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4
Function at 0x416f30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00418200
cmp eax, 0xffffffff
je 0x416f5d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x416f5d
and eax, 0xfffffffe
push eax
push esi
call fcn.00417670
test al, al
je 0x416f89
cmp byte [0x4c9a14], 0
push esi
jne 0x416f9b
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
test esi, esi
jne 0x416f92
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x416fb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47970b
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x4c6180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x4c9a14], cl
jne 0x41705c
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x417138
cmp eax, 0x114
jae 0x417138
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00415330
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004142f0
push dword [ebp - 0x36c]
call fcn.0045ba8c
add esp, 4
mov al, 1
jmp 0x41713a
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x417138
cmp esi, 0x114
jae 0x4170a7
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.004144a0
mov al, 1
jmp 0x41713a
lea ecx, [ebp - 0x360]
call fcn.00414260
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x4170cd
push esi
lea ecx, [ebp - 0x360]
call fcn.00414be0
push dword [ebp - 0x360]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x41712a
mov ecx, dword [ebp - 0x360]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x4170f9
inc eax
cmp word [ecx + eax*2], 0
jne 0x4170f1
mov dword [ebp - 0x35c], eax
cmp eax, edx
jne 0x41712a
lea eax, [esi - 1]
cmp eax, edx
jne 0x41712a
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.004142f0
push dword [ebp - 0x360]
call fcn.0045ba8c
add esp, 4
mov al, 1
jmp 0x41713a
push dword [ebp - 0x360]
call fcn.0045ba8c
add esp, 4
xor al, 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.0045b84f
mov esp, ebp
pop ebp
ret 4
Function at 0x4171c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479750
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4c6180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x4c9a14], 0
mov esi, dword [ebp + 8]
jne 0x41724d
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.00415330
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004142f0
push dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.0045ba8c
add esp, 4
jmp 0x417278
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x354]
push eax
call fcn.004144a0
push esi
call fcn.00419050
test edi, edi
je 0x41728e
cmp edi, 0x114
jae 0x41728e
mov al, 1
jmp 0x417290
xor al, 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.0045b84f
mov esp, ebp
pop ebp
ret 4

Function at 0x4172d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4c9a14], 0
jne 0x417316
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
test esi, esi
pop esi
jne 0x41730e
xor al, al
mov esp, ebp
pop ebp
ret 4
mov al, 1
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4
Function at 0x4175a0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4c9a14], 0
jne 0x4175dd
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x417670
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4c9a14], 0
jne 0x4176b9
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
test esi, esi
pop esi
jne 0x4176b1
xor al, al
mov esp, ebp
pop ebp
ret 8
mov al, 1
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4c9a14], 0
jne 0x41823a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00415360
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0045ba8c
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
or eax, 0xffffffff
cmp ecx, 0xffffffff
cmovne eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4184b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4184e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4184e2
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4185e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
nop
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x418648
test ecx, ecx
je 0x41863d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x418600
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc