joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x437d31
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449af0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov dword [ebp], vtable.CConfigManage.0
lea esi, [ebp + 4]
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401b8c
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x1c], 0
lea ebx, [ebp + 8]
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401bbf
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x1c], 1
lea edi, [ebp + 0xc]
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401bef
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 8
push str.ESALES09
mov ecx, edi
mov byte [esp + 0x24], 2
call fcn.00402080
push 8
push str.ESALES10
mov ecx, ebx
call fcn.00402080
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x200
or ecx, edx
jge 0x401c44
push 0x200
mov ecx, esi
call fcn.004021f0
mov eax, dword [esi]
push str..CFG.ini
push 0x200
push eax
push 0x43f1c0
push str.LINK_STRING
push str.ConnectInformation
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esi]
test ecx, ecx
jne 0x401c70
xor eax, eax
jmp 0x401c82
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401c75
sub eax, edi
js 0x401ccd
cmp eax, dword [ecx - 8]
jg 0x401ccd
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, dword [esi]
push 0x43f1c0
push eax
call fcn.00422b0f
add esp, 8
test eax, eax
jne 0x401cb5
push 0x8c
push str.VCCrRpylax42b7NWORv3GDbz5STMH25E7ZTHvB_iGvtGYMKKw3eGo9v2ujYHiYiN_EdkYsi4vgbExRdGR_jQKaKKFD9WC4SUchkC6DnwlVZNkvwnHULJu70r33_3ibhuYsgVtSc8o
mov ecx, esi
call fcn.00402080
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push 0x80070057
call fcn.00401ed0
int3

Function at 0x403f20
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 0x403f39
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403f74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403f70
lea ebx, [ebx]
cmp esi, eax
jae 0x403f74
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403f60
cmp esi, eax
jb 0x403f7a
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 0x406a20
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x406aa0
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x44b040]
or ecx, dword [ebx*4 + 0x44b240]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x44b440]
and eax, 0x3f
or ecx, dword [eax*4 + 0x44b640]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x44b140]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x44b340]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x44b540]
and eax, 0x3f
or ebx, dword [eax*4 + 0x44b740]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x44b040]
or ecx, dword [ebx*4 + 0x44b240]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x44b440]
and eax, 0x3f
or ecx, dword [eax*4 + 0x44b640]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x44b140]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x44b340]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x44b540]
and eax, 0x3f
or ebx, dword [eax*4 + 0x44b740]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x406aa0
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
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
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
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
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret 4
Function at 0x4081b0
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [esi + 0x184]
test eax, eax
je 0x4081e4
lea ecx, [esp]
mov dword [esp], 0
mov edx, dword [eax + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esp]
mov ecx, dword [esi + 0x184]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ecx
ret
Function at 0x408f30
Capabilities:
Terminate thread

Disassembly:
call fcn.004120a0
test eax, eax
je 0x408fdf
call fcn.004120a0
mov eax, dword [esp + 4]
push eax
call fcn.00412380
test eax, eax
je 0x408fdf
push 0x43ff70
lea ecx, [esp + 8]
call fcn.00403ce0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040f8f0
push 0x43f1fc
push 0x43ff88
call fcn.0040f9c0
add esp, 8
push 0x20
push 0x43ff9c
lea ecx, [esi + 0x190]
call fcn.00402080
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xc04
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x44e540]
test ecx, ecx
je 0x408fda
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x44e540], 0
xor eax, eax
ret 4
push 0x43ffc0
lea ecx, [esp + 8]
call fcn.00403ce0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40900d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040f8f0
push 0x43f1fc
push 0x43ffd8
call fcn.0040f9c0
mov eax, dword [esi + 0x184]
add esp, 8
test eax, eax
je 0x40905a
lea ecx, [esp + 4]
mov dword [esp + 4], 0
mov edx, dword [eax + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esp + 4]
mov ecx, dword [esi + 0x184]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xc02
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x43ffec
call fcn.00416e37
mov eax, 1
ret 4
Function at 0x40daa0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x18
push edi
push 5
push 0x3ee
mov ecx, esi
call fcn.0041c970
mov ecx, eax
call fcn.0041cac7
push 0
push 0x3e8
mov ecx, esi
call fcn.0041c970
mov ecx, eax
call fcn.0041cac7
push 0
push 0x3ea
mov ecx, esi
call fcn.0041c970
mov ecx, eax
call fcn.0041cac7
push 0
push 0x3e9
mov ecx, esi
call fcn.0041c970
mov ecx, eax
call fcn.0041cac7
push 0
push 0x3eb
mov ecx, esi
call fcn.0041c970
mov ecx, eax
call fcn.0041cac7
push 0
push 0x3f9
mov ecx, esi
call fcn.0041c970
mov ecx, eax
call fcn.0041cac7
mov ecx, dword [esi + 0x20]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
push 1
sub edx, 0x10e
push edx
push eax
push 0x15e
push 0x1c2
mov ecx, esi
call fcn.0041ca89
push 8
push 0x440914
lea ecx, [esi + 0x190]
call fcn.00402080
mov ecx, dword [esi + 0x144]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 0x402
push ecx
call edi
push 0
mov ecx, esi
call fcn.00418cdf
push str.ESales_bin
lea edx, [esi + 0x178]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004039e0
mov ecx, dword [eax]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dbd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0
push 0
push esi
push 0x408170
call fcn.004166bd
push 0
push 0
push 0
push 0
push esi
push 0x4081f0
mov dword [esi + 0x184], eax
call fcn.004166bd
push 0x440360
lea ecx, [esp + 8]
mov dword [esi + 0x188], eax
call fcn.00403ce0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xc04
push ecx
call edi
mov ecx, esi
call fcn.0040a170
test eax, eax
jne 0x40dc58
mov edx, dword [esi + 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
pop edi
add esp, 0x18
ret
Function at 0x40f280
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x438620
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449af0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
lea ecx, [esp + 0x38]
call fcn.0041d7e2
mov dword [esp + 0x5c], 0
mov eax, dword [ebx]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.0041d86e
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0041d7e2
mov byte [esp + 0x5c], 1
mov eax, dword [edi]
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.0041d86e
test esi, esi
jne 0x40f2f4
test eax, eax
je 0x40f3ef
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
mov eax, dword [edi]
and esi, 0xfffffffe
push esi
push eax
call ebp
mov eax, dword [ebx]
mov ecx, dword [edi]
push 8
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov ebx, eax
mov eax, dword [edi]
and esi, 1
push esi
push eax
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f412
test ebx, ebx
jne 0x40f412
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f35d
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov bl, 2
mov byte [esp + 0x5c], bl
mov ecx, dword [edi]
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x20]
push str._s___s__
push ecx
call fcn.00405d50
call fcn.0040f8f0
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x43f1fc
call fcn.00403ce0
mov byte [esp + 0x60], 3
mov esi, dword [esp + 0x1c]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push esi
call fcn.00401f40
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x64], bl
call fcn.0040fb30
add esp, 8
mov byte [esp + 0x5c], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40f3ef
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 0
call fcn.0041d806
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0041d806
xor eax, eax
jmp 0x40f436
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 0
call fcn.0041d806
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0041d806
mov eax, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4
Function at 0x40f9c0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4385d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x449af0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x44e534]
push eax
call fcn.0040f770
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403ce0
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.00403ce0
push str.ESalesUpdate.log
lea eax, [esp + 0xc]
push 0x44e620
push eax
mov byte [esp + 0x34], 1
call fcn.004039e0
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x18]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x34], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x34], 2
call fcn.0040fc70
mov ecx, dword [0x44e534]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
add esp, 0xc
call eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fac8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40faed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret
Function at 0x40fb30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438588
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x449af0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 1
mov eax, dword [0x44e534]
push eax
call fcn.0040f770
push str.ESalesUpdate.log
lea ecx, [esp + 0x14]
push 0x44e620
push ecx
call fcn.004039e0
mov byte [esp + 0x34], 2
mov edi, dword [esp + 0x40]
add esp, 8
add edi, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push edi
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x34], 4
mov esi, dword [esp + 0x3c]
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebp, esp
push esi
call fcn.00401f40
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov byte [esp + 0x34], 2
call fcn.0040fc70
mov ecx, dword [0x44e534]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
add esp, 0xc
call eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc38
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x28], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fc59
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x412380
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439330
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x449af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0041259b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4123ca
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x38
lea ecx, [ebp - 0x5c]
push ebx
mov byte [ebp - 4], 1
push ecx
mov dword [ebp - 0x60], ebx
call fcn.00424840
add esp, 0xc
push 0x440d1c
lea edx, [ebp - 0x14]
push 0x44e618
push edx
call fcn.004039e0
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.0040f8f0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x43f1fc
call fcn.00403ce0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 2
call fcn.0040fb30
mov eax, dword [0x44e618]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add esp, 8
push eax
push edx
lea eax, [ebp - 0x18]
push str._x__s__bd_y_o_s
push eax
call fcn.00405d50
add esp, 0x10
call fcn.0040f8f0
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x43f1fc
call fcn.00403ce0
push ecx
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x18]
mov dword [ebp + 8], esp
lea esi, [edi - 0x10]
mov dword [ebp + 8], esp
push esi
call fcn.00401f40
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
add esp, 4
mov byte [ebp - 4], 2
call fcn.0040fb30
mov edx, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x60], 0x3c
mov dword [ebp - 0x5c], 0x40
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412507
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412523
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41be9f
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 0x41bee2
call fcn.0041c783
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41bee2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41befd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041ba56
test ebx, ebx
mov esi, eax
je 0x41befb
test edi, edi
je 0x41befb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4220fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449af0]
jne 0x422108
repz ret
jmp fcn.004273d6
Function at 0x432366
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00427d23
xor ebx, ebx
cmp dword [0x44e48c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43243b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4323a6
xor eax, eax
jmp 0x4324ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43ef74
push edi
call esi
cmp eax, ebx
je 0x43239f
push eax
call fcn.00427cc0
mov dword [esp], 0x43ef64
push edi
mov dword [0x44e48c], eax
call esi
push eax
call fcn.00427cc0
mov dword [esp], 0x43ef50
push edi
mov dword [0x44e490], eax
call esi
push eax
call fcn.00427cc0
mov dword [0x44e494], eax
lea eax, [ebp - 8]
push eax
call fcn.00424963
test eax, eax
pop ecx
pop ecx
je 0x432409
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004223d7
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43243b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00427cc0
cmp eax, ebx
pop ecx
mov dword [0x44e49c], eax
je 0x43243b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00427cc0
pop ecx
mov dword [0x44e498], eax
mov eax, dword [0x44e498]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4324b4
cmp dword [0x44e49c], esi
je 0x4324b4
push eax
call fcn.00427d2c
pop ecx
call eax
cmp eax, ebx
je 0x432481
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44e49c]
call fcn.00427d2c
pop ecx
call eax
test eax, eax
je 0x432481
test byte [ebp - 0x18], 1
jne 0x4324b4
lea eax, [ebp - 0xc]
push eax
call fcn.0042499a
test eax, eax
pop ecx
je 0x43249c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004223d7
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4324ab
or dword [ebp + 0x10], 0x200000
jmp 0x4324e5
or dword [ebp + 0x10], 0x40000
jmp 0x4324e5
mov eax, dword [0x44e490]
cmp eax, esi
je 0x4324e5
push eax
call fcn.00427d2c
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4324e5
mov eax, dword [0x44e494]
cmp eax, esi
je 0x4324e5
push dword [ebp - 4]
push eax
call fcn.00427d2c
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44e48c]
call fcn.00427d2c
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436a04
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x449af0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00436999
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.00424840
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 0x436a53
cmp dword [ebp - 0x1c], 5
jb 0x436a6b
jmp 0x436a67
cmp dword [ebp - 0x10], 1
jne 0x436a6b
cmp dword [ebp - 0x1c], 4
ja 0x436a67
jne 0x436a6b
cmp dword [ebp - 0x18], 0
jbe 0x436a6b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43f054
call fcn.0043688a
test eax, eax
jge 0x436a8c
mov byte [0x44e628], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004220fe
add ebp, 0x78
leave
ret