joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402360
Capabilities:
Access the windows event log

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411c4d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x41a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0x415170
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x40], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push str.Description:_A_.NET_application_failed._n
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00404e00
push 0x41516c
push esi
push str.Application:
lea ecx, [ebp - 0x2c]
call fcn.00404e00
mov ecx, eax
call fcn.00404e00
mov ecx, eax
call fcn.00404e00
push 0x41516c
push edi
push str.Path:
lea ecx, [ebp - 0x2c]
call fcn.00404e00
mov ecx, eax
call fcn.00404e00
mov ecx, eax
call fcn.00404e00
push str.Message:
lea ecx, [ebp - 0x2c]
call fcn.00404e00
cmp dword [0x41a548], 7
mov esi, eax
mov edi, dword [0x41a544]
mov ecx, 0x41a534
cmova ecx, dword [0x41a534]
mov dword [ebp - 0x38], ecx
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
sub eax, edx
mov dword [ebp - 0x30], edx
cmp edi, eax
ja 0x402492
cmp dword [esi + 0x14], 7
lea eax, [edi + edx]
mov dword [esi + 0x10], eax
mov ecx, esi
mov dword [ebp - 0x34], esi
jbe 0x40246f
mov ecx, dword [esi]
mov dword [ebp - 0x34], ecx
lea eax, [edi + edi]
push eax
push dword [ebp - 0x38]
lea eax, [ecx + edx*2]
push eax
call fcn.0040fbd0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
add eax, edi
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4024a5
push edi
push ecx
mov byte [ebp - 0x30], 0
mov ecx, esi
push dword [ebp - 0x30]
push edi
call fcn.00405bd0
mov esi, eax
push 0x41516c
mov ecx, esi
call fcn.00404e00
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
cmova eax, dword [ebp - 0x2c]
push 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 1
push 0
push 0x3ff
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x402521
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402517
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402517
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e783
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e775
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4054d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411edd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x41a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 4]
mov dword [ecx], 0x414e90
lea ebx, [ecx + 0x24]
mov dword [ebp - 0x14], eax
lea edi, [ecx + 0x28]
mov dword [eax], 0
push 8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.0040e791
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040e0a4
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
mov dword [eax + 0x34], esi
lea esi, [eax + 4]
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [ebp - 4], 1
mov eax, 0x41a534
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0x414e54
cmp dword [0x41a548], 7
mov edi, dword [0x41a544]
cmova eax, dword [0x41a534]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp edi, 0x7fffffff
ja 0x40566d
test edi, edi
je 0x405651
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.004058f0
lea ecx, [edi + edi]
mov esi, eax
push ecx
push dword [ebp - 0x18]
push esi
call fcn.0040fbd0
mov eax, dword [ebx + 0xc]
lea ecx, [esi + edi*2]
mov dword [ebx + 0x38], ecx
add esp, 0xc
mov dword [eax], esi
mov eax, dword [ebx + 0x1c]
mov dword [eax], esi
mov eax, dword [ebx + 0x2c]
mov dword [eax], edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x38]
sub ecx, esi
sar ecx, 1
mov dword [eax], esi
mov eax, dword [ebx + 0x20]
mov dword [eax], esi
mov eax, dword [ebx + 0x30]
mov dword [eax], ecx
mov eax, 1
jmp 0x405654
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0040de8d
int3
Function at 0x405680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411f18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x41a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ecx + eax], 0x414e44
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ecx - 4], eax
mov eax, dword [ecx]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, ecx
mov ecx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.004021e0
push 8
call fcn.0040e791
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.0040e0a4
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov ebx, dword [esi + 4]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4131fc]
mov ecx, ebx
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 3
push eax
call fcn.00405fc0
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x4131fc]
mov ecx, edi
call esi
movzx eax, ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4131fc]
mov ecx, ebx
call esi
mov edi, eax
test edi, edi
je 0x4057ce
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4131fc]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp dword [ecx + 0x38], 0
mov word [ecx + 0x40], ax
jne 0x4057ec
mov eax, dword [ecx + 0xc]
push 0
or eax, 4
push eax
call fcn.004021e0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x10]
lea edx, [esi + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 4]
mov dword [edx + eax], 0x414e50
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x414e4c
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406e70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412125
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x41a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00406950
lea ecx, [ebp - 0x1c]
lea esi, [eax + 1]
push esi
call fcn.00407100
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x1c]
mov edx, esi
push eax
push ecx
push dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.00406910
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x10], 0x41b050
xor esi, esi
mov eax, 1
mov ebx, 0x41b050
xchg dword [ebx], eax
test eax, eax
je 0x406f0a
nop
mov eax, esi
inc esi
test eax, 0x3ff
jne 0x406eff
call sub.KERNEL32.dll_SwitchToThread
mov eax, 1
xchg dword [ebx], eax
test eax, eax
jne 0x406ef0
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov esi, dword [ebx + 4]
test esi, esi
jne 0x406f4c
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 0xc
push eax
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
jmp 0x406f5a
push edi
mov ecx, esi
call dword [0x4131fc]
call esi
add esp, 4
cmp dword [0x41b04c], 0
je 0x406f9c
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, dword [0x41b054]
add esp, 4
cmp esi, eax
jne 0x406f81
cmp dword [ebx + 4], 0
je 0x406f9c
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004068e0
push esi
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 0x10
nop
mov dword [0x41b050], 0
test edi, edi
je 0x406fdd
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x406fd3
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406fd3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.0040e783
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, esi
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 7
jbe 0x40b14c
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b18a
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0040ea48
add esp, 4
mov ebx, eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40b1bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x40b1b2
test eax, eax
jle 0x40b1a3
movzx eax, ax
or eax, 0x80070000
push eax
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.00406ff0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov ecx, esi
call fcn.004080a0
push ebx
call fcn.0040ea43
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f2d2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40f311
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f311
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f311
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40f311
cmp dword [ecx + 0x74], 0xe
jbe 0x40f311
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x411a60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411a8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411a8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4116d9
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
call dword [0x44c0f8]
mov esi, eax
test esi, esi
jne 0x41172d
call dword [0x44c0f4]
mov edi, eax
test edi, edi
jle 0x411704
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x41170b
mov edi, 0x80004005
push edi
push 0x140
push 0x44ff44
call fcn.00409cba
push 0x450360
push edi
call 0x446f1d
pop ecx
pop ecx
jmp 0x41187a
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x411756
mov esi, 0x8007000d
push esi
push 0x14a
push 0x44ff44
mov edi, esi
call fcn.00409cba
push 0x44ffe4
push esi
jmp 0x411721
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
je 0x411780
mov esi, 0x8007000d
push esi
push 0x155
push 0x44ff44
mov edi, esi
call fcn.00409cba
push 0x450054
jmp 0x411753
movzx eax, word [ecx + esi + 0x14]
push ebx
add eax, ecx
lea ebx, [esi + 0x18]
push 8
add ebx, eax
push 0x450178
push ebx
call fcn.00436056
add esp, 0xc
test eax, eax
je 0x4117c5
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x4117ec
add ebx, 0x28
inc eax
cmp dword [ebx], 0x7869772e
jne 0x4117ac
cmp dword [ebx + 4], 0x6e727562
jne 0x4117ac
cmp dword [ebx + 0x10], 0x34
jae 0x41180a
mov esi, 0x8007000d
push esi
push 0x17a
push 0x44ff44
mov edi, esi
call fcn.00409cba
push dword [ebx + 0x10]
push 0x4501a4
jmp 0x411834
mov esi, 0x8007000d
push esi
push 0x16e
push 0x44ff44
mov edi, esi
call fcn.00409cba
push 0x450184
jmp 0x411871
mov ebx, dword [ebx + 0xc]
add ebx, esi
cmp dword [ebx + 4], 2
je 0x41183f
mov esi, 0x8007000d
push esi
push 0x184
push 0x44ff44
mov edi, esi
call fcn.00409cba
push dword [ebx + 4]
push 0x450248
push esi
call 0x446f1d
add esp, 0xc
jmp 0x411879
mov edx, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4 + 8]
jne 0x411855
inc ecx
cmp ecx, 4
jne 0x411844
jmp 0x411879
mov esi, 0x8007000d
push esi
push 0x18a
push 0x44ff44
mov edi, esi
call fcn.00409cba
push 0x450388
push esi
call 0x446f1d
pop ecx
pop ecx
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x100cce9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100cd42
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100cd34
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x100cd30
cmp esi, eax
jae 0x100cd34
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100cd22
cmp esi, eax
jb 0x100cd38
xor eax, eax
jmp 0x100cd41
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x100d194
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x100d1af
push 0x80004005
call fcn.0100cb44
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x100d1b1
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100db56
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10bbf70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.0100d0f2
mov edi, eax
cmp edi, esi
je 0x100dbc8
lea ecx, [ebp - 0x214]
call fcn.0100d07f
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101def4
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100dbe6
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0100db56
cmp eax, esi
jne 0x100dc31
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x100dbd0
lea ecx, [ebp - 0x214]
call fcn.0100d07f
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.0100cff9
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0100d07f
mov eax, esi
jmp 0x100dbb8
Function at 0x1011040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10b17b9
call fcn.0101dff9
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x1011099
call fcn.0100ce00
mov esi, eax
jmp 0x10111a2
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x10110b2
call fcn.0100ce00
jmp 0x1011194
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x10110a8
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x1011118
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10110fe
lea ecx, [ebp - 0x418]
call fcn.0100d8f8
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0100d83b
mov eax, esi
call fcn.0101e064
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0100f56f
mov dword [ebp - 4], 1
jmp 0x1011146
cmp dword [ebp - 0x418], esi
jne 0x1011155
mov esi, 0x8007000e
jmp 0x1011196
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x10110a8
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.01010be0
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1011103
lea ecx, [ebp - 0x418]
call fcn.0100d8f8
jmp 0x1011103

Function at 0x101d423
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10bbf70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0101d364
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x101d496
cmp dword [ebp - 0x94], 5
jb 0x101d4b7
jmp 0x101d4b3
cmp dword [ebp - 0x88], 1
jne 0x101d4b7
cmp dword [ebp - 0x94], 4
ja 0x101d4b3
jne 0x101d4b7
cmp dword [ebp - 0x90], 0
jbe 0x101d4b7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10037c0
call fcn.0100cc99
test eax, eax
jge 0x101d4d8
mov byte [0x10c5570], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101def4
leave
ret
Function at 0x101d9f8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10c5778], 0
push esi
jne 0x101d966
call fcn.0101d85d
test eax, eax
je 0x101d9a9
mov eax, dword [0x10c5778]
cmp eax, 1
jne 0x101d987
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x101d9a9
pop esi
ret
push eax
call dword [0x10c5780]
test eax, eax
jne 0x101d9f1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x101d9ad
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10c5778]
call dword [0x10c5780]
mov edi, eax
test edi, edi
je 0x101d9d2
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x101d9ee
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10c5778]
call dword [0x10c577c]
add edi, 0x10
cmp edi, esi
jb 0x101d9da
mov eax, edi
pop edi
pop esi
ret
jmp 0x101d953
Function at 0x101dd0b
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10b5668
call fcn.0101de6c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10c643c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x101dac6
cmp eax, esi
jne 0x101dab9
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x101dac9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101daa0
xor esi, esi
inc esi
mov eax, dword [0x10c6438]
cmp eax, esi
jne 0x101dadc
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101db0b
mov eax, dword [0x10c6438]
test eax, eax
jne 0x101db05
mov dword [0x10c6438], esi
push 0x10017e0
push 0x10017d4
call fcn.0101da02
pop ecx
pop ecx
test eax, eax
je 0x101db0b
jmp 0x101dc2f
mov dword [0x10c57a4], esi
mov eax, dword [0x10c6438]
cmp eax, esi
jne 0x101db2f
push 0x10017d0
push 0x1001798
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10c6438], 2
cmp dword [ebp - 0x20], ebx
jne 0x101db3c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10c6448], ebx
je 0x101db5d
push 0x10c6448
call fcn.0101e3c9
pop ecx
test eax, eax
je 0x101db5d
push ebx
push 2
push ebx
call dword [0x10c6448]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x101dc2f
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x101dbc7
cmp cx, bx
je 0x101db82
cmp dword [ebp - 0x1c], ebx
jne 0x101dbc7
movzx ecx, word [eax]
cmp cx, bx
je 0x101db97
cmp cx, 0x20
ja 0x101db97
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x101db82
test byte [ebp - 0x40], 1
je 0x101dba3
movzx ecx, word [ebp - 0x3c]
jmp 0x101dba6
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10c57a0], eax
cmp dword [0x10c5794], ebx
jne 0x101dc0c
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x101dbd8
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x101db6c
cmp dword [0x10c57a4], ebx
jne 0x101dc1a
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10c57a0]
jmp 0x101dc3b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0101deb1
ret
call fcn.0101e50e
jmp 0x101da63