joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e8f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x808
lea eax, [esp + 0x10c]
push ebx
push esi
push edi
push 0x104
push eax
call dword [0x1001b294]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x100221fc
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [0x1001b160]
lea edx, [esp + 0x14]
push edx
call dword [0x1001b12c]
lea ebx, [esp + eax + 0x14]
mov eax, dword [0x100222e0]
or ecx, 0xffffffff
push ebx
lea edi, [eax + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10008da0
mov edi, 0x10023678
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 4
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x28]
push 2
rep movsb byte es:[edi], byte [esi]
push eax
call dword [0x1001b1e0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000ea91
mov esi, dword [0x100222e0]
mov ecx, 0x17e
lea edi, [esp + 0x21c]
push 0
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x220]
call dword [0x1001b354]
push eax
call dword [0x1001b358]
mov edi, dword [0x1001b360]
add esp, 8
call edi
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [0x1001b960]
call fcn.10019a30
test al, al
je 0x1000ea01
mov ecx, 0x5f8
mov dl, byte [esi]
xor dl, al
mov byte [esi], dl
inc esi
dec ecx
jne 0x1000ea1f
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x224]
push 0x5f8
push edx
push ebx
call dword [0x1001b1dc]
push ebx
call dword [0x1001b158]
mov edi, 0x10023668
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
call fcn.1000f470
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x808
ret

Function at 0x1000eff0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push 0x10023630
push 0x80000002
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0x10023628
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0xc]
add esp, 0x10
ret
Function at 0x1000f050
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10019e80
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
jge 0x1000f089
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 8], ebx
lea eax, [esp + 8]
mov dword [esp + 0x2c], ebx
push eax
push 0x1001ef10
push 1
push ebx
push 0x1001efa0
call dword [0x1001b604]
cmp eax, ebx
je 0x1000f0d8
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x1000f122
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 8]
lea ecx, [esp + 0x34]
push ebx
push ecx
mov edx, dword [eax]
push 0x1001ef90
push eax
mov byte [esp + 0x3c], 1
call dword [edx + 0xc]
cmp eax, ebx
je 0x1000f137
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2c], bl
cmp eax, ebx
je 0x1000f10c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x1000f122
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x34]
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x1000f1f6
push ebp
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push 0x1001b9d8
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x1000f1cc
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push ebx
mov word [esp + 0x20], 8
mov ecx, dword [eax]
push edx
push 0x10022c64
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x1000f1c2
cmp esi, edi
jne 0x1000f1b7
mov eax, dword [esp + 0x14]
push ebp
push 0x1001ef00
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov edx, dword [esp + 0x24]
push edx
call dword [0x1001b3dc]
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x1000f167
pop ebp
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], bl
cmp eax, ebx
pop esi
je 0x1000f209
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x1000f21f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x1000fa80
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x400
push esi
push edi
push 0
push 0
push 0x10023368
push 1
push 0x10023354
push 0x1002331c
push 0x80000002
call fcn.1000c320
mov ecx, 0xc
mov esi, 0x100232e8
lea edi, [esp + 0x24]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xf3
lea edi, [esp + 0x55]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0
stosb byte es:[edi], al
push 0
push 4
lea eax, [esp + 0x34]
push 0x100232d4
push eax
push 0x80000002
call fcn.1000c320
mov esi, dword [0x1001b160]
add esp, 0x38
lea ecx, [esp + 8]
push 0x100232c4
push ecx
call esi
push 0
push 1
push 0
push 4
lea edx, [esp + 0x18]
push 0x100232a8
push edx
push 0x80000002
call fcn.1000c320
add esp, 0x1c
lea eax, [esp + 8]
push 0x10023290
push 0x5c
push eax
call dword [0x1001b370]
mov edi, dword [0x1001b140]
add esp, 8
push eax
call edi
mov ecx, dword [esp + 0x410]
push 0
push ecx
push 0
push 4
lea edx, [esp + 0x18]
push 0x10023284
push edx
push 0x80000002
call fcn.1000c320
add esp, 0x1c
lea eax, [esp + 8]
push 0x10023254
push eax
call edi
push 0
push 2
push 0
push 4
lea ecx, [esp + 0x18]
push 0x1002324c
push ecx
push 0x80000002
call fcn.1000c320
add esp, 0x1c
lea edx, [esp + 8]
push 0x10023240
push edx
call esi
mov eax, dword [esp + 0x40c]
push 0
push 0
push eax
push 2
lea ecx, [esp + 0x18]
push 0x10023234
push ecx
push 0x80000002
call fcn.1000c320
add esp, 0x1c
push 0xf003f
push 0
push 0
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov edi, eax
test edi, edi
je 0x1000fc8f
mov esi, dword [0x1001b084]
push ebp
push 0xf01ff
push 0x10023228
push edi
call esi
mov ebp, eax
test ebp, ebp
je 0x1000fc5a
push ebx
push ebp
call fcn.10006290
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000fc47
push 0xf01ff
push 0x1002321c
push edi
call esi
mov esi, eax
push 1
push esi
call fcn.1000c4b0
push 0
push ebx
call fcn.10006770
push esi
call fcn.10006290
add esp, 0x14
test eax, eax
jne 0x1000fc40
mov ebx, dword [0x1001b168]
push 0x7d0
call ebx
push esi
call fcn.10006290
add esp, 4
test eax, eax
je 0x1000fc2c
push esi
call dword [sym.imp.MSVCRT.dll_strncat]
push 0
push 0
push ebp
call dword [0x1001b0c8]
push ebp
call dword [sym.imp.MSVCRT.dll_strncat]
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_strncat]
mov edx, dword [0x100222e0]
lea eax, [esp + 0xc]
add edx, 0x128
push edx
push str.t5ye_
push eax
call dword [0x1001b4a4]
add esp, 0xc
lea ecx, [esp + 0xc]
push 0
push ecx
call dword [0x1001b268]
pop ebp
pop edi
pop esi
add esp, 0x400
ret
Function at 0x10015680
Capabilities:
Get common file path

Disassembly:
sub esp, 0x130
push ebx
mov ebx, ecx
mov ecx, dword [0x10022140]
push esi
mov dword [esp + 0xc], ecx
mov cx, word [0x1002214c]
push edi
mov word [esp + 0x1c], cx
mov ecx, 6
mov esi, 0x10022120
lea edi, [esp + 0x20]
mov eax, dword [0x1002213c]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x10022144]
mov dword [esp + 0xc], eax
mov eax, dword [0x10022148]
mov dword [esp + 0x14], edx
mov dl, byte [0x1002214e]
mov ecx, ebx
movsw word es:[edi], word [esi]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1e], dl
movsb byte es:[edi], byte [esi]
call fcn.10009640
push eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [0x1001b4a4]
add esp, 0xc
lea edx, [esp + 0x3c]
mov ecx, ebx
push edx
call fcn.10008950
mov esi, eax
test esi, esi
je 0x1001571f
mov ax, word [esi]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, ebx
call fcn.1000caa0
mov edx, dword [esi + 4]
push edx
call sub.KERNEL32.dll_GetTempPathA
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.10008950
mov esi, eax
test esi, esi
je 0x10015749
mov cx, word [esi]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, ebx
call fcn.1000caa0
mov eax, dword [esi + 4]
push eax
call sub.KERNEL32.dll_GetTempPathA
pop edi
pop esi
pop ebx
add esp, 0x130
ret

Function at 0x10016570
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b940
push 0x100199f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
xor ebx, ebx
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4011e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011d0
cmp esi, eax
jb 0x4011ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401fd0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x401ff0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x402004
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x402030
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x402046
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x402053
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4026f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4e70ac]
xor eax, esp
mov dword [esp + 0x220], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0x14]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
cmp esi, edi
jne 0x402766
xor eax, eax
cmp ecx, edi
je 0x402754
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov esi, eax
mov dword [esp + 0xc], ecx
cmp eax, edi
je 0x402774
cmp ecx, edi
je 0x402812
push ecx
jmp 0x40280c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x4027dc
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.004026f0
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x40282b
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
push edx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x4027a0
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4027ef
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x402812
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0043640c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x402814
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043640c
mov esp, ebp
pop ebp
ret 4
Function at 0x404830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4b1d70
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4e70ac]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x4048b2
call fcn.00401e50
mov edi, eax
jmp 0x40499c
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4048cb
call fcn.00401e50
jmp 0x404993
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x4048e6
call fcn.00401e50
jmp 0x404993
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
cmp eax, edi
jae 0x40491c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40490a
lea ecx, [ebp]
call fcn.00402670
lea ecx, [ebp - 0x18]
call fcn.00402610
mov eax, 0x8007000e
jmp 0x4049b2
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00403170
mov dword [ebp - 4], 1
jmp 0x404950
mov eax, dword [ebp]
test eax, eax
jne 0x40495e
mov edi, 0x8007000e
jmp 0x404995
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x404977
call fcn.00401e50
jmp 0x404993
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404300
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x4049b0
lea ecx, [ebp]
call fcn.00402670
lea esp, [esp]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0043640c
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4159c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4e70ac]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x415a19
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4159ff
jne 0x415a19
cmp dword [esp + 8], 1
jb 0x415a19
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0043640c
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0043640c
add esp, 0x118
ret

Function at 0x415ed0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0
push ecx
mov eax, esp
push 0
push 0x80800000
push 0
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], 0
mov eax, dword [esp + 0x4c]
push eax
mov esi, ecx
call fcn.00415e50
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x415f18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov edi, dword [esp + 0x38]
mov edx, dword [edi]
mov ecx, esi
mov dword [esi + 0x24], edx
call fcn.00415d30
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x2c]
shr eax, 1
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
call fcn.00415a30
lea ecx, [esi + 0x34]
cmp ecx, eax
je 0x415f61
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x28]
imul ecx, dword [esi + 0x2c]
mov edx, dword [edi + 0xc]
push ecx
push edx
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 6
call ebx
push 5
mov ebp, eax
call ebx
add eax, eax
push ebp
add eax, eax
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov ecx, dword [edi + 4]
cdq
sub eax, edx
mov edx, dword [edi + 8]
sar eax, 1
sub edx, eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push edx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0x14
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 8
Function at 0x417933
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x8c], 0
je 0x417970
call fcn.00417670
test eax, eax
je 0x417977
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x417890
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xa8], eax
test eax, eax
je 0x417970
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x417970
mov ecx, dword [eax]
push edi
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x417970
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x41bcab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41bccf
cmp dword [edi + 0x54], 0
jne 0x41bccf
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042398f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041bc6c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x421527
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42156e
call fcn.0042398f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42156e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42158a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042109f
mov esi, eax
test edi, edi
je 0x421588
test ebx, ebx
je 0x421588
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4