joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435670
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46b1c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4356a9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4357bc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4356bd
mov eax, 0xffffffc7
jmp 0x4357be
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4356ce
cmp dword [esi + 8], eax
jne 0x4356bd
cmp dword [esi + 8], eax
jne 0x4356e7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4356e7
mov eax, 0xffffffc7
jmp 0x4357be
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4356fb
push eax
mov ecx, ebx
call fcn.00434ea0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00408580
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43572c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004085a0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00434610
test eax, eax
mov dword [esp + 0x38], eax
je 0x43575f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6dfe28
call fcn.00408780
mov eax, dword [esp + 0x38]
jmp 0x4357be
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004354d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4357a3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004354f0
mov esi, eax
test esi, esi
jne 0x4357d3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004354d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x435775
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6dfe28
call fcn.00408780
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6dfe28
call fcn.00408780
mov eax, esi
jmp 0x4357be

Function at 0x438900
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x438960
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x438960
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x438960
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x438960
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4389a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43e8b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b7f8
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.004649d2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043e250
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.00464900
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.004611c4
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.004611c4
push 1
push 0
push 0
mov ecx, esi
call fcn.0046116c
push 1
push 0
push 1
mov ecx, esi
call fcn.0046116c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00464a44
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ea30
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b818
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.004649d2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043e250
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.00464900
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 0x43eaf4
cmp dword [esp + 0x40], 1
jne 0x43eaf2
cmp ecx, eax
jge 0x43eaf4
mov eax, ecx
cmp eax, 0xc8
jge 0x43eb00
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043e8b0
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.00464a44
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43f280
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b883
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.0045f5e4
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.00464c7a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00466196
test eax, eax
je 0x43f39c
mov ecx, dword [esp + 0x3c]
call fcn.00464ca7
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 0x43f360
push edi
mov ecx, esi
call fcn.0046230b
mov ecx, esi
call fcn.0043f500
cmp dword [esp + 0x38], 1
jne 0x43f395
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.00462446
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 0x441dc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441df3
push esi
call fcn.00444eb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x441dec
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 0x441e79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441e62
mov eax, dword [esi + 8]
test eax, eax
je 0x441e17
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 0x441e5e
cmp eax, 2
je 0x441e62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x441e0a
cmp eax, 3
je 0x441e3d
cmp eax, 1
jne 0x441e0a
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 0x441e0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x441e0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441ea0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441e88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441ea0
add esp, 4
pop esi
ret

Function at 0x4603da
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x460412
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.0045e48e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045e466
jmp 0x46041e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x461ac8
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 0x461b0a
call fcn.00467581
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461b0a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x461b01
xor eax, eax
jmp 0x461b12
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461b18
pop edi
pop esi
pop ebx
ret 4

Function at 0x467ab1
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 0x467adf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467afd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467a17
jmp 0x467afd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467afd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467a17
test edi, edi
mov eax, edi
jne 0x467ae7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403d50
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x403e9b
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
nop dword [eax]
call esi
add byte [edi + ebp], 0x6e
call esi
add byte [edi + ebp], 0x3b
call esi
xor byte [edi + ebp], 0xba
call esi
add byte [edi + ebp], 0xdd
call esi
add byte [edi + ebp], 9
call esi
add byte [edi + ebp], 0xa9
call esi
add byte [edi + ebp], 0x17
call esi
xor byte [edi + ebp], 0x35
call esi
inc byte [edi + ebp]
call esi
add byte [edi + ebp], 0xfc
call esi
xor byte [edi + ebp], 0xb2
call esi
add byte [edi + ebp], 0x87
call esi
call esi
add byte [edi + ebp], 0x2e
call esi
add byte [edi + ebp], 0xfa
call esi
add byte [edi + ebp], 0x4b
call esi
xor byte [edi + ebp], 0xb4
call esi
add byte [edi + ebp], 0x22
call esi
add byte [edi + ebp], 0x4f
call esi
add byte [edi + ebp], 0x4a
call esi
add byte [edi + ebp], 0xb3
call esi
add byte [edi + ebp], 0xb2
call esi
add byte [edi + ebp], 0x2b
call esi
add byte [edi + ebp], 0xb7
call esi
add byte [edi + ebp], 0x21
call esi
xor byte [edi + ebp], 0x2f
call esi
add byte [edi + ebp], 0x4b
call esi
add byte [edi + ebp], 0x66
call esi
add byte [edi + ebp], 0xcd
call esi
add byte [edi + ebp], 0xf5
call esi
add byte [edi + ebp], 0xc
call esi
xor byte [edi + ebp], 0xbe
call esi
xor byte [edi + ebp], 0xf0
call esi
xor byte [edi + ebp], 0xb6
call esi
add byte [edi + ebp], 0x43
call esi
add byte [edi + ebp], 0xf9
call esi
xor byte [edi + ebp], 1
call esi
inc byte [edi + ebp]
call esi
add byte [edi + ebp], 0xea
call esi
xor byte [edi + ebp], 0xa4
call esi
add byte [edi + ebp], 0x12
call esi
xor byte [edi + ebp], 0x93
call esi
add byte [edi + ebp], 0xe5
call esi
xor byte [edi + ebp], 0x61
call esi
add byte [edi + ebp], 0x3e
call esi
xor byte [edi + ebp], 0xc0
call esi
add byte [edi + ebp], 0xd1
call esi
add byte [edi + ebp], 0xa0
call esi
add byte [edi + ebp], 0x33
inc edi
cmp edi, ebx
jb 0x403d70
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x404e40
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov eax, dword [0x4be81c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x3c]
push edi
mov dword [esp + 0x18], 0
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
add ecx, ebx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x40502a
nop word [eax + eax]
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404eb1
sub eax, esi
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.00401430
push str.Dont_afraid
push 0x4bfa18
call fcn.00401100
push eax
call fcn.00401680
mov edi, dword [esp + 0x40]
lea ebx, [esp + 0x30]
mov esi, edi
xor esi, 0x14d
cmp dword [esp + 0x44], 0x10
cmovae ebx, dword [esp + 0x30]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.004055c0
add esp, 0x18
xor edx, edx
test edi, edi
je 0x404f31
nop dword [eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e991
inc edx
imul esi, esi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor esi, ecx
cmp edx, edi
jl 0x404f10
mov eax, dword [esp + 0x34]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x404f5b
sub eax, 1
je 0x404f51
sub eax, 1
jne 0x404f69
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x48]
je 0x404fd9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x404fc8
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404fba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405043
push ecx
push edx
call fcn.00407a87
mov eax, dword [esp + 0x18]
add esp, 8
mov ebx, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x1c]
jb 0x404e90
jmp 0x40502a
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x40502a
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405020
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405043
push ecx
push edx
call fcn.00407a87
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407a95
add esp, 0x30
ret
call fcn.0040c28f
int3
Function at 0x4053b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4be81c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea edi, [ebp - 0x10]
mov dword [ebp - 0x10], 1
lea esi, [ebp - 4]
mov dword [ebp - 0xc], 2
sub esi, edi
mov dword [ebp - 8], 3
mov edi, esi
mov dword [ebp - 0x18], esi
xor eax, eax
sar edi, 2
xor ebx, ebx
mov dword [ebp - 0x14], eax
test edi, edi
je 0x405461
cmp edi, 0x3fffffff
ja 0x405584
lea esi, [edi*4]
cmp esi, 0x1000
jb 0x405435
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x405589
push eax
call fcn.00407a57
add esp, 4
test eax, eax
je 0x40558e
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x405448
test esi, esi
je 0x405446
push esi
call fcn.00407a57
add esp, 4
mov ebx, eax
jmp 0x405448
xor ebx, ebx
push dword [ebp - 0x18]
lea eax, [esi + ebx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.00408ac0
add esp, 0xc
lea eax, [ebx + edi*4]
sub eax, ebx
sar eax, 2
test eax, eax
je 0x405593
push dword [ebx]
mov ecx, 0x4bfa18
call fcn.00402360
push eax
call fcn.00401680
add esp, 4
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40548f
call 0x856545d
pushal
inc edx
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4bf750], eax
sub eax, eax
je 0x4054b4
jmp 0xa840bd5f
push 0x8a800
push section..data
call fcn.00403d50
push 8
call fcn.00407a57
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40550f
push 4
call fcn.00407a57
add esp, 4
test eax, eax
je 0x4054e9
mov dword [eax], 0x4027b0
jmp 0x4054eb
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401590
push 0
push 0
call fcn.0040ee7a
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x405598
jmp 0x405511
xor esi, esi
cmp dword [esi + 4], 0
je 0x4055a5
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4055ac
push 0
push dword [esi + 4]
push dword [esi]
call fcn.00405855
add esp, 0xc
test eax, eax
jne 0x4055b3
mov dword [esi], eax
mov dword [esi + 4], eax
test ebx, ebx
je 0x405571
mov ecx, dword [ebp - 0x14]
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x405567
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x40558e
mov ebx, edx
push ecx
push ebx
call fcn.00407a87
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407a95
mov esp, ebp
pop ebp
ret
call fcn.00403920
call fcn.004038d0
call fcn.0040c28f
call fcn.00403940
push 6
mov dword [edi], 0
call fcn.00405995
push 1
call fcn.00405995
push 5
call fcn.00405995
push 2
call fcn.00405995
int3
Function at 0x408241
Capabilities:
Parse pe header

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

Function at 0x41626c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a3fc
push 0x42a3f4
push str.FlsAlloc
push 0x1e
call fcn.00416099
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4162a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x426150]
call esi
jmp 0x4162a6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4162ea
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a40c
push 0x42a404
push str.FlsGetValue
push 0x20
call fcn.00416099
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416321
push dword [ebp + 8]
mov ecx, esi
call dword [0x426150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x418d8a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418a2c

Function at 0x418d95
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418bbb
Function at 0x41a400
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004085c0
mov eax, dword [0x4be81c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041786a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a442
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a59e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424c60
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4c03a8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a826
mov ecx, dword [esi*4 + 0x4c03a8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41a597
cmp eax, dword [edi + ecx + 0x24]
jne 0x41a597
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a597
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a826
add esp, 0x14
test edx, edx
jl 0x41a597
jg 0x41a50d
test eax, eax
jb 0x41a597
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41a597
jl 0x41a527
cmp dword [ebp - 0x1008], eax
ja 0x41a597
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a545
test ebx, ebx
je 0x41a57e
cmp ecx, edi
jae 0x41a57e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a55f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a56b
cmp byte [ecx + 1], 0xa
jne 0x41a56b
inc ecx
jmp 0x41a56b
movzx eax, al
movsx eax, byte [eax + 0x4bf170]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a545
cmp edx, ebx
jne 0x41a545
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41a59c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407a95
leave
ret
Function at 0x41d17d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41d21a
push ebx
push esi
call fcn.0041d146
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041bdcb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d1c7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d219
push edi
push eax
call fcn.00416908
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d1e7
call fcn.00415dbc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d218
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041bdcb
add esp, 0x20
test eax, eax
jne 0x41d206
push edi
call fcn.00415dbc
jmp 0x41d20e
push ebx
call fcn.00415dbc
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret