joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x340]
push esi
push edi
test eax, eax
jne 0x1002d350
mov eax, 0x38bacd4
push 0x38bacc0
push eax
lea ecx, [ebp - 0x214]
push 0x38bacdc
push ecx
call dword [0x38b54d4]
lea eax, [ebp - 0x214]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d374
mov ecx, dword [ebx + 0x75c4]
sub eax, edx
lea edx, [ecx + eax + 0xd]
cmp edx, 0x7530
jbe 0x1002d3be
push ecx
lea eax, [ebx + 0x94]
push eax
mov eax, ebx
call fcn.10030cd0
test eax, eax
jns 0x1002d3b4
mov esi, ebx
call fcn.10030a00
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x75c4], 0
mov al, byte [0x38be05d]
movsx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x302fefc
xor edx, edx
add ecx, 0xfffe0003
test al, al
lea eax, [ebp - 0x214]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
lea edx, [eax + 1]
je 0x1002d411
jmp 0x1002d3f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d3f0
sub eax, edx
lea edx, [eax + 1]
shr edx, 8
inc eax
and edx, 0xff
shl eax, 8
xor edx, eax
mov word [ebp - 0xc], dx
jmp 0x1002d41f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d411
sub eax, edx
inc eax
mov word [ebp - 0xc], ax
mov ecx, dword [ebx + 0x75c4]
xor eax, eax
lea edi, [ecx + ebx + 0x94]
mov word [ebp - 0xa], ax
lea esi, [ebp - 0x10]
mov ecx, 0xc
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x75c4], 0xc
mov edx, dword [ebx + 0x75c4]
lea eax, [ebp - 0x214]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d452
sub eax, esi
lea ecx, [eax + 1]
lea edi, [edx + ebx + 0x94]
lea esi, [ebp - 0x214]
lea eax, [ebp - 0x214]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d476
sub eax, edx
inc eax
add dword [ebx + 0x75c4], eax
mov eax, dword [ebx + 0x75c4]
push eax
lea edx, [ebx + 0x94]
push edx
mov eax, ebx
call fcn.10030cd0
test eax, eax
js 0x1002d3a2
pop edi
pop esi
mov dword [ebx + 0x75c4], 0
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10036380
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [edx + 4]
mov edx, eax
shr edx, 4
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor eax, edx
mov edx, eax
shr edx, 0x10
xor edx, esi
and edx, 0xffff
xor esi, edx
shl edx, 0x10
xor eax, edx
mov edx, esi
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor esi, edx
mov edx, esi
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor esi, edx
rol esi, 1
mov edx, esi
xor edx, eax
and edx, 0xaaaaaaaa
xor esi, edx
xor edx, eax
rol edx, 1
push edi
mov ecx, 0x38cd708
mov dword [ebp - 4], edx
mov dword [ebp - 8], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx]
add ecx, 0x10
mov edx, eax
shr edx, 0x18
mov edi, eax
shr edi, 0x10
and edi, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x38bd6a8]
or edx, dword [edi*4 + 0x38bd8a8]
mov edi, eax
shr edi, 8
and edi, 0x3f
or edx, dword [edi*4 + 0x38bdaa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x38bdca8]
mov eax, dword [ecx - 0xc]
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x38bd7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x38bd9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x38bdba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x38bdda8]
or edi, edx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 0xc]
mov eax, edi
ror eax, 4
xor eax, dword [ecx - 8]
mov dword [ebp - 4], edi
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x38bd6a8]
or edx, dword [ebx*4 + 0x38bd8a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x38bdaa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x38bdca8]
mov eax, dword [ecx - 4]
xor eax, edi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x38bd7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x38bd9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x38bdba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x38bdda8]
or edi, edx
xor esi, edi
dec dword [ebp - 8]
jne 0x10036403
mov ecx, dword [ebp - 4]
ror esi, 1
mov eax, esi
xor eax, ecx
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, ecx
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
add ecx, ecx
add ecx, ecx
xor eax, ecx
mov edx, dword [ebp + 8]
mov ecx, esi
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
xor ecx, eax
pop esi
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10044900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x10044929
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x38bd100]
inc esi
xor eax, edx
dec ecx
jne 0x10044914
xor eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401724
leave
ret 4
Function at 0x407282
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004023fb
mov dword [ebp - 0x14], eax
cmp dword [0x414e78], esi
jne 0x407375
push 0x800
push esi
push 0x410d1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x407302
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x407455
push esi
push esi
push 0x410d1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x407455
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407455
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x414e78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x414e7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x414e80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414e88], eax
test eax, eax
je 0x407372
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414e84], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40739a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40738d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4073af
push 4
pop eax
jmp 0x407457
cmp dword [ebp - 0x14], esi
je 0x4073af
push dword [0x414e78]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x407394
mov eax, dword [0x414e84]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40740d
cmp dword [0x414e88], edi
je 0x40740d
push eax
call ebx
push dword [0x414e88]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40740d
test eax, eax
je 0x40740d
call ecx
test eax, eax
je 0x407402
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x407402
test byte [ebp - 8], 1
jne 0x40740d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40743d
mov eax, dword [0x414e7c]
cmp eax, edi
je 0x40743a
push eax
call ebx
test eax, eax
je 0x40743a
call eax
mov esi, eax
test esi, esi
je 0x40743a
mov eax, dword [0x414e80]
cmp eax, edi
je 0x40743a
push eax
call ebx
test eax, eax
je 0x40743a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x414e78]
call ebx
test eax, eax
je 0x407455
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x407457
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401724
mov esp, ebp
pop ebp
ret
Function at 0x401640
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x435a0d
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x447780]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push edi
mov eax, dword [0x447780]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x23c], ebx
mov edi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
call fcn.004078c8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4016af
push 0x80004005
call fcn.00403950
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x23c], 1
call fcn.004078c8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4016e4
push 0x80004005
call fcn.00403950
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x28], 1
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, ebx
jl 0x40179c
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x20], ebx
je 0x40174c
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [esp + 0x20], 1
jne 0x40174c
lea eax, [esp + 0x10]
push eax
push 0x2a
jmp 0x401753
lea ecx, [esp + 0x10]
push ecx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x40179c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, ebx
jl 0x40179c
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403d40
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], ebx
je 0x40179c
mov edx, dword [esp + 0x1c]
push ebp
push 0x43dc40
push edx
call fcn.00403cf0
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4017c1
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x4017b9
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x10]
mov byte [esp + 0x23c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4017e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0041fabf
add esp, 0x230
ret
Function at 0x404040
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 0x404059
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404094
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404090
lea ebx, [ebx]
cmp esi, eax
jae 0x404094
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404080
cmp esi, eax
jb 0x40409a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4047f0
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x447780]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x40488e
push 0x438a0c
push 4
push eax
call fcn.00420ccb
push eax
call fcn.004040b0
add esp, 0x10
push ebx
push edi
call fcn.00420dc3
mov edi, dword [eax]
call fcn.00420dc3
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00420d69
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00420dc3
cmp dword [eax], ebx
je 0x4048a5
call fcn.00420dc3
push dword [eax]
call fcn.00404693
pop ecx
jmp 0x4048ac
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40483f
jmp 0x40491e
call fcn.00420dc3
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x40491a
cmp dword [ebp - 0x40], esi
jae 0x40491a
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00420e10
add esp, 0xc
push 0x43876c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x40490c
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40490c
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40490c
push ebx
push ebx
push esi
jmp 0x404912
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40491c
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0041fabf
add ebp, 0x1f4
leave
ret
Function at 0x407f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x407fb6
call fcn.0040733d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x407fb6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x407ff9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x407fe2
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x407fe2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x407ff6
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x409e23
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x409e51
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x409e6f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00409d8d
jmp 0x409e6f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x409e6f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00409d8d
test edi, edi
mov eax, edi
jne 0x409e59
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x449030]
test ecx, ecx
je 0x409f32
jmp 0x409e22
ret 8

Function at 0x40f1a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40f1e3
call fcn.0040733d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f1e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f1fe
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040ed5a
test ebx, ebx
mov esi, eax
je 0x40f1fc
test edi, edi
je 0x40f1fc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41fabf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447780]
jne 0x41fac9
repz ret
jmp fcn.00424f96
Function at 0x423da7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4477a0]
je 0x423dc2
inc edi
cmp edi, 0x17
jb 0x423db3
cmp edi, 0x17
jae 0x423f42
push ebp
push 3
call fcn.0042c710
cmp eax, 1
pop ecx
je 0x423f0e
push 3
call fcn.0042c710
test eax, eax
pop ecx
jne 0x423df6
cmp dword [0x4475ec], 1
je 0x423f0e
cmp ebx, 0xfc
je 0x423f41
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44ad28
push ebp
call fcn.0042c6ab
add esp, 0xc
test eax, eax
je 0x423e2c
push esi
push esi
push esi
push esi
push esi
call fcn.00425c12
add esp, 0x14
push 0x104
mov esi, 0x44ad41
push esi
push 0
mov byte [0x44ae45], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423e70
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042c6ab
add esp, 0xc
test eax, eax
je 0x423e70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00425c12
add esp, 0x14
push esi
call fcn.0042c620
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x423eb5
push esi
call fcn.0042c620
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44b03c
push 0x43be24
sub ecx, eax
push ecx
push eax
call fcn.0042c560
add esp, 0x14
test eax, eax
je 0x423eb5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00425c12
add esp, 0x14
jmp 0x423eb7
xor esi, esi
push 0x43be20
push ebx
push ebp
call fcn.0042c4ef
add esp, 0xc
test eax, eax
je 0x423ed7
push esi
push esi
push esi
push esi
push esi
call fcn.00425c12
add esp, 0x14
push dword [edi*8 + 0x4477a4]
push ebx
push ebp
call fcn.0042c4ef
add esp, 0xc
test eax, eax
je 0x423ef9
push esi
push esi
push esi
push esi
push esi
call fcn.00425c12
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042c332
add esp, 0xc
jmp 0x423f41
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x423f41
cmp ebp, 0xffffffff
je 0x423f41
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4477a4]
push dword [esi]
call fcn.0042c620
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42c332
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042496b
xor ebx, ebx
cmp dword [0x44b820], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42c408
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42c4e8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42c4e8
push eax
call fcn.004248fd
mov dword [esp], 0x43c064
push edi
mov dword [0x44b820], eax
call esi
push eax
call fcn.004248fd
mov dword [esp], 0x43c050
push edi
mov dword [0x44b824], eax
call esi
push eax
call fcn.004248fd
mov dword [0x44b828], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00420a58
test eax, eax
pop ecx
pop ecx
je 0x42c3d6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425c12
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42c408
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004248fd
cmp eax, ebx
pop ecx
mov dword [0x44b830], eax
je 0x42c408
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004248fd
pop ecx
mov dword [0x44b82c], eax
mov eax, dword [0x44b82c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42c48d
cmp dword [0x44b830], ecx
je 0x42c48d
push eax
call fcn.00424974
push dword [0x44b830]
mov esi, eax
call fcn.00424974
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42c48d
cmp edi, ebx
je 0x42c48d
call esi
cmp eax, ebx
je 0x42c45a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42c45a
test byte [ebp - 0x18], 1
jne 0x42c48d
lea eax, [ebp - 0x10]
push eax
call fcn.00420a8f
test eax, eax
pop ecx
je 0x42c475
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425c12
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42c484
or dword [ebp + 0x10], 0x200000
jmp 0x42c4c8
or dword [ebp + 0x10], 0x40000
jmp 0x42c4c8
mov eax, dword [0x44b824]
cmp eax, dword [ebp - 8]
je 0x42c4c8
push eax
call fcn.00424974
cmp eax, ebx
pop ecx
je 0x42c4c8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42c4c8
mov eax, dword [0x44b828]
cmp eax, dword [ebp - 8]
je 0x42c4c8
push eax
call fcn.00424974
cmp eax, ebx
pop ecx
je 0x42c4c8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b820]
call fcn.00424974
cmp eax, ebx
pop ecx
je 0x42c4e8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42c4ea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434233
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x447780]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004341c8
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00420e10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x434282
cmp dword [ebp - 0x1c], 5
jb 0x43429a
jmp 0x434296
cmp dword [ebp - 0x10], 1
jne 0x43429a
cmp dword [ebp - 0x1c], 4
ja 0x434296
jne 0x43429a
cmp dword [ebp - 0x18], 0
jbe 0x43429a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43da60
call fcn.004340b9
test eax, eax
jge 0x4342bb
mov byte [0x44b9c8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041fabf
add ebp, 0x78
leave
ret