joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448530
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4758b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046e8a0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00447ed0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046e7ce
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046b094
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046b094
push 1
push 0
push 0
mov ecx, esi
call fcn.0046b03c
push 1
push 0
push 1
mov ecx, esi
call fcn.0046b03c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046e912
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4486b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4758d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046e8a0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00447ed0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046e7ce
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x448774
cmp dword [esp + 0x40], 1
jne 0x448772
cmp ecx, eax
jge 0x448774
mov eax, ecx
cmp eax, 0xc8
jge 0x448780
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00448530
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046e912
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x448ef0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x475943
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004694b0
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046eb48
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00470064
test eax, eax
je 0x44900c
mov ecx, dword [esp + 0x3c]
call fcn.0046eb75
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x448fd0
push edi
mov ecx, esi
call fcn.0046c1df
mov ecx, esi
call fcn.00449170
cmp dword [esp + 0x38], 1
jne 0x449005
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046c31a
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44ba40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44ba73
push esi
call fcn.0044eb30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44ba6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44baf9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44bae2
mov eax, dword [esi + 8]
test eax, eax
je 0x44ba97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44bade
cmp eax, 2
je 0x44bae2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44ba8a
cmp eax, 3
je 0x44babd
cmp eax, 1
jne 0x44ba8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44ba8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44ba8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044bb20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44bb08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044bb20
add esp, 4
pop esi
ret

Function at 0x46a2a5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46a2dd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046835c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00468334
jmp 0x46a2e9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46b99c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46b9de
call fcn.00471454
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46b9de
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46b9d5
xor eax, eax
jmp 0x46b9e6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046b9ec
pop edi
pop esi
pop ebx
ret 4

Function at 0x471984
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 0x4719b2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4719d0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004718ea
jmp 0x4719d0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4719d0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004718ea
test edi, edi
mov eax, edi
jne 0x4719ba
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10e32
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4

Function at 0x18704
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x14
push 0xb411f6b8
call fcn.000242a0
xor edx, edx
mov ecx, dword [ebp + 8]
cmp ecx, edx
je 0x1878d
mov dword [ebp - 4], edx
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov esi, dword [eax + 0x78]
add esi, ecx
mov edi, dword [esi + 0x1c]
add edi, ecx
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 0x14]
jae 0x18786
mov ecx, dword [ebx + edx*4]
add ecx, dword [ebp + 8]
movzx eax, word [eax + edx*2]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push 0xb411c352
push ecx
call dword [0xb411cdbc]
pop ecx
pop ecx
test eax, eax
jne 0x18774
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 8]
mov dword [ebp - 4], 0xfffffffe
jmp 0x1878f
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
jmp 0x1873b
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.000242e5
ret 4
Function at 0x1a7cc
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
push esi
test edx, edx
je 0x1a8bb
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1a8bb
mov eax, dword [ebp + 8]
push edi
not eax
mov ecx, 0xff
cmp esi, 8
jb 0x1a89d
mov edi, esi
shr edi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 - 0x4bedd470]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 - 0x4bedd470]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 - 0x4bedd470]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 - 0x4bedd470]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 - 0x4bedd470]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 - 0x4bedd470]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 - 0x4bedd470]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 - 0x4bedd470]
inc edx
sub esi, 8
dec edi
jne 0x1a802
pop ebx
test esi, esi
je 0x1a8b6
movzx edi, byte [edx]
xor edi, eax
and edi, ecx
shr eax, 8
xor eax, dword [edi*4 - 0x4bedd470]
inc edx
dec esi
jne 0x1a8a1
not eax
pop edi
jmp 0x1a8bd
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x1b99c
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0xb411f7b8
call fcn.000242a0
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1ba04
push ebx
mov edi, dword [0xb411cc9c]
call edi
test al, al
je 0x1ba04
lea esi, [ebx + 0x3c]
push esi
call edi
test al, al
je 0x1ba04
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1ba04
mov esi, dword [esi]
add esi, ebx
je 0x1ba04
push esi
call edi
test al, al
je 0x1ba04
cmp dword [esi], 0x4550
jne 0x1ba04
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x1c], 1
jmp 0x1ba0b
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.000242e5
ret 4

Function at 0x1c14c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0xb41233e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.0002424a
add esp, 0xc
mov eax, 0xb4126c20
push 0
push 0xb4126c28
mov dword [0xb4126c24], eax
mov dword [0xb4126c20], eax
call dword [0xb411ce00]
xor esi, esi
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0002424a
push 0x3f
push dword [esi - 0x4bedd070]
lea eax, [ebp - 0x84]
push eax
call dword [0xb411cd98]
lea eax, [ebp - 0x84]
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1c1cf
sub eax, ecx
sar eax, 1
push 0
pop ecx
je 0x1c1f0
xor word [ebp + ecx*2 - 0x84], 0x7b
inc ecx
cmp ecx, eax
jb 0x1c1e2
lea eax, [ebp - 0x84]
push eax
call fcn.0001bc1c
add esi, 4
cmp esi, 0x24
jb 0x1c19b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.000241d9
leave
ret
Function at 0x4068fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412018]
jne 0x406905
repz ret
jmp fcn.00406d14

Function at 0x408f70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
test ebx, ebx
je 0x40906b
test edi, edi
je 0x40906b
test esi, esi
je 0x40906b
push 2
push esi
lea eax, [ebp - 4]
push eax
push edi
call fcn.00407910
add esp, 0x10
cmp eax, 2
je 0x408fb0
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x5a4d
cmp word [ebp - 4], cx
jne 0x408fa6
push 4
lea edx, [esi + 0x3c]
push edx
lea eax, [ebp - 8]
push eax
push edi
call fcn.00407910
add esp, 0x10
cmp eax, 4
jne 0x408fa6
mov eax, dword [ebp + 8]
add esi, dword [ebp - 8]
test eax, eax
je 0x408fdf
mov dword [eax], esi
push 2
lea edx, [esi + 4]
push edx
lea eax, [ebp - 4]
push eax
push edi
call fcn.00407910
add esp, 0x10
cmp eax, 2
jne 0x408fa6
movzx eax, word [ebp - 4]
cmp eax, 0x14c
je 0x409038
cmp eax, 0x8664
jne 0x408fa6
push 0x108
push esi
push ebx
push edi
call fcn.00407910
add esp, 0x10
cmp eax, 0x108
jne 0x408fa6
mov eax, dword [ebx]
sub eax, 0x4550
neg eax
sbb eax, eax
and eax, 0x80003fc5
add eax, 0x40
pop esi
mov esp, ebp
pop ebp
ret
push 0xf8
push esi
push ebx
push edi
call fcn.00407910
add esp, 0x10
cmp eax, 0xf8
jne 0x408fa6
mov eax, dword [ebx]
sub eax, 0x4550
neg eax
sbb eax, eax
and eax, 0x80003fe5
add eax, 0x20
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401776
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
scasb al, byte es:[edi]
or eax, sym.imp.MSVCRT.dll__iob
push eax
dec ebp
rol dword [eax + 0x68], 0x74
push ecx
jg 0x401765
push ecx
call dword [0x40b680]
lodsb al, byte cs:[esi]
add dl, byte [ecx + 0xcc48300]
test dword [eax + 0x68500f74], ebx
je 0x401787
push eax
push 0x5040d254
invalid

Function at 0x40381c
Capabilities:
Encode data using xor

Disassembly:
add esp, 0x30
push ecx
jne 0x403866
loopne 0x403876
clc
cdq
rcl dword [eax - 0x75]
inc ebp
rcl dword [eax - 0x7a]
call fcn.0040b590
push edx
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [0x410ba8]
push edi
push edx
push ebx
push edi
cld
xor ebp, dword [eax - 0x38]
fild word [eax]
call esi
add esp, 0x30
push 0xf1dfb8
jle 0x403829
xor dword [ebx], 4
pop edi
pop esi
clc
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4102a8]
mov ecx, dword [0xc38bd010]
push ebx
push esi
cmp eax, ecx
push edi
jge 0x403a7a
mov esi, dword [ebp - 0x52]
xor ebx, ebx
mov eax, dword [esi]
mov dword [esi + 0xc], ebx
sal dword [ecx], 0x89
stosb byte es:[edi], al
xchg ecx, eax
mov ch, 0x9e
and al, 8
add byte [eax], al
aaa
sahf
and byte [eax], cl
add byte [eax], al
mov dword [esi + 0x910828], ebx
mov dword [esi + 0x14], ebx
xor cl, byte [eax]
push eax
call fcn.00404ce0
jmp 0x4038b9
mov edx, dword [esi]
mov eax, dword [0x4117fc]
test al, 0x22
mov ecx, dword [eax + 0x10]
lea edi, [esi - 0x6a]
push 0xffffffffffffffea
not byte [edi - 0x18]
pop ds
mov cl, 0
and edi, dword [ebx]
ret
pop edi
pop esi
retf
Function at 0x402280
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x40a020]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
mov esi, ecx
push edi
mov eax, esi
call fcn.00401a7e
push 0x410
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call edi
test eax, eax
jne 0x4022e3
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.0040645e
add esp, 0x420
ret
cmp eax, 0x208
jae 0x4022ca
lea ecx, [esp + 8]
push ecx
push 0x209
call edi
test eax, eax
je 0x4022ca
cmp eax, 0x208
jae 0x4022ca
lea eax, [esp + 8]
mov word [esp + 0x418], 0
call fcn.00401b4a
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0040645e
add esp, 0x420
ret

Function at 0x4024f0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x407021
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x40a020]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
mov eax, dword [0x40a020]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esi + 0x1048], ebx
mov dword [esi + 0x104c], ebx
mov dword [esi + 0x1050], ebx
push 0x410
push ebx
push esi
mov dword [esp + 0x144], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x410
lea eax, [esi + 0x410]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
lea ecx, [esi + 0x820]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x410
lea edx, [esi + 0xc20]
push ebx
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x110
lea eax, [esp + 0x1c]
push ebx
push eax
mov byte [esi + 0x1030], bl
mov byte [esi + 0x1031], bl
mov dword [esi + 0x1034], ebx
mov byte [esi + 0x1032], bl
mov byte [esi + 0x1038], 1
mov dword [esp + 0x20], 0x114
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4025ef
cmp dword [esp + 0x18], 6
jb 0x4025ef
mov byte [esi + 0x1032], 1
call fcn.00402650
mov ecx, esi
call fcn.00403750
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0040645e
add esp, 0x130
ret
Function at 0x403750
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x434
mov eax, dword [0x40a020]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00403460
lea ecx, [esi + 0xc20]
mov eax, ecx
lea ebx, [eax + 2]
xor edi, edi
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x403780
sub eax, ebx
sar eax, 1
je 0x40379d
lea eax, [esi + 0x1044]
push eax
call fcn.00403920
push 0x208
lea ecx, [esp + 0x232]
push edi
push ecx
mov word [esp + 0x238], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x230]
mov ebx, 0x104
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x208
lea ecx, [esp + 0x22]
push edi
push ecx
mov word [esp + 0x43e], di
mov word [esp + 0x28], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esi + 0x1048]
add esi, 0x1044
cmp eax, edi
mov word [esp + 0x222], di
je 0x40383d
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x9ad70599
imul ecx
add edx, ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x403872
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403844
sub eax, edx
sar eax, 1
push 1
add eax, 1
push eax
lea edx, [esp + 0x234]
push edx
push edi
mov edx, esi
lea ecx, [esp + 0x2c]
call fcn.004031f0
jmp 0x403904
mov eax, dword [esi + 4]
cmp eax, edi
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
je 0x403899
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x9ad70599
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40389b
call ebx
mov edi, dword [esi + 4]
cmp byte [edi + 0x69c], 1
je 0x4038ae
mov ebp, dword [esi + 8]
cmp edi, ebp
jmp 0x4038e1
mov ebp, dword [sym.imp.MSVCR80.dll__wcsicmp]
lea ecx, [esp + 0x22c]
push ecx
push edi
call ebp
add esp, 8
test eax, eax
jne 0x4038db
lea edx, [esp + 0x1c]
push edx
add edi, 0x280
push edi
call ebp
add esp, 8
test eax, eax
je 0x403904
mov ebp, dword [esi + 8]
cmp dword [esi + 4], ebp
jbe 0x4038e5
call ebx
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x4038ef
call ebx
cmp edi, ebp
je 0x403904
mov ebx, dword [esi + 8]
push edi
mov eax, ebp
call fcn.004051b0
mov dword [esi + 8], eax
add esp, 4
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040645e
add esp, 0x434
ret
Function at 0x403920
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x406ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40a020]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp esi, edi
je 0x403b25
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403b25
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x7c], edi
push esi
lea edx, [esp + 0x18]
lea ecx, [esp + 0x28]
lea esi, [esp + 0x20]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.00403130
test al, al
je 0x403a2d
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ecx, esi
add ecx, 0xffffffff
mov eax, ebp
adc eax, 0xffffffff
cmp eax, edi
ja 0x403a2d
jb 0x4039dc
cmp ecx, 0xffffe
ja 0x403a2d
mov eax, esi
lea ecx, [esp + 0x30]
call fcn.004047d0
mov eax, dword [esp + 0x34]
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x4039fb
mov ecx, dword [esp + 0x38]
sub ecx, eax
jne 0x403a05
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
push edi
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp ecx, ebp
ja 0x403a2d
jb 0x403a24
cmp eax, esi
jae 0x403a2d
lea ecx, [esp + 0x30]
call fcn.004047d0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x34]
cmp esi, edi
je 0x403b25
mov ebx, dword [esp + 0x38]
sub ebx, esi
jne 0x403a56
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x403b25
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
lea eax, [esp + 0x50]
mov byte [esp + 0x7c], 1
call fcn.00405350
cmp ebx, edi
ja 0x403a7e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x40]
push eax
push esi
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebx
call fcn.004053d0
test al, al
je 0x403b13
mov ebx, dword [esp + 0x44]
cmp ebx, edi
mov ecx, dword [esp + 0x48]
jne 0x403aa4
xor esi, esi
jmp 0x403aa8
mov esi, ecx
sub esi, ebx
mov eax, 0x35ae0b31
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xa
imul eax, eax, 0x69d
sub esi, eax
jne 0x403b13
cmp ebx, edi
jne 0x403acc
xor ecx, ecx
jmp 0x403ace
sub ecx, ebx
mov eax, 0x35ae0b31
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xa
mov esi, ecx
je 0x403b13
mov ebx, dword [esp + 0x84]
push esi
push ebx
call fcn.004045f0
imul esi, esi, 0x69d
push esi
lea esi, [esp + 0x44]
call fcn.004048a0
push eax
xor edi, edi
mov esi, ebx
call fcn.004046c0
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea esi, [esp + 0x40]
call fcn.004047a0
lea esi, [esp + 0x30]
call fcn.004047a0
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4