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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.101455ba
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x1019ac28], 0xda3
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x1019ac2c], 0xffffecc6
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x10145495
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
jmp 0x10145415
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov edx, dword [ebp - 0x34]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
jb 0x10145415
jmp 0x10145495
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x1014545a
jmp 0x10145431
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
jmp 0x101453ea
mov al, byte [ebp - 0x41]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x40]
add edx, 1
mov ah, byte [ebp - 0x42]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x38], edx
jne 0x101453ea
mov al, byte [ebp - 0x42]
test al, 1
jne 0x10145466
jmp 0x101453c1
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x1019ac28], 0x47ea
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x1019ac2c], 0x114b
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10145744
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1019ac30], 0
mov dword [0x1019ac34], 0
mov dword [0x1019ac40], 0
mov dword [0x1019ac28], 0x2bc
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x101457ab
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add edx, 1
mov edi, eax
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x1019ac30], edx
mov dword [0x1019ac28], 0x97e
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1019ac34], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x1019ac38], cl
mov ebx, dword [0x1019ac2c]
add ebx, 0xfffff27d
mov dword [0x1019ac28], ebx
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1019ac38]
mov edx, dword [0x1019ac34]
mov byte [ebx + edx], cl
mov edx, dword [0x1019ac30]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1019ac34]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1019ac40], ecx
mov dword [0x1019ac28], 0x2e2
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
xor cl, byte [edx + esi]
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov dword [0x1019ac28], 0x130b
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x34], edi
je 0x101457a3
mov eax, dword [0x1019ac34]
mov ecx, dword [0x1019ac30]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x101457ab
Function at 0x101458a1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x1019ac28], 0x1b4a
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1014505f
lea ecx, [0x10144483]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x7c], 0x137800
mov dword [0x1019ac2c], 0x894
mov edx, dword [0x1019ac14]
mov dword [esp + 0x80], edx
mov edx, dword [0x1019ac18]
mov dword [esp + 0x60], edx
mov edx, dword [0x1019ac1c]
mov dword [esp + 0x44], edx
mov edx, dword [0x1019ac20]
mov dword [esp + 0x4c], edx
mov edx, dword [0x1019ac24]
mov dword [esp + 0x48], edx
mov dword [0x1019ac28], 0x1e0a
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10145955
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10145969
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10145932
mov eax, dword [esp + 0x10]
mov dword [esp + 0x64], eax
mov dword [0x1019ac2c], 0xe2d
mov dword [0x1019ac28], 0xf67
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x3c], edx
call fcn.10144d75
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x101459d7
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10144906
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x1019ac2c], 0x5b1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x402690
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x5ceb30]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x5d8470], 0
je 0x4026be
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.00526794
add esp, 4
test eax, eax
je 0x4026dc
push 0
mov ecx, eax
call fcn.004024d0
mov dword [0x5d8470], eax
jmp 0x4026e6
mov dword [0x5d8470], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.004038e0
mov ecx, dword [0x5d8470]
lea eax, [esp + 4]
push eax
call fcn.004036c0
cmp dword [esp + 0x18], 8
jb 0x402719
push dword [esp + 4]
call fcn.0052199f
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret

Function at 0x4036c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x5ceb30]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
xor ecx, ecx
mov dword [esp + 0x20], 7
mov word [esp + 0xc], cx
lea ecx, [esp + 0xc]
push ecx
push 3
push eax
mov dword [esp + 0x28], 0
call fcn.004100f0
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x403748
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.004027a0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x40375b
push dword [esp + 0xc]
call fcn.0052199f
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 4
Function at 0x409e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x409e0e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x409e2e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409e42
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x409e50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5ceb30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x409f56
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.004038e0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x230]
call fcn.00407a20
mov ecx, eax
call fcn.004082e0
cmp esi, eax
je 0x409ec6
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404320
cmp dword [ebp - 0x234], 8
jb 0x409edd
push dword [ebp - 0x248]
call fcn.0052199f
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x409f11
push dword [ebp - 0x230]
call fcn.0052199f
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x409f45
push dword [ebp - 0x260]
call fcn.0052199f
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
Function at 0x409f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x5ceb30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x409fe1
cmp word [ebp - 0x210], 0
je 0x409fe1
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.004038e0
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.00407a20
cmp dword [ebp - 0x214], 8
jb 0x40a0e0
push dword [ebp - 0x228]
jmp 0x40a0d8
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.00409e50
test al, al
je 0x40a036
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x240]
push eax
call fcn.00404320
jmp 0x40a0c9
push 0x5c9870
lea ecx, [ebp - 0x228]
call fcn.004038e0
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00404320
push 1
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
mov ecx, esi
call fcn.00404440
cmp eax, 0xffffffff
je 0x40a095
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00404f80
cmp dword [ebp - 0x214], 8
jb 0x40a0ac
push dword [ebp - 0x228]
call fcn.0052199f
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp dword [ebp - 0x22c], 8
jb 0x40a0e0
push dword [ebp - 0x240]
call fcn.0052199f
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
Function at 0x40a100
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5ceb30]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x40a12d
mov ebx, dword [edi]
jmp 0x40a12f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a171
test al, 0x10
je 0x40a153
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40a15d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00407e00
cmp dword [edi + 0x14], 8
jb 0x40a187
mov eax, dword [edi]
jmp 0x40a189
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.00405030
test eax, eax
jne 0x40a1ae
test esi, esi
je 0x40a1f8
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x40a1fe
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.0040a100
test al, al
jne 0x40a1c1
xor bl, bl
jmp 0x40a1fe
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a1fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x40a1eb
push edi
call fcn.00409e20
add esp, 4
test al, al
jne 0x40a1fc
test esi, esi
je 0x40a1f8
mov ecx, ebx
call fcn.004131f0
mov dword [esi], eax
xor bl, bl
jmp 0x40a1fe
mov bl, 1
cmp dword [esp + 0x28], 8
jb 0x40a211
push dword [esp + 0x14]
call fcn.0052199f
add esp, 4
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret

Function at 0x40a230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x5ceb30]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40a329
cmp eax, 0x104
ja 0x40a329
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.004038e0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x258]
call fcn.00407a20
mov ecx, eax
call fcn.004082e0
cmp esi, eax
je 0x40a2b6
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404320
cmp dword [ebp - 0x214], 8
jb 0x40a2cd
push dword [ebp - 0x228]
call fcn.0052199f
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
jb 0x40a301
push dword [ebp - 0x258]
call fcn.0052199f
add esp, 4
cmp dword [ebp - 0x22c], 8
jb 0x40a318
push dword [ebp - 0x240]
call fcn.0052199f
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
Function at 0x40d410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
lea eax, [esp + 8]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 8], 4
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 4
push eax
push 0
push dword [ebp + 8]
mov dword [esp + 0x20], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x40d486
mov ecx, dword [esp + 4]
cmp ecx, 4
je 0x40d469
cmp ecx, 3
jne 0x40d481
cmp dword [esp + 8], 4
jne 0x40d481
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, edx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov esp, ebp
pop ebp
ret 8

Function at 0x40d490
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.00527f50
mov eax, dword [0x5ceb30]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40d5d7
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x40d564
cmp word [esp + 0x10], ax
jne 0x40d528
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00404d70
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d530
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00404d70
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x40d5d2
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x40d5b7
cmp eax, 0x400
ja 0x40d5b7
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.004088c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 8
Function at 0x40da50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x40da62
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x40da79
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push ebx
call fcn.00528cb7
mov esi, eax
add esp, 8
test esi, esi
je 0x40daf2
push esi
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40dae9
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0x5c98e0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40dae9
cmp dword [ebp - 4], 0
je 0x40dae9
push 0x14
call fcn.00526794
add esp, 4
test eax, eax
je 0x40daf2
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.0040d8e0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00526925
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e430
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5ceb30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xc]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xc]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push 0x5c9aec
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00528cf7
add esp, 0x1c
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e504
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x40e51e
cmp esi, 8
jb 0x40e4a0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x40e548
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.00404d70
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e550
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00404d70
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 8
Function at 0x40f6f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push esi
push dword [ebp + 8]
mov dword [esp + 0x10], 0
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40f721
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x40f746
cmp byte [ebp + 0x10], 0
je 0x40f746
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x5ceb30]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.0040d0e0
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00409860
mov eax, dword [0x5d8528]
test eax, eax
je 0x411b29
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x411c6e
cmp dword [ebx], 2
jl 0x411b69
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.00528ab1
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.0052a293
call fcn.00528ab1
add eax, 0x40
push eax
call fcn.00529ffd
add esp, 0x14
lea esi, [ebx + 0xc]
lea edi, [ebx + 8]
call fcn.00411820
cmp dword [0x5d850c], 0
jne 0x411b87
push 0xffffffffffffffff
push dword [0x5d851c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x411b93
push dword [0x5d8508]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00411950
test al, al
je 0x411bd4
push 2
push 0
push 0
push dword [0x5d8518]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x5d8518]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x5d850c], 0
jne 0x411beb
push dword [0x5d851c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x411bf7
push dword [0x5d8508]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x411c6e
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x411c2b
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00526fb0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.004153f0
add esp, 4
cmp dword [0x5d8524], 0
je 0x411cbb
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00409860
lea eax, [esp + 0x28]
push eax
call dword [0x5d8524]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x411c6e
push dword [esp + 0x28]
call fcn.0052199f
add esp, 4
cmp dword [esp + 0x24], 0x10
jb 0x411c81
push dword [esp + 0x10]
call fcn.0052199f
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00408b90
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.005261d6
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret
call fcn.0040ecf0
int3