joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437820
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00431b10
mov ebx, eax
test ebx, ebx
jne 0x437853
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042fab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x43785f
jmp dword [eax*4 + 0x437a58]
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x43787a
push eax
call fcn.004551f0
add esp, 4
jmp 0x437880
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4c5774]
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.004551f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4378f8
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4378f8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4c5774]
push 0x18
push 0
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4c5774]
push 1
push 0
push 0xffffffffffffffff
push 0x49f8e0
push ecx
call fcn.00475ef0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx edx, word [edi]
push edx
call fcn.0048e66d
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x437936.67
movzx eax, byte [eax + 0x437a88]
jmp dword [eax*4 + 0x437a6c]
mov esi, 0x40
jmp 0x437965
mov esi, 0x4000
jmp 0x437965
mov esi, 0x20
jmp 0x437965
mov esi, 0x8000
jmp 0x437965
mov esi, 0x80
jmp 0x437965
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x437979
push eax
call fcn.004551f0
add esp, 4
jmp 0x43797f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x4378f8
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4378f8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x4378cc
mov edx, dword [0x4c5774]
push 1
push 0
push 0xffffffffffffffff
push 0x49f8e0
push edx
call fcn.00475ef0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [edi], 0
je 0x4379f9
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.004129f0
fmul qword [0x4bc1b0]
call fcn.0049ae30
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x437a00
mov byte [esp + 0x13], 1
xor edi, edi
mov eax, dword [ebp + 0xc]
push eax
call fcn.004551f0
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x437a1d
test esi, esi
jne 0x4378db
jmp 0x437a21
test esi, esi
je case.0x437936.67
cmp byte [esp + 0x13], 0
jne 0x437a3f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4378db
push 1
push 0x64
call fcn.00401290
add esp, 8
jmp 0x437a00
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4382d0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4c4f08]
push eax
mov eax, dword [esp + 0x18]
call fcn.00444510
mov ebp, eax
test ebp, ebp
je 0x4382f6
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
jmp 0x4382fb
mov ebx, 1
push 1
push 0
lea ecx, [ebx - 1]
push ecx
push 0
push edi
call fcn.00475ef0
cmp eax, 1
je 0x438319
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebp, ebp
je 0x43842e
cmp byte [edi + 0x17], 0
jne 0x43832c
mov esi, dword [edi + 0xc]
jmp 0x43832e
mov esi, edi
test byte [esi + 0x15], 8
je 0x43833b
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x438354
test byte [esi + 0x15], 4
je 0x43834f
mov eax, esi
call fcn.00430310
mov eax, dword [esi + 8]
jmp 0x438364
cmp al, 2
jne 0x43835f
call fcn.00401000
jmp 0x438364
mov eax, 0x4c7078
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x17], 0
mov ebx, eax
jne 0x43837a
mov esi, dword [edi + 0xc]
jmp 0x43837c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x438394
test byte [esi + 0x15], 8
je 0x43838f
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x438399
mov eax, 0x4c7d5c
lea edx, [ebx + ebx]
mov dword [eax], edx
cmp byte [edi + 0x17], 0
jne 0x4383a9
mov esi, dword [edi + 0xc]
jmp 0x4383ab
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x4383c3
test byte [esi + 0x15], 8
je 0x4383be
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x4383c8
mov eax, 0x4c7d5c
test dword [eax], 0xfffffffe
jne 0x4384a5
cmp byte [edi + 0x17], 0
jne 0x4383df
mov esi, dword [edi + 0xc]
jmp 0x4383e1
mov esi, edi
test byte [esi + 0x15], 8
je 0x4383ee
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43840f
test byte [esi + 0x15], 4
je 0x438402
mov eax, esi
call fcn.00430310
mov eax, dword [esi + 8]
xor ecx, ecx
mov word [eax], cx
jmp 0x4384a5
cmp al, 2
jne 0x438422
call fcn.00401000
xor ecx, ecx
mov word [eax], cx
jmp 0x4384a5
mov eax, 0x4c7078
xor ecx, ecx
mov word [eax], cx
jmp 0x4384a5
cmp byte [edi + 0x17], 0
jne 0x438439
mov esi, dword [edi + 0xc]
jmp 0x43843b
mov esi, edi
test byte [esi + 0x15], 8
je 0x438448
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x438461
test byte [esi + 0x15], 4
je 0x43845c
mov eax, esi
call fcn.00430310
mov eax, dword [esi + 8]
jmp 0x438471
cmp al, 2
jne 0x43846c
call fcn.00401000
jmp 0x438471
mov eax, 0x4c7078
xor edx, edx
mov word [eax], dx
cmp byte [edi + 0x17], dl
jne 0x438480
mov esi, dword [edi + 0xc]
jmp 0x438482
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x43849a
test byte [esi + 0x15], 8
je 0x438495
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x43849f
mov eax, 0x4c7d5c
mov dword [eax], 0
cmp byte [edi + 0x17], 0
jne 0x4384ae
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x4384ce
cmp dword [0x4c7be4], 0
je 0x4384ce
mov ecx, 0x4c7bd8
call fcn.00403df0
pop edi
pop esi
pop ebp
pop ebx
ret 4
and byte [edi + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x439300
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.00497d00
push ebp
mov ebp, dword [0x4c4f08]
push esi
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x7fff
jb 0x43942a
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push ebp
call fcn.00475ef0
test eax, eax
jne 0x439350
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
cmp byte [ebp + 0x17], 0
jne 0x43935b
mov esi, dword [ebp + 0xc]
jmp 0x43935d
mov esi, ebp
test byte [esi + 0x15], 8
je 0x43936a
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x439383
test byte [esi + 0x15], 4
je 0x43937e
mov eax, esi
call fcn.00430310
mov eax, dword [esi + 8]
jmp 0x439393
cmp al, 2
jne 0x43938e
call fcn.00401000
jmp 0x439393
mov eax, 0x4c7078
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4393e7
cmp byte [ebp + 0x17], al
jne 0x4393aa
mov esi, dword [ebp + 0xc]
jmp 0x4393ac
mov esi, ebp
test byte [esi + 0x15], 8
je 0x4393b9
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4393d2
test byte [esi + 0x15], 4
je 0x4393cd
mov eax, esi
call fcn.00430310
mov eax, dword [esi + 8]
jmp 0x4393e2
cmp al, 2
jne 0x4393dd
call fcn.00401000
jmp 0x4393e2
mov eax, 0x4c7078
xor edx, edx
mov word [eax], dx
cmp byte [ebp + 0x17], 0
jne 0x4393f2
mov eax, dword [ebp + 0xc]
jmp 0x4393f4
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x439417
cmp dword [0x4c7be4], 0
je 0x439417
mov ecx, 0x4c7bd8
call fcn.00403df0
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
and byte [eax + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x439437
mov eax, 0x4a9e04
push 1
push 0
push edi
push eax
push ebp
call fcn.00475ef0
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x43bc80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push 0
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x43bcc0
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43bd25
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push str.InstallDir
push edx
mov dword [esp + 0x28], 0x208
call ebp
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43bd53
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43bd53
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43bd33
test eax, eax
je 0x43bd25
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43bd1d
sub ecx, 2
dec eax
jne 0x43bd11
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43bd5c
test edi, edi
jne 0x43bd5c
mov edi, 0x100
jmp 0x43bc98
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43bd4a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43bd25
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43bd21
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43bd25
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43bd7f
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
nop
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x43bd70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x43f510
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [0x4c4f08]
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [edi]
test cx, cx
je 0x43f5f5
cmp word [edi + 2], 0
jne 0x43f575
cmp ecx, 0xa
jne 0x43f549
mov al, 0xd
jmp 0x43f5ef
push eax
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x43f569
cmp cl, 0xff
jne 0x43f569
xor al, al
jmp 0x43f5ef
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x43f5ef
mov esi, ecx
test esi, 0xffffff80
jne 0x43f591
push 2
push esi
call fcn.0048d76e
add esp, 8
test eax, eax
je 0x43f591
and esi, 0xffffffdf
cmp si, 0x56
jne 0x43f5b8
mov ax, word [edi + 2]
call fcn.00409130
cmp ax, 0x4b
jne 0x43f5b8
push 0x10
lea ecx, [edi + 4]
push 0
push ecx
call fcn.0048db4b
add esp, 0xc
jmp 0x43f5ef
xor esi, esi
lea ebx, [ebx]
mov edx, dword [esi*8 + 0x4c21f8]
push edi
push edx
call fcn.0048c519
add esp, 8
test eax, eax
je 0x43f628
inc esi
cmp esi, 0x6d
jl 0x43f5c0
mov eax, edi
call fcn.00411b80
movzx ecx, ax
test cx, cx
je 0x43f5f5
call fcn.00412300
mov bl, al
test bl, bl
jne 0x43f66e
push 0
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.00450280
mov edi, eax
add esp, 4
test edi, edi
jne 0x43f631
push 1
push eax
push 0xffffffffffffffff
push 0x4a9e04
push ebp
call fcn.00475ef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov bl, byte [esi*8 + 0x4c21fc]
jmp 0x43f5f1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
call fcn.00450530
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00475810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov edx, dword [esp + 0x22c]
movzx esi, word [edx]
test esi, 0xffffff80
jne 0x43f692
push 2
push esi
call fcn.0048d76e
add esp, 8
test eax, eax
je 0x43f692
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x50
je 0x43f6aa
xor ecx, ecx
cmp eax, 0x54
setne cl
lea eax, [ecx - 1]
and eax, 2
jmp 0x43f6af
mov eax, 1
push eax
call fcn.00450480
add esp, 4
test al, al
mov eax, 0x4a8da4
jne 0x43f6c6
mov eax, 0x4a8da8
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00475ef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
Function at 0x43f6e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
push esi
mov esi, ecx
mov ecx, dword [0x4c4f08]
push edi
call fcn.00412a30
test esi, esi
je 0x43f861
cmp word [esi], 0
je 0x43f861
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0048f214
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x30]
mov word [esp + 0x238], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43f731
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
je 0x43f768
lea edx, [eax + 1]
cmp edx, 0x105
jae 0x43f861
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0x30], cx
mov word [esp + eax*2 + 0x32], dx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test byte [0x4c8620], 1
jne 0x43f79e
or dword [0x4c8620], 1
push str.GetDiskFreeSpaceExW
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c861c], eax
jmp 0x43f7a3
mov eax, dword [0x4c861c]
test eax, eax
je 0x43f7ef
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
call eax
test eax, eax
je 0x43f861
test bl, bl
je 0x43f7dc
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43f82f
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43f82f
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x43f861
mov eax, dword [esp + 0x14]
test bl, bl
jne 0x43f81e
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
shr eax, 0x14
mov esi, eax
xor edi, edi
mov edx, dword [0x4c5774]
push 1
push 0
push 0xffffffffffffffff
push 0x49f8e0
push edx
call fcn.00475ef0
mov eax, dword [0x4c4f08]
push 0x18
push edi
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4c140c]
cmp byte [eax + 0x104], 0
jne 0x43f88e
mov ecx, dword [0x4c5774]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2324
push ecx
call fcn.00475ef0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4a9e04
push 0
push 0x4a2324
call fcn.0042f7f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x441720
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x218
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call ebp
test eax, eax
jne 0x44174d
cmp byte [0x4c7b78], al
je 0x4417f9
call fcn.00409250
pop ebp
add esp, 0x218
ret
cmp byte [0x4c7b78], 0
push ebx
push esi
mov esi, 0x4c5778
jne 0x441761
lea esi, [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push 0x104
call ebx
test eax, eax
je 0x4417bf
cmp word [edi], 0
je 0x4417d7
cmp word [edi + 2], 0x3a
jne 0x4417d7
cmp word [edi + 4], 0
jne 0x4417d7
push esi
push edi
call fcn.0048c519
add esp, 8
test eax, eax
je 0x4417d7
push edi
lea ecx, [esp + 0x10]
push 0x4a9238
push ecx
call fcn.0048c923
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call ebp
test eax, eax
je 0x4417d7
push esi
push 0x104
call ebx
test eax, eax
jne 0x4417d7
push 0x103
push edi
push esi
call fcn.0048f214
add esp, 0xc
xor eax, eax
mov word [esi + 0x206], ax
cmp byte [0x4c7b78], 0
pop esi
pop ebx
je 0x4417f9
mov ecx, dword [0x4c5774]
push 1
push 0
push 0xffffffffffffffff
push 0x49f8e0
push ecx
call fcn.00475ef0
pop ebp
add esp, 0x218
ret
Function at 0x441e90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
mov ebp, ecx
test edi, edi
je 0x442038
cmp word [edi], 0
je 0x442038
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x441eec
mov ecx, dword [0x4c140c]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042f8e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0x5c
push edi
call fcn.0048dfe4
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x441fff
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x441f06
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x441f73
mov eax, dword [0x4c140c]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0x104], cl
jne 0x441f53
mov eax, dword [0x4c5774]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2324
push eax
call fcn.00475ef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov ecx, ebp
push 0x4a9e04
push 0
push 0x4a2324
call fcn.0042f7f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov esi, ebx
sub esi, edi
sar esi, 1
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0048f214
add esp, 0xc
lea eax, [esp + 0x18]
xor edx, edx
push eax
mov ecx, ebp
mov word [esp + esi*2 + 0x1c], dx
call fcn.00441e90
cmp word [ebx + 2], 0
je 0x441fed
mov esi, dword [0x4c5774]
cmp byte [esi + 0x17], 0
jne 0x441fb1
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x441fbe
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x441fd7
test byte [esi + 0x15], 4
je 0x441fd2
mov eax, esi
call fcn.00430310
mov eax, dword [esi + 8]
jmp 0x441fe7
cmp al, 2
jne 0x441fe2
call fcn.00401000
jmp 0x441fe7
mov eax, 0x4c7078
cmp word [eax], 0x31
jne 0x441fff
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete cl
mov byte [esp + 0x14], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4c140c]
mov dword [edx + 0x30], eax
mov eax, dword [esp + 0x14]
push eax
push ebp
call fcn.0042f8e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov eax, dword [0x4c140c]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x441f55
mov ecx, dword [0x4c5774]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2324
push ecx
call fcn.00475ef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
Function at 0x442cf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x442d75
cmp byte [edi + 0x17], 0
jne 0x442d0a
mov esi, dword [edi + 0xc]
jmp 0x442d0c
mov esi, edi
mov bl, 8
test byte [esi + 0x15], bl
je 0x442d1a
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x442d33
test byte [esi + 0x15], 4
je 0x442d2e
mov eax, esi
call fcn.00430310
mov eax, dword [esi + 8]
jmp 0x442d43
cmp al, 2
jne 0x442d3e
call fcn.00401000
jmp 0x442d43
mov eax, 0x4c7078
cmp byte [edi + 0x17], 0
mov ebp, eax
jne 0x442d50
mov esi, dword [edi + 0xc]
jmp 0x442d52
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x442d6c
test byte [esi + 0x15], bl
je 0x442d64
mov eax, esi
call fcn.00401160
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x442da8
mov esi, 0x4c7d5c
mov ebx, dword [esi]
jmp 0x442da8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
call fcn.00475950
add esp, 0xc
test eax, eax
jne 0x442da0
mov edx, dword [0x4c140c]
mov dword [edx + 0x30], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x442de9
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x442dde
push edi
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [esp + 0x20], ebx
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c140c]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x442e04
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
jne 0x442e14
push ebp
call fcn.0048db7f
add esp, 4
mov ecx, dword [esp + 0x1c]
test edi, edi
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042f8e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x443110
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
mov ebx, edx
call fcn.0040cc50
test al, al
je 0x443138
push 0x10
push 0
push edi
call fcn.0048db4b
add esp, 0xc
jmp 0x443141
push edi
call fcn.0048d7b6
add esp, 4
cmp eax, 1
je 0x4431a6
call fcn.00454e50
test al, al
je 0x4431a6
mov eax, dword [0x4c140c]
cmp byte [eax + 0x104], 0
jne 0x443181
mov ecx, dword [0x4c5774]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2324
push ecx
call fcn.00475ef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x224]
push 0x4a9e04
push 0
push 0x4a2324
call fcn.0042f7f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4431f4
mov edx, dword [0x4c140c]
cmp byte [edx + 0x104], 0
jne 0x443181
push 1
push 0
push eax
mov eax, dword [0x4c5774]
push 0x4a2324
push eax
call fcn.00475ef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x443200
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x44321b
mov eax, 0x103
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00494890
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call fcn.0048e843
add esp, 4
push 0xa
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x44328a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44328a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x44328a
push 0
lea edx, [esp + 0x18]
push edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x44328c
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x224]
test bl, bl
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042f8e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
Function at 0x4432c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4c4f08]
sub esp, 0x100
push esi
mov esi, eax
call fcn.00412a30
test esi, esi
je 0x443376
cmp word [esi], 0
je 0x443376
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44332d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c140c]
cmp byte [ecx + 0x104], 0
mov dword [ecx + 0x30], eax
jne 0x4433aa
mov eax, dword [0x4c5774]
push 1
push 0
push esi
push 0x4a2324
push eax
call fcn.00475ef0
pop esi
add esp, 0x100
ret
mov edx, dword [0x4c5774]
mov ecx, dword [0x4c140c]
push 1
push 0
push 0xffffffffffffffff
push 0x49f8e0
push edx
mov dword [ecx + 0x30], 0
call fcn.00475ef0
mov edx, esi
lea eax, [esp + 4]
call fcn.00474210
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4c4f08]
push eax
call fcn.00475ef0
pop esi
add esp, 0x100
ret
mov eax, dword [0x4c140c]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x4433aa
mov ecx, dword [0x4c5774]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2324
push ecx
call fcn.00475ef0
pop esi
add esp, 0x100
ret
push 0x4a9e04
push 0
push 0x4a2324
mov ecx, edi
call fcn.0042f7f0
pop esi
add esp, 0x100
ret