joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40adee
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 2
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 3
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], 0x41ecd0
mov word [esp + 0x26], 0x414
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x41ecd0
lea eax, [esp + 0x16]
mov dword [esp], eax
call sub.SHELL32.DLL_SHFileOperationA
sub esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_free
cmp dword [esp + 0x34], 0
jne 0x40aecb
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0040aa6f
xor eax, 1
test al, al
je 0x40aecb
mov eax, 1
jmp 0x40aed0
mov eax, 0
and eax, 1
add esp, 0x4c
ret
Function at 0x40afc7
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x42c
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [esp + 0x14]
mov dword [esp], eax
call fcn.0041a59f
mov eax, dword [esp + 0x438]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x434]
mov dword [esp], eax
call fcn.0041a59f
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp + 8], 0x400
mov dword [esp + 4], eax
lea eax, [esp + 0x14]
mov dword [esp], eax
call fcn.00419918
mov dword [esp + 0x41c], 0
mov dword [esp + 0x418], 0
mov dword [esp + 0x414], 0
jmp 0x40b1e9
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x41c]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x22
jne 0x40b11c
add dword [esp + 0x41c], 1
jmp 0x40b0a5
mov eax, dword [esp + 0x418]
lea edx, [eax + 1]
mov dword [esp + 0x418], edx
mov edx, eax
mov eax, dword [esp + 0x434]
lea ecx, [edx + eax]
mov eax, dword [esp + 0x41c]
lea edx, [eax + 1]
mov dword [esp + 0x41c], edx
movzx eax, byte [esp + eax + 0x14]
mov byte [ecx], al
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x41c]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x22
je 0x40b0cd
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x41c]
add eax, edx
movzx eax, byte [eax]
test al, al
jne 0x40b070
mov edx, dword [esp + 0x418]
mov eax, dword [esp + 0x434]
add eax, edx
mov byte [eax], 0
mov eax, dword [esp + 0x414]
lea edx, [eax + 1]
mov dword [esp + 0x414], edx
cmp eax, dword [esp + 0x430]
jne 0x40b104
mov eax, 1
jmp 0x40b206
add dword [esp + 0x41c], 1
mov dword [esp + 0x418], 0
jmp 0x40b1e9
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x41c]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
jne 0x40b17a
add dword [esp + 0x41c], 1
add dword [esp + 0x430], 1
jmp 0x40b1e9
mov eax, dword [esp + 0x418]
lea edx, [eax + 1]
mov dword [esp + 0x418], edx
mov edx, eax
mov eax, dword [esp + 0x434]
lea ecx, [edx + eax]
mov eax, dword [esp + 0x41c]
lea edx, [eax + 1]
mov dword [esp + 0x41c], edx
movzx eax, byte [esp + eax + 0x14]
mov byte [ecx], al
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x41c]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
je 0x40b1a2
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x41c]
add eax, edx
movzx eax, byte [eax]
test al, al
jne 0x40b145
mov edx, dword [esp + 0x418]
mov eax, dword [esp + 0x434]
add eax, edx
mov byte [eax], 0
mov eax, dword [esp + 0x414]
lea edx, [eax + 1]
mov dword [esp + 0x414], edx
cmp eax, dword [esp + 0x430]
jne 0x40b1d6
mov eax, 1
jmp 0x40b206
add dword [esp + 0x41c], 1
mov dword [esp + 0x418], 0
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x41c]
add eax, edx
movzx eax, byte [eax]
test al, al
jne 0x40b04e
mov eax, 0
add esp, 0x42c
ret

Function at 0x40b2ab
Capabilities:
Create thread

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.msvcrt.dll__beginthreadex
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x2c], 0
jne 0x40b2f4
mov eax, 0
jmp 0x40b308
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov eax, 1
add esp, 0x3c
ret
Function at 0x40b60e
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
sub esp, 0x6c
mov byte [esp + 0x14], 0x5f
mov byte [esp + 0x15], 0x42
mov byte [esp + 0x16], 0x71
mov byte [esp + 0x17], 0x77
mov byte [esp + 0x18], 0x48
mov byte [esp + 0x19], 0x61
mov byte [esp + 0x1a], 0x46
mov byte [esp + 0x1b], 0x38
mov byte [esp + 0x1c], 0x54
mov byte [esp + 0x1d], 0x6b
mov byte [esp + 0x1e], 0x4b
mov byte [esp + 0x1f], 0x44
mov byte [esp + 0x20], 0x4d
mov byte [esp + 0x21], 0x66
mov byte [esp + 0x22], 0x4f
mov byte [esp + 0x23], 0x7a
mov byte [esp + 0x24], 0x51
mov byte [esp + 0x25], 0x41
mov byte [esp + 0x26], 0x53
mov byte [esp + 0x27], 0x78
mov byte [esp + 0x28], 0x34
mov byte [esp + 0x29], 0x56
mov byte [esp + 0x2a], 0x75
mov byte [esp + 0x2b], 0x58
mov byte [esp + 0x2c], 0x64
mov byte [esp + 0x2d], 0x5a
mov byte [esp + 0x2e], 0x69
mov byte [esp + 0x2f], 0x62
mov byte [esp + 0x30], 0x55
mov byte [esp + 0x31], 0x49
mov byte [esp + 0x32], 0x65
mov byte [esp + 0x33], 0x79
mov byte [esp + 0x34], 0x6c
mov byte [esp + 0x35], 0x4a
mov byte [esp + 0x36], 0x57
mov byte [esp + 0x37], 0x68
mov byte [esp + 0x38], 0x6a
mov byte [esp + 0x39], 0x30
mov byte [esp + 0x3a], 0x6d
mov byte [esp + 0x3b], 0x35
mov byte [esp + 0x3c], 0x6f
mov byte [esp + 0x3d], 0x32
mov byte [esp + 0x3e], 0x45
mov byte [esp + 0x3f], 0x72
mov byte [esp + 0x40], 0x4c
mov byte [esp + 0x41], 0x74
mov byte [esp + 0x42], 0x36
mov byte [esp + 0x43], 0x76
mov byte [esp + 0x44], 0x47
mov byte [esp + 0x45], 0x52
mov byte [esp + 0x46], 0x4e
mov byte [esp + 0x47], 0x39
mov byte [esp + 0x48], 0x73
mov byte [esp + 0x49], 0x59
mov byte [esp + 0x4a], 0x31
mov byte [esp + 0x4b], 0x6e
mov byte [esp + 0x4c], 0x33
mov byte [esp + 0x4d], 0x50
mov byte [esp + 0x4e], 0x70
mov byte [esp + 0x4f], 0x63
mov byte [esp + 0x50], 0x37
mov byte [esp + 0x51], 0x67
mov byte [esp + 0x52], 0x2d
mov byte [esp + 0x53], 0x43
mov dword [esp + 0x54], 6
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x41ecd7
mov dword [esp + 4], 0x104
mov dword [esp], 0x424340
call fcn.00419fa8
mov dword [esp + 0x5c], 0
jmp 0x40b7df
mov dword [esp + 0x58], 0
jmp 0x40b7d3
mov eax, dword [esp + 0x5c]
add eax, 0x424340
movzx edx, byte [eax]
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x58]
add eax, ecx
movzx eax, byte [eax]
cmp dl, al
jne 0x40b7ce
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add eax, edx
and eax, 0x3f
movzx eax, byte [esp + eax + 0x14]
mov edx, dword [esp + 0x5c]
add edx, 0x424340
mov byte [edx], al
jmp 0x40b7da
add dword [esp + 0x58], 1
cmp dword [esp + 0x58], 0x3f
jbe 0x40b791
add dword [esp + 0x5c], 1
mov eax, dword [esp + 0x5c]
add eax, 0x424340
movzx eax, byte [eax]
test al, al
jne 0x40b787
mov eax, 0x424340
add esp, 0x6c
ret
Function at 0x40caf6
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x41e62c
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateMutexA
sub esp, 0xc
mov dword [0x41e7b0], eax
mov eax, dword [0x41e7b0]
test eax, eax
jne 0x40cb2d
mov eax, 1
jmp 0x40cb3a
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
setne al
add esp, 0x1c
ret
Function at 0x40da18
Capabilities:
Get graphical window text

Disassembly:
push edi
push esi
push ebx
sub esp, 0x550
call sub.USER32.dll_GetForegroundWindow
mov dword [esp + 0x54c], eax
mov eax, dword [0x424480]
cmp eax, dword [esp + 0x54c]
je 0x40db30
mov eax, dword [esp + 0x54c]
mov dword [0x424480], eax
lea eax, [esp + 0x538]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetLocalTime
sub esp, 4
mov eax, dword [0x424480]
mov dword [esp + 8], 0x100
lea edx, [esp + 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
test eax, eax
je 0x40db30
movzx eax, word [esp + 0x544]
movzx edi, ax
movzx eax, word [esp + 0x542]
movzx esi, ax
movzx eax, word [esp + 0x540]
movzx ebx, ax
movzx eax, word [esp + 0x538]
movzx ecx, ax
movzx eax, word [esp + 0x53a]
movzx edx, ax
movzx eax, word [esp + 0x53e]
movzx eax, ax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._r_n_r_n__s______.2d__.2d__d__.2d:_.2d:_.2d__r_n
mov dword [esp + 4], 0x400
lea eax, [esp + 0x138]
mov dword [esp], eax
call fcn.00419fa8
mov dword [esp + 0x548], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x548]
mov dword [esp + 4], eax
lea eax, [esp + 0x138]
mov dword [esp], eax
call fcn.0040d74c
nop
nop
add esp, 0x550
pop ebx
pop esi
pop edi
ret
Function at 0x4166e1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
sub esp, 0x138
mov eax, dword [esp + 0x14c]
cmp eax, dword [esp + 0x144]
je 0x416737
mov eax, dword [esp + 0x148]
cmp eax, dword [esp + 0x150]
jle 0x416712
mov eax, 0xffffffff
jmp 0x4168a5
mov eax, dword [esp + 0x148]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14c]
mov dword [esp], eax
call fcn.0041a5e1
mov eax, dword [esp + 0x140]
mov eax, dword [eax]
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x140]
mov eax, dword [eax + 4]
mov dword [esp + 0x124], eax
mov dword [esp + 0x12c], 0
jmp 0x416792
mov edx, dword [esp + 0x140]
mov eax, dword [esp + 0x12c]
add eax, edx
add eax, 8
movzx eax, byte [eax]
lea ecx, [esp + 0x1c]
mov edx, dword [esp + 0x12c]
add edx, ecx
mov byte [edx], al
add dword [esp + 0x12c], 1
cmp dword [esp + 0x12c], 0xff
jle 0x416765
mov dword [esp + 0x12c], 0
jmp 0x41688a
mov eax, dword [esp + 0x128]
add eax, 1
and eax, 0xff
mov dword [esp + 0x128], eax
lea edx, [esp + 0x1c]
mov eax, dword [esp + 0x128]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov dword [esp + 0x120], eax
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
add eax, edx
and eax, 0xff
mov dword [esp + 0x124], eax
lea edx, [esp + 0x1c]
mov eax, dword [esp + 0x124]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x1c]
mov edx, dword [esp + 0x128]
add edx, ecx
mov byte [edx], al
mov eax, dword [esp + 0x120]
lea ecx, [esp + 0x1c]
mov edx, dword [esp + 0x124]
add edx, ecx
mov byte [edx], al
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x14c]
add edx, eax
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 0x14c]
add eax, ecx
movzx ecx, byte [eax]
mov eax, dword [esp + 0x120]
mov ebx, eax
mov eax, dword [esp + 0x11c]
add eax, ebx
movzx eax, al
movzx eax, byte [esp + eax + 0x1c]
xor eax, ecx
mov byte [edx], al
add dword [esp + 0x12c], 1
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x148]
jl 0x4167af
mov eax, dword [esp + 0x148]
add esp, 0x138
pop ebx
ret

Function at 0x416ae2
Capabilities:
Set registry value

Disassembly:
sub esp, 0x4c
mov byte [esp + 0x3f], 0
mov dword [esp + 0x20], 0
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0x24
test eax, eax
jne 0x416b94
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
sete al
mov byte [esp + 0x3f], al
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
movzx eax, byte [esp + 0x3f]
add esp, 0x4c
ret
Function at 0x421a6b
Capabilities:
Terminate process

Disassembly:
call fcn.0042263f
push 0x69
pop ecx
call fcn.00422dd4
push eax
push 1
call fcn.004258b5
test byte [0x44d700], 0x80
pop ecx
pop ecx
jne 0x4398e1
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push ecx
push ecx
mov ecx, 0x406d40
call fcn.00441fde
pop ecx
pop ecx
jmp 0x421a8f

Function at 0x421cf0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
mov eax, dword [0x448054]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], ecx
and dword [ebp - 8], esi
push edi
mov edi, 0xc7
cmp eax, edi
jg 0x421d15
mov edi, eax
mov ecx, dword [ecx + 0x20]
push 0x5c
pop ebx
movzx edx, word [ecx + 2]
lea eax, [ecx + 4]
cmp edx, 0x3a
jne 0x43a144
cmp word [eax], bx
jne 0x43a144
mov esi, eax
test esi, esi
je 0x421d8d
add esi, 2
xor eax, eax
movzx ebx, word [esi]
mov word [esi], ax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x421d7b
imul eax, edi, 0x2dc6c0
cmp dword [ebp - 0x10], 0
ja 0x421d7b
jb 0x43a17b
cmp dword [ebp - 0x14], eax
jb 0x43a17b
mov dword [0x448054], edi
test esi, esi
je 0x421d88
mov word [esi], bx
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
jmp 0x421d4b
cmp word [ecx], bx
jne 0x421d8d
cmp dx, bx
jne 0x421d8d
push ebx
mov ebx, dword [sym.imp.VCRUNTIME140.dll_wcschr]
push eax
call ebx
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x421d8d
lea eax, [esi + 2]
push 0x5c
push eax
call ebx
pop ecx
pop ecx
jmp 0x421d34
push 0
push 0x2dc6c0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0042f950
mov edi, eax
jmp 0x421d7b

Function at 0x421dce
Capabilities:
Terminate process

Disassembly:
test byte [0x44d700], 0x80
push ebx
push esi
push edi
mov edi, ecx
jne 0x43a194
mov ebx, 0x44b92c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
call fcn.004273f0
mov esi, 0x448060
cmp word [esi + 8], 0x32
je 0x421e3b
cmp dword [esi + 0x10], 0
jne 0x421e30
add esi, 0x24
cmp esi, 0x4482e8
jl 0x421df8
mov eax, dword [0x44a0d8]
test eax, eax
je 0x421e22
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x421e05
mov edx, dword [esi]
mov ecx, esi
push 0
call fcn.00421e49
pop ecx
jmp 0x421dff
push ecx
push ecx
mov ecx, 0x406d40
call fcn.00441fde
pop ecx
pop ecx
jmp 0x421de0
Function at 0x42222d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x260]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4222b2
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4222b2
push 0x28
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x4222b2
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
push 0x401184
push esi
push 0x44c568
call fcn.0042ad58
add esp, 0x14
cmp eax, 0xffffffff
je 0x4222b2
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e014
leave
ret
xor al, al
jmp 0x4222a5
Function at 0x422c0b
Capabilities:
Resolve path using msvcrt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x44c1a4], 0
push edi
mov edi, ecx
je 0x422c29
call fcn.00427711
test eax, eax
je 0x422c29
pop edi
leave
ret
mov eax, dword [0x448df4]
xor edx, edx
push ebx
mov dword [ebp - 4], edx
xor ebx, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x422d84
imul eax, dword [ecx + 0x14], 0xc
inc ebx
cmp dword [eax + 0x41ef24], 0
jne 0x422c53
inc edx
mov dword [ebp - 4], edx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x422c41
test ebx, ebx
je 0x422d84
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 0x1080b
push eax
lea eax, [ebp - 0x10]
lea esi, [edi + 4]
push eax
mov ecx, esi
call fcn.0042b295
sub ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov ecx, esi
mov dword [ebp - 0xc], 0x1080c
call fcn.0042b295
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], 0x1080f
push 0x401328
cmp eax, dword [edi + 0xc]
jne 0x43a6bf
lea ecx, [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0042b166
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], 0x1080e
push 0x401320
cmp eax, dword [edi + 0xc]
jne 0x43a6cf
lea ecx, [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0042b166
test byte [0x44d700], 2
jne 0x43a6df
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], 0x1080a
push 0x448520
cmp eax, dword [edi + 0xc]
jne 0x43a714
lea ecx, [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0042af99
and dword [ebp - 0x10], 0
lea eax, [ebp - 0xc]
and dword [ebp - 0xc], 0
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__get_wpgmptr]
pop ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0042a5f8
mov edx, 0x401310
mov ecx, eax
call fcn.00428c7e
cmp dword [ebp - 0x10], 0
mov ebx, eax
pop ecx
mov dword [ebp - 8], 0x4012f8
je 0x422d55
mov ecx, ebx
call fcn.00423514
mov dword [ebp - 8], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], 0x1080d
cmp eax, dword [edi + 0xc]
je 0x43a724
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042b058
pop esi
test ebx, ebx
je 0x422d84
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop ebx
jmp 0x422c26
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0043ed3f
jmp 0x422cbb
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0043ed3f
jmp 0x422cdf
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], 0x10810
push 0x401fd0
cmp eax, dword [edi + 0xc]
je 0x43a703
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0043ed3f
jmp 0x422cec
lea ecx, [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0043eeba
jmp 0x422cec
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0043ed0a
jmp 0x422d10
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.0043ed95
jmp 0x422d77
Function at 0x422dd4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x44b958]
test ecx, ecx
je 0x422e27
mov eax, esi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x422e54
push eax
push dword [0x44b958]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x422e54
and esi, 0xf
je 0x422e1c
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
add eax, 2
sub esi, 1
jne 0x422e0e
cmp word [eax], 0
je 0x422e54
add eax, 2
pop esi
ret
cmp dword [0x44a0d4], 0
jne 0x43a739
xor eax, eax
push ecx
mov word [0x44a8f8], ax
call fcn.00422744
pop ecx
mov ecx, eax
mov dword [0x44b958], ecx
test ecx, ecx
jne 0x422de1
jmp 0x43a78c
mov eax, 0x401468
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43a75f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___doserrno]
mov eax, dword [eax]
test eax, eax
jne 0x43a75f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
test eax, eax
je 0x422e34
jle 0x43a769
movzx eax, ax
or eax, 0x80070000
cmp eax, 0x8007000e
je 0x43a77b
cmp eax, 0x80070008
jne 0x422e34
push 0x1c
mov edx, 0x401f94
push 2
pop ecx
call fcn.00425ab9
jmp 0x43a799
push 0x406df8
push 1
call fcn.004258b5
pop ecx
pop ecx
push 4
pop ecx
call fcn.00421dce
int3
Function at 0x4233ae
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [ebp - 0xc], ecx
xor edx, edx
push edi
mov dword [eax], edx
lea eax, [ebp - 8]
push eax
push ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebx], edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x42342e
push esi
mov ecx, edi
call fcn.00426640
mov esi, eax
push esi
push edi
push 0
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x423421
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0x401368
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x423421
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test esi, esi
je 0x42342d
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x425ab9
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], eax
cmp eax, 2
jne 0x425b89
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
pop ecx
mov ecx, eax
call fcn.004271c7
test eax, eax
jne 0x43b3f4
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push edi
push 0x401408
call esi
test eax, eax
jne 0x43b400
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
mov dword [ebp - 0x88], eax
call edi
mov esi, eax
mov ecx, esi
call fcn.00426640
mov ebx, eax
xor eax, eax
push eax
push eax
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x90]
push eax
push dword [ebp - 0x88]
call edi
cmp eax, 1
jl 0x425b9a
dec eax
push eax
push ebx
push dword [ebp - 0x8c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
add esp, 0xc
test ebx, ebx
je 0x425b7a
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e014
leave
ret
cmp eax, 1
je 0x425aea
call dword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x425b1e
push 0
call fcn.00422168
pop ecx
push ebx
call dword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__cputws]
jmp 0x425b79
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x401408
call esi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov edx, eax
mov eax, ebx
pop ecx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43b425
sub eax, esi
lea ecx, [ebp - 0x8c]
push edi
sar eax, 1
push ecx
add eax, eax
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x425b7a