joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427c80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x427d80
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040ae44
lea eax, [ebp - 4]
call fcn.0040afb8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b56c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x427d6a
mov eax, ebx
call fcn.00406e54
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x427d63
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b56c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x427d4d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x427d94
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x427d4d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427d6a
mov eax, dword [ebp - 0x10]
call fcn.00406e70
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427d87
lea eax, [ebp - 4]
call fcn.0040aa1c
ret

Function at 0x428c6c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040aef8
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fd64
mov edi, eax
cmp edi, 0x104
jbe 0x428c17
mov eax, edi
add eax, eax
call fcn.00406e54
mov esi, eax
jmp 0x428c19
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fd64
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x428c52
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x428c3c
mov eax, esp
cmp esi, eax
je 0x428c5f
mov eax, esi
call fcn.00406e70
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x428c98
cmp bl, 0
je 0x428c94
cmp bl, 0x41
jl 0x428c8f
cmp bl, 0x5a
jg 0x428c8f
or bl, 0x20
xor al, bl
inc esi
jmp 0x428c73
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x428bd8

Function at 0x4294f4
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040b610
add esp, 0x800
pop ebx
ret
Function at 0x4809e8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x4809f0
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4b8254
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b82f2
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4b82b6
cmp byte [ebx + 0x11], 0
jne 0x4b82b6
cmp byte [ebx + 0x24], 0
jne 0x4b82b6
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b82d7
lea edx, [ebp - 4]
mov eax, dword [0x51d234]
call fcn.0040fcd0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x490210]
call fcn.00426bec
call fcn.0040a0dc
jmp 0x4b82d7
lea edx, [ebp - 8]
mov eax, dword [0x51d234]
call fcn.0040fcd0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x490210]
call fcn.00426bec
call fcn.0040a0dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b82f9
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040aa7c
ret

Function at 0x4b8b0c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b8b5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004b80d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b8b73
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b8b7c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004b80d4
dec esi
jne 0x4b8b9e
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4d8860
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], edx
mov dword [esp], eax
mov edi, dword [ecx + 4]
mov edx, dword [ecx]
mov eax, edx
mov ebx, eax
xor esi, esi
add esi, 0x18
add ebx, esi
movzx eax, word [eax + 0x14]
add ebx, eax
movzx ebp, word [edx + 6]
dec ebp
test ebp, ebp
jl 0x4d8929
inc ebp
cmp dword [ebx + 0x10], 0
jne 0x4d88e5
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x38]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jle 0x4d88e0
push 4
push 0x1000
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [ebx + 0xc]
add eax, edi
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
jne 0x4d88cb
xor eax, eax
jmp 0x4d892b
mov esi, dword [ebx + 0xc]
add esi, edi
mov dword [ebx + 8], esi
mov edx, dword [esp + 8]
mov eax, esi
xor ecx, ecx
call fcn.00407b04
add ebx, 0x28
jmp 0x4d8922
push 4
push 0x1000
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
add eax, edi
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
jne 0x4d8905
xor eax, eax
jmp 0x4d892b
mov esi, dword [ebx + 0xc]
add esi, edi
mov eax, dword [ebx + 0x14]
add eax, dword [esp]
mov edx, dword [ebx + 0x10]
mov ecx, esi
xchg edx, ecx
call fcn.00406ff8
mov dword [ebx + 8], esi
add ebx, 0x28
dec ebp
jne 0x4d8892
mov al, 1
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d8a0c
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov esi, eax
lea ebp, [esp + 0x10]
mov eax, dword [esi]
mov ebx, eax
xor edx, edx
add edx, 0x18
add ebx, edx
movzx eax, word [eax + 0x14]
add ebx, eax
xor eax, eax
mov dword [esp], eax
mov edi, dword [ebx + 8]
or edi, dword [esp]
mov dword [ebp], edi
mov edx, dword [esi + 0x14]
mov eax, edi
call fcn.004d8858
mov dword [ebp + 4], eax
mov edx, ebx
mov eax, esi
call fcn.004d8934
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp + 0xc], eax
mov byte [ebp + 0x10], 0
add ebx, 0x28
mov eax, dword [esi]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jle 0x4d8b0c
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
or eax, dword [esp]
mov dword [esp + 4], eax
mov edx, dword [esi + 0x14]
mov eax, dword [ebp]
call fcn.004d8858
mov edi, eax
mov edx, ebx
mov eax, esi
call fcn.004d8934
mov dword [esp + 8], eax
cmp edi, dword [ebp + 4]
je 0x4d8aa4
mov eax, dword [ebp]
add eax, dword [ebp + 8]
cmp eax, edi
jbe 0x4d8ad7
mov eax, dword [ebx + 0x24]
test eax, 0x2000000
je 0x4d8ab4
test byte [ebp + 0xf], 2
jne 0x4d8ac1
or eax, dword [ebp + 0xc]
and eax, 0xfdffffff
mov dword [ebp + 0xc], eax
jmp 0x4d8ac4
or dword [ebp + 0xc], eax
mov eax, dword [esp + 4]
add eax, dword [esp + 8]
sub eax, dword [ebp]
mov dword [ebp + 8], eax
add ebx, 0x28
jmp 0x4d8b02
mov edx, ebp
mov eax, esi
call fcn.004d895c
test al, al
jne 0x4d8ae8
xor eax, eax
jmp 0x4d8b23
mov eax, dword [esp + 4]
mov dword [ebp], eax
mov dword [ebp + 4], edi
mov eax, dword [esp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp + 0xc], eax
add ebx, 0x28
dec dword [esp + 0xc]
jne 0x4d8a71
mov byte [ebp + 0x10], 1
mov edx, ebp
mov eax, esi
call fcn.004d895c
test al, al
jne 0x4d8b21
xor eax, eax
jmp 0x4d8b23
mov al, 1
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e25a8
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x503414
test edx, edx
jne 0x4e25c7
xor eax, eax
jmp 0x4e26e5
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4e25e4
push esi
push edx
push eax
call fcn.004e26ec
add esp, 0xc
jmp 0x4e26e5
push esi
push edx
push eax
call fcn.004e29ac
add esp, 0xc
jmp 0x4e26e5
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4e63ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
xor ebx, ebx
test eax, eax
jle 0x4e6426
mov ebx, eax
cmp byte [ebp + 0x10], 0
je 0x4e6415
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
xchg ecx, eax
call fcn.00406ff8
jmp 0x4e6426
push 0
lea edx, [ebp - 8]
push edx
push eax
push ecx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 0x10

Function at 0x4e7550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x4e7576
dec ecx
mov ebx, eax
shr ebx, 0x1e
and ebx, 3
add eax, eax
add eax, eax
or ebx, eax
mov eax, ebx
movsx ebx, byte [edx]
xor eax, ebx
inc edx
test ecx, ecx
jne 0x4e755b
pop ebx
pop ebp
ret 4

Function at 0x4e7dec
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, 0x20
call fcn.004210dc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4e7f59
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 8], 0xffffffff
jne 0x4e7e3b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4e7f74
call fcn.004e65a8
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 8], ebx
cmp ebx, 0xffffffff
jne 0x4e7e6f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4e7fa8
call fcn.004e65a8
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4e7e94
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4e8010
call fcn.004e65a8
xor edx, edx
push ebp
push 0x4e7f18
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00406e54
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00421370
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e7ee8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4e8040
call fcn.004e65a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x4e7f0e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4e8080
call fcn.004e65a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e7f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7f60
cmp dword [ebp - 8], 0xffffffff
je 0x4e7f58
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4e9250
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
test ecx, ecx
je 0x4e9272
dec ecx
mov ebx, eax
shr ebx, 0x1e
and ebx, 3
add eax, eax
add eax, eax
or ebx, eax
mov eax, ebx
movsx ebx, byte [edx]
xor eax, ebx
inc edx
test ecx, ecx
jne 0x4e9257
pop ebx
ret

Function at 0x4ea5bc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4ea5c4
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ea81c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x51cf40], 0
je 0x4ea7f4
cmp ebx, 1
jle 0x4ea7f4
push ebx
mov eax, 0x523e98
mov ecx, 1
mov edx, dword [0x4ea56c]
call fcn.0040ce08
add esp, 4
push ebx
mov eax, 0x523ea0
mov ecx, 1
mov edx, dword [0x4ea594]
call fcn.0040ce08
add esp, 4
mov eax, dword [0x523ea0]
test eax, eax
je 0x4ea632
sub eax, 4
mov eax, dword [eax]
dec eax
test eax, eax
jle 0x4ea7f4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 1
mov eax, dword [0x523ea0]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov dword [eax + edx*4], ecx
xor eax, eax
push ebp
push 0x4ea70a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.004071b4
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.004219c8
lea eax, [ebp - 0x24]
mov edx, 0x4ea834
call fcn.0040b768
mov eax, dword [ebp - 0x24]
call fcn.0040b56c
mov ebx, eax
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.004071b4
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004219c8
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov ecx, 0x4ea85c
call fcn.0040b7c0
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x1c]
call fcn.0042096c
push 0
push dword [ebp - 8]
push dword [ebp - 4]
push 0x4ea87c
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040b848
mov eax, dword [ebp - 0x34]
call fcn.0040b56c
push eax
push ebx
call sub.kernel32.dll_CopyFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea711
lea eax, [ebp - 8]
call fcn.0040aa1c
lea eax, [ebp - 4]
call fcn.0040aa1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea823
lea eax, [ebp - 0x40]
mov edx, 8
call fcn.0040aa7c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040aa7c
ret
Function at 0x402abf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x401414
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402b20
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402b1b
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402b1b
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402b17
sub eax, 1
jne 0x402b1b
mov ecx, esi
call fcn.004029ca
test eax, eax
jne 0x402b20
xor eax, eax
jmp 0x402b20
mov eax, 0x3f7
pop esi
leave
ret 8

Function at 0x402cd3
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x403500
call fcn.00403278
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043c0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d18
cmp eax, esi
jne 0x402d0b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d1b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402cef
xor esi, esi
inc esi
cmp dword [0x4043c4], esi
jne 0x402d2d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402d67
cmp dword [0x4043c4], ebx
jne 0x402d61
mov dword [0x4043c4], esi
push 0x4011a8
push 0x40119c
call fcn.00402e4c
pop ecx
pop ecx
test eax, eax
je 0x402d67
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402e3c
mov dword [0x404034], esi
cmp dword [0x4043c4], esi
jne 0x402d8a
push 0x401198
push 0x40118c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043c4], 2
test edi, edi
jne 0x402d97
xor eax, eax
mov ecx, 0x4043c0
xchg dword [ecx], eax
cmp dword [0x4043c8], 0
je 0x402dc3
push 0x4043c8
call fcn.004030d0
pop ecx
test eax, eax
je 0x402dc3
push ebx
push 2
push ebx
mov esi, dword [0x4043c8]
mov ecx, esi
call dword [0x405168]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401ae1
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402e21
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402e35
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0052c000
jmp 0x402cd3
Function at 0x401240
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x14
push ebx
push esi
push edi
test edx, edx
je 0x40131a
cmp byte [edx], 0
je 0x40131a
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x14], 0
or eax, 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x401273
mov dword [ebx], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40127c
mov dword [ecx], eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40129b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40131d
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x401290
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4012f0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0x40920c
xor esi, esi
push edi
mov dword [ebp + 8], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4012f9
cmp dword [ebp + 8], esi
je 0x4012f9
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jmp 0x4012f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x401309
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401315
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
jmp 0x40131d
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401322
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4013b7
cmp byte [esi], 0
je 0x4013b7
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00401e70
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x34], 0
and dword [ebp + 8], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
xor esi, esi
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], 3
inc esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4013b2
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4013a5
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
jne 0x401387
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
jmp 0x4013ba
push 0xd
pop eax
pop esi
leave
ret
Function at 0x4013bd
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
push edi
cmp edx, ebx
je 0x40148f
cmp byte [edx], bl
je 0x40148f
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x40148f
cmp byte [eax], bl
je 0x40148f
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x40148f
cmp byte [ecx], bl
je 0x40148f
push edx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x401418
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401492
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x401410
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x401410
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401410
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp + 0xc], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x401410
push ebx
push dword [ebp + 0x14]
call fcn.00401f69
neg eax
pop ecx
sbb eax, eax
pop ecx
and eax, 2
jmp 0x401492
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401582
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00401e70
add esp, 0xc
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4015cf
cmp byte [ebp - 0x108], bl
jne 0x4015e8
push str.C:WindowsSystem32
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00401f81
add esp, 0xc
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.00401e70
lea eax, [ebp - 0x108]
push eax
push str._smsi.dll
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00401497
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
jne 0x40162e
xor eax, eax
inc eax
jmp 0x40166c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00401240
add esp, 0xc
test eax, eax
jne 0x401629
mov eax, dword [ebp - 0x210]
movzx ecx, word [ebp - 0x210]
shr eax, 0x10
imul eax, eax, 0x64
add eax, ecx
cmp eax, dword [ebp + 8]
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004023f9
leave
ret