joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4159ea
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ecx
push ecx
push ebx
lea eax, [esp + 4]
xor ebx, ebx
push eax
push 0x43428c
push 1
push ebx
push 0x43437c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x415b6e
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push esi
push ecx
push 0x43436c
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x43224c]
call dword [esi]
test eax, eax
js 0x415b59
push ebp
push edi
mov edi, dword [esp + 0x24]
push 8
pop ebp
cmp byte [esp + 0x1c], bl
je 0x415a62
mov edx, edi
cmp dword [edi + 0x14], ebp
jb 0x415a4b
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
push 2
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x43224c]
call esi
mov edx, dword [esp + 0x20]
cmp dword [edx + 0x14], ebp
jb 0x415a6d
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x43224c]
call esi
mov edx, dword [esp + 0x2c]
cmp dword [edx + 0x10], ebx
je 0x415aa7
cmp dword [edx + 0x14], ebp
jb 0x415a92
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x43224c]
call esi
mov edx, dword [esp + 0x30]
cmp dword [edx + 0x10], ebx
jne 0x415ab8
push ebx
push 0x432668
jmp 0x415ac1
cmp dword [edx + 0x14], ebp
jb 0x415abf
mov edx, dword [edx]
push ebx
push edx
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
call dword [0x43224c]
call esi
mov edx, dword [esp + 0x34]
cmp dword [edx + 0x10], ebx
je 0x415afa
cmp dword [edx + 0x14], ebp
jb 0x415ae5
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x43224c]
call esi
mov edx, dword [esp + 0x28]
cmp dword [edx + 0x10], ebx
je 0x415b1f
cmp dword [edx + 0x14], ebp
jb 0x415b0a
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x43224c]
call esi
cmp dword [edi + 0x14], ebp
jb 0x415b26
mov edi, dword [edi]
mov eax, dword [esp + 0x14]
push 1
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x43224c]
call esi
pop edi
pop ebp
test eax, eax
js 0x415b45
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43224c]
call esi
mov ecx, dword [esp + 8]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x43224c]
call esi
pop esi
mov al, bl
pop ebx
pop ecx
pop ecx
ret 0x1c
Function at 0x415c5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x433528
push dword [esp + 0x18]
push dword [0x45afc4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x415d75
push esi
push dword [0x45afc4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x415d75
push esi
push dword [0x45afc4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x415d75
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415d75
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x415d6d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x415d66
push edi
push esi
push eax
call fcn.0041d6b0
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x415d5f
push ebp
push dword [esp + 0x14]
call fcn.00415bd6
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x43224c]
call esi
test edi, edi
je 0x415d5f
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x415d4d
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x415d4d
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x43224c]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
jmp 0x415d77
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4
Function at 0x416a3a
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
mov eax, dword [0x43e748]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
mov esi, dword [ebp + 0x7c]
lea eax, [ebp + 0x18]
push eax
call fcn.00416e11
test al, al
je 0x416afa
push ebx
push edi
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], 0x11060000
xor edi, edi
mov dword [ebp + 4], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 8], edi
xor ebx, ebx
mov dword [ebp], edi
inc ebx
mov dword [ebp - 0x10], 3
push eax
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x416af8
push ebx
lea eax, [ebp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x416aea
push edi
push dword [ebp + 0x14]
lea eax, [ebp + 0x5c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x416aea
cmp dword [esi + 0x14], 8
lea eax, [ebp + 0x5c]
mov dword [ebp + 8], 0xc
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edi
jb 0x416adf
mov esi, dword [esi]
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0x14], edi
je 0x416af8
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.0041c3c4
add ebp, 0x74
leave
ret 4

Function at 0x416cf5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x43e748]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x43e6f4], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, 0x400
push edi
mov edi, dword [ebp + 0x14]
jne 0x416d50
push 0x64
lea eax, [ebp - 0x130]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x130]
mov word [0x45afa4], ax
xor eax, eax
mov word [0x45afa6], ax
mov dword [0x43e6f4], 0x45afa4
push 0x32
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409ffe
push edi
push esi
xor eax, eax
push 0x43e6e4
mov word [esi], ax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + edi*2 - 2], ax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041c3c4
leave
ret 0x10
Function at 0x41713d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x430b9f
call fcn.0041c435
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [eax + 0x14], 8
jb 0x417156
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 1
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417255
mov eax, dword [ebp + 0x10]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41717c
mov ecx, dword [eax]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417248
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
shr eax, 1
cmp dword [ecx + 0x10], eax
jbe 0x4171a5
mov eax, dword [ecx + 0x10]
inc eax
mov ecx, 0x10000
cmp eax, ecx
jb 0x4171b1
mov eax, ecx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.004018cd
mov edi, dword [ebp - 0x28]
mov eax, edi
mov esi, dword [ebp - 0x2c]
sub eax, esi
sar eax, 1
add eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x4171e2
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push esi
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417231
mov word [ebp - 0xe], ax
cmp edi, dword [ebp - 0x24]
je 0x41720e
mov word [edi], ax
add edi, 2
mov dword [ebp - 0x28], edi
jmp 0x41721e
lea eax, [ebp - 0xe]
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00416784
mov esi, dword [ebp - 0x2c]
push esi
call fcn.004214de
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.0040180c
mov bl, 1
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x417248
mov eax, dword [ebp - 0x24]
sub eax, esi
and eax, 0xfffffffe
push eax
push esi
call fcn.004012a3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x417260
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
call fcn.004021d7
mov al, bl
call fcn.0041c403
ret 0x14
Function at 0x41ab79
Capabilities:
Hide graphical window

Disassembly:
and dword [0x45afcc], 0
push 1
push dword [esp + 8]
mov byte [0x45afb9], 1
mov byte [0x45afba], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004019f8
cmp dword [0x43e690], 0
jne 0x41abb9
cmp byte [0x45afc3], 0
je 0x41abc2
cmp dword [0x45afbc], 0
jne 0x41abd5
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41ac95
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x42fcef
call fcn.0041c468
cmp byte [0x45aacc], 0
mov esi, dword [ebp + 8]
je 0x41ad7c
cmp dword [0x45aae0], 0
je 0x41ad7c
xor edi, edi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
push 0x45aad0
call fcn.00418c4b
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41ad41
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x41ad13
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x41ad1f
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x10]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push edi
push edx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41ad7c
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
cmp eax, 0x1000
jb 0x41ad73
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.0041c3b6
pop ecx
pop ecx
call fcn.0041c417
ret 4
Function at 0x41d3a3
Capabilities:
Parse pe header

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

Function at 0x42f510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f53d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f53d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10012d60
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CDAOContext.0
mov dword [esp + 0x10], esi
call fcn.10009750
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
push 1
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.1004db80
test eax, eax
je 0x10012db8
movzx eax, ax
or eax, 0x800a0000
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
mov esi, eax
call fcn.100097c0
mov eax, esi
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10012e02
cmp dword [eax + 0x20], 0
je 0x10012e02
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x10070468
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x10012e72
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 4]
mov dword [ecx], edx
mov esi, dword [esp + 0x10]
lea ecx, [esp + 8]
call fcn.10007380
mov eax, esi
pop esi
add esp, 0x10
ret 0xc
call fcn.10020d20
test eax, eax
jl 0x10012e31
mov ecx, dword [0x1007eed0]
push 0x12c
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
test eax, eax
jne 0x10012e81
push 0x100202e0
call fcn.1005ad10
xor eax, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x28]
push edx
push ecx
lea edx, [esp + 0xc]
push edx
push 0x10070468
push 0
push eax
call fcn.10005db0
test eax, eax
mov dword [esp + 0x10], eax
jge 0x10012de2
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10012e6e
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x10012e6e
push 2
push eax
push ecx
call fcn.10019ba0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push eax
call fcn.100573a0
jmp 0x10012dec
mov ecx, eax
call fcn.100058b0
jmp 0x10012e33

Function at 0x10014000
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x1007eed0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push 0
push eax
mov edi, esi
call ebx
mov ecx, dword [eax + 0xc]
push ecx
call fcn.10020420
test eax, eax
mov dword [esp + 0x14], eax
je 0x1001405e
test esi, esi
je 0x10014069
mov edx, dword [esp + 0x10]
push esi
push eax
push esi
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
mov eax, dword [esp + 0x14]
jne 0x10014069
mov ecx, dword [0x1007eed0]
push eax
push ecx
call ebx
mov edx, dword [eax + 0xc]
push edx
call fcn.10020440
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
ret 0xc
cmp edi, esi
mov word [eax + edi*2], 0
jae 0x100140a8
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringLen]
test eax, eax
jne 0x100140a8
mov edx, dword [esp + 0x14]
mov eax, dword [0x1007eed0]
push edx
push eax
call ebx
mov ecx, dword [eax + 0xc]
push ecx
call fcn.10020440
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
ret 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
ret 0xc
Function at 0x1002b380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [ebx + 4]
lea ecx, [esp + 0x18]
call fcn.100139b0
mov ecx, dword [ebx + 0x18]
cmp ecx, 0xf
jne 0x1002b408
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
push ecx
push 4
push edx
push ebx
mov ecx, ebp
call fcn.1002abb0
mov esi, eax
test esi, esi
jl 0x1002b485
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
mov edx, dword [eax + 0x1a4]
push ecx
mov ecx, ebp
call edx
mov esi, eax
test esi, esi
jl 0x1002b4ad
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1002b3f3
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [edx + 0x10]
mov dword [eax], ecx
lea ecx, [esp + 0x18]
call fcn.10014290
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 0x10
test byte [edi + 0x78], 4
mov eax, dword [edi + 0xb8]
je 0x1002b42c
lea ecx, [esp + 0x18]
call fcn.10014290
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x28
ret 0x10
cmp ecx, 0xe
jne 0x1002b49a
mov edx, dword [eax]
mov edx, dword [edx + 0x94]
lea ecx, [esp + 0x28]
push ecx
push eax
call edx
mov esi, eax
test esi, esi
jl 0x1002b4ad
mov ecx, dword [edi + 8]
movzx eax, word [ecx + 0xc6]
cmp ax, 0xc
je 0x1002b45d
cmp ax, 0xb
jne 0x1002b46c
mov dword [ebp + 0x15c], 1
or word [edi + 0x78], 4
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.1002ac30
mov esi, eax
lea ecx, [esp + 0x18]
call fcn.10007380
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
jge 0x1002b447
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x20]
lea edx, [esp + 0x10]
push edx
push edi
call eax
mov ebx, eax
test ebx, ebx
jge 0x1002b4d9
lea ecx, [esp + 0x18]
call fcn.10014290
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x28
ret 0x10
mov ecx, dword [edi]
mov eax, dword [ecx + 0x24]
lea edx, [esp + 0x40]
push edx
push edi
call eax
mov edi, eax
test edi, edi
jge 0x1002b501
lea ecx, [esp + 0x18]
call fcn.10014290
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10
cmp word [esp + 0x40], 0
jne 0x1002b515
cmp word [esp + 0x10], 0
je 0x1002b485
lea ecx, [esp + 0x18]
call fcn.10014290
pop edi
pop esi
pop ebp
mov eax, 0x41001
pop ebx
add esp, 0x28
ret 0x10
Function at 0x1003c520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push esi
lea ecx, [esp + 0x44]
call fcn.100139b0
mov esi, vtable.CVarConvW.0
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], esi
call fcn.100139b0
lea ecx, [esp + 4]
mov dword [esp + 0x24], esi
call fcn.100139b0
mov eax, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 8], esi
call fcn.100152f0
mov esi, eax
test esi, esi
jl 0x1003c63e
mov ecx, dword [esp + 0x70]
push ecx
lea ecx, [esp + 0x28]
call fcn.100152f0
mov esi, eax
test esi, esi
jl 0x1003c63e
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x18]
call fcn.10007380
mov esi, eax
test esi, esi
jl 0x1003c63e
mov eax, dword [esp + 0x34]
movzx edx, ax
and edx, 0xffffbfff
cmp edx, 8
jne 0x1003c5e2
test eax, 0x4000
je 0x1003c5dc
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
jmp 0x1003c5e4
mov edx, dword [esp + 0x3c]
jmp 0x1003c5e4
xor edx, edx
mov eax, dword [esp + 0x54]
movzx ecx, ax
and ecx, 0xffffbfff
cmp ecx, 8
jne 0x1003c60b
test eax, 0x4000
je 0x1003c605
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
jmp 0x1003c60d
mov ecx, dword [esp + 0x5c]
jmp 0x1003c60d
xor ecx, ecx
mov esi, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x28]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x2c]
push edx
push ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x38]
push ecx
mov dword [eax + 0xc], esi
call fcn.1000bb70
mov esi, eax
lea ecx, [esp + 4]
call fcn.10014290
lea ecx, [esp + 0x24]
call fcn.10014290
lea ecx, [esp + 0x44]
call fcn.10014290
mov eax, esi
pop esi
add esp, 0x60
ret 0x1c
Function at 0x401050
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
push 0x4214c0
push esi
mov dword [esp + 0x10], esi
call sub.KERNEL32.dll_GetModuleHandleExA
test eax, eax
je 0x4010af
mov ecx, dword [esp + 4]
push edi
push str.VirtualAllocExNuma
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esp + 0x14]
push esi
push 0x40
push 0x3000
push edi
push esi
mov dword [0x42c10c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x42c10c]
mov edx, dword [esp + 0x10]
push edi
mov esi, eax
push edx
push esi
call fcn.0040ec40
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401220
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov cl, byte [eax]
mov dl, byte [eax + 1]
push ebp
xor ebp, ebp
cmp dword [esp + 0x10], ebp
jle 0x4012ca
push ebx
push esi
push edi
movzx esi, cl
movzx edi, dl
lea eax, [esi + 1]
cdq
mov ecx, 0x24f
idiv ecx
mov bl, dl
mov edx, dword [0x42c114]
movzx esi, bl
movzx eax, byte [esi + edx]
lea ecx, [esi + edx]
add eax, edi
cdq
mov edi, 0x24f
idiv edi
mov eax, dword [0x42c114]
movzx edi, dl
add eax, edi
mov byte [esp + 0x13], dl
call fcn.00401040
mov ecx, dword [0x42c114]
movzx eax, byte [edi + ecx]
movzx ecx, byte [esi + ecx]
add eax, ecx
cdq
mov ecx, 0x24f
idiv ecx
mov byte [esp + 0x12], dl
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, byte [esp + 0x12]
mov eax, dword [0x42c114]
mov cl, byte [edx + eax]
mov eax, dword [esp + 0x18]
xor byte [eax + ebp], cl
inc ebp
cmp ebp, dword [esp + 0x1c]
jl 0x401240
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x13]
pop edi
pop esi
mov byte [eax], bl
pop ebx
mov byte [eax + 1], dl
pop ebp
pop ecx
ret
mov byte [eax], cl
mov byte [eax + 1], dl
pop ebp
pop ecx
ret

Function at 0x401c90
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 0x401ca9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ce4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401ce0
lea ebx, [ebx]
cmp esi, eax
jae 0x401ce4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401cd0
cmp esi, eax
jb 0x401cea
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 0x40f38b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ac00]
jne 0x40f395
repz ret
jmp fcn.0041444c
Function at 0x41a493
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00413e39
and dword [ebp - 4], 0
cmp dword [0x42ea1c], 0
mov ebx, eax
jne 0x41a544
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41a5f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4248d0
push edi
call esi
test eax, eax
je 0x41a5f5
push eax
call fcn.00413dc7
mov dword [esp], 0x4248c0
push edi
mov dword [0x42ea1c], eax
call esi
push eax
call fcn.00413dc7
mov dword [esp], 0x4248ac
push edi
mov dword [0x42ea20], eax
call esi
push eax
call fcn.00413dc7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42ea24], eax
call esi
push eax
call fcn.00413dc7
pop ecx
mov dword [0x42ea2c], eax
test eax, eax
je 0x41a544
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413dc7
pop ecx
mov dword [0x42ea28], eax
mov eax, dword [0x42ea28]
cmp eax, ebx
je 0x41a59c
cmp dword [0x42ea2c], ebx
je 0x41a59c
push eax
call fcn.00413e42
push dword [0x42ea2c]
mov esi, eax
call fcn.00413e42
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41a59c
test edi, edi
je 0x41a59c
call esi
test eax, eax
je 0x41a593
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41a593
test byte [ebp - 0xc], 1
jne 0x41a59c
or dword [ebp + 0x10], 0x200000
jmp 0x41a5d5
mov eax, dword [0x42ea20]
cmp eax, ebx
je 0x41a5d5
push eax
call fcn.00413e42
pop ecx
test eax, eax
je 0x41a5d5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41a5d5
mov eax, dword [0x42ea24]
cmp eax, ebx
je 0x41a5d5
push eax
call fcn.00413e42
pop ecx
test eax, eax
je 0x41a5d5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ea1c]
call fcn.00413e42
pop ecx
test eax, eax
je 0x41a5f5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41a5f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret