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

Disassembly:
push 0xffffffffffffffff
push 0x479828
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.00472165
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c240
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.00472093
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.0046e953
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.0046e953
push 1
push 0
push 0
mov ecx, esi
call fcn.0046e8fb
push 1
push 0
push 1
mov ecx, esi
call fcn.0046e8fb
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004721d7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ca20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479848
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.00472165
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c240
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.00472093
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 0x43cae4
cmp dword [esp + 0x40], 1
jne 0x43cae2
cmp ecx, eax
jge 0x43cae4
mov eax, ecx
cmp eax, 0xc8
jge 0x43caf0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043c8a0
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.004721d7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d270
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4798b3
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.0046cd6e
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.0047240d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00473929
test eax, eax
je 0x43d38c
mov ecx, dword [esp + 0x3c]
call fcn.0047243a
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 0x43d350
push edi
mov ecx, esi
call fcn.0046fa9d
mov ecx, esi
call fcn.0043d4f0
cmp dword [esp + 0x38], 1
jne 0x43d385
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.0046fbd8
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 0x43fdc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fdf3
push esi
call fcn.00442ec0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fdec
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 0x43fe79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fe62
mov eax, dword [esi + 8]
test eax, eax
je 0x43fe17
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 0x43fe5e
cmp eax, 2
je 0x43fe62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43fe0a
cmp eax, 3
je 0x43fe3d
cmp eax, 1
jne 0x43fe0a
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 0x43fe0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43fe0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043fea0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43fe88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043fea0
add esp, 4
pop esi
ret
Function at 0x44c180
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x479ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00471816
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], 0
call fcn.00471816
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 1
call fcn.00471816
mov edi, dword [esp + 0x68]
lea eax, [esp + 0x40]
push eax
push 0x18
push edi
mov byte [esp + 0x6c], 2
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esi + 0x1a0d8]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
lea ecx, [esp + 0x10]
push ebp
call fcn.004718cd
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x6c]
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call ebx
push eax
lea ecx, [esp + 0x24]
call fcn.004718cd
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ecx
push eax
call ebx
push eax
lea ecx, [esp + 0x34]
call fcn.004718cd
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
test edi, edi
je 0x44c25b
mov ecx, dword [esp + 0x24]
push edi
push ecx
call ebx
jmp 0x44c25d
xor eax, eax
mov edi, dword [esp + 0x68]
mov dword [esi + 0x1a2ec], eax
test edi, edi
je 0x44c275
mov edx, dword [esp + 0x34]
push edi
push edx
call ebx
jmp 0x44c277
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1a2f0], eax
lea eax, [esp + 0x20]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, ecx
mov ecx, dword [esp + 0x74]
mov edx, ecx
imul edx, dword [esp + 0x78]
push edx
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x1a2ec]
test eax, eax
je 0x44c2c6
mov edx, dword [esp + 0x24]
push eax
push edx
call ebx
mov esi, dword [esi + 0x1a2f0]
test esi, esi
je 0x44c2d8
mov eax, dword [esp + 0x34]
push esi
push eax
call ebx
lea ecx, [esp + 0x10]
call fcn.00471904
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 1
call fcn.0047194b
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0
call fcn.0047194b
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.0047194b
mov ecx, dword [esp + 0x58]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc
Function at 0x450190
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, ebx
mov esi, ecx
mov ecx, dword [esp + 0x14]
and edi, 0xff
or edi, 0x200
mov edx, dword [esi + 0x19d6c]
shl edi, 8
and eax, 0xff
and ecx, 0xff
or edi, eax
shl edi, 8
or edi, ecx
push edi
push edx
call dword [sym.imp.GDI32.dll_GetNearestPaletteIndex]
mov ecx, dword [esi + 0x19d70]
xor edx, edx
mov dl, byte [ecx + eax*4 + 6]
mov ebp, edx
xor edx, edx
mov dl, byte [ecx + eax*4 + 5]
or ebp, 0x200
shl ebp, 8
or ebp, edx
xor edx, edx
mov dl, byte [ecx + eax*4 + 4]
shl ebp, 8
or ebp, edx
cmp ebp, edi
je 0x450296
mov cx, word [ecx + 2]
mov eax, dword [esi + 0x1a180]
mov edx, ecx
dec eax
and edx, 0xffff
cmp edx, eax
jge 0x450296
cmp cx, 0xff
jae 0x450296
mov eax, dword [esi + 0x19d6c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x19d70]
mov dl, byte [esp + 0x14]
xor ecx, ecx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 4], dl
mov eax, dword [esi + 0x19d70]
mov dl, byte [esp + 0x18]
xor ecx, ecx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 5], dl
mov eax, dword [esi + 0x19d70]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 6], bl
mov eax, dword [esi + 0x19d70]
mov dx, word [eax + 2]
mov byte [eax + edx*4 + 7], 0
mov eax, dword [esi + 0x19d70]
inc word [eax + 2]
mov eax, dword [esi + 0x19d70]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov dword [esi + 0x19d6c], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4509f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x479dd1
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
lea edi, [esi + 0x18]
mov dword [esi], 0x485184
mov ecx, edi
call fcn.004502a0
push fcn.004509c0
push 0x450980
push 0x15
lea eax, [esi + 0x34]
xor ebp, ebp
push 0x1c
push eax
mov dword [esp + 0x2c], ebp
call fcn.0045887e
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x485178
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], 0xffffff
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], 1
mov dword [esi + 0x2c], ebp
call fcn.004504a0
mov dword [esi + 0x30], ebp
lea ecx, [esi + 0x280]
lea eax, [esi + 0x38]
mov edx, 0x15
mov dword [eax], 1
mov dword [ecx], ebp
add eax, 0x1c
add ecx, 4
dec edx
jne 0x450a79
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4524a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x452506
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x452506
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4524e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x453040
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00453190
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x453060
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x453041
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00453190
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x453060
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x453090
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4530e7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4530fd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00453120
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x453120
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x4531b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4531f9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x453670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47a080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00453220
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004532a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004532a0
lea ecx, [esi + 0xc]
call fcn.0046b74b
lea ecx, [esi + 0x10]
call fcn.0046b74b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00455ad0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00455ad0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00455ad0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046b7c0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046b7c0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x454318
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47a2a8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x454328
call fcn.00454840
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x45440b
cmp byte [edi], 0
je 0x45440b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45434d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00453040
test eax, eax
jne 0x45436d
push 0x49d6c0
lea ecx, [esi + 0x38]
call fcn.0046b8fd
jmp 0x45440b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00453090
test eax, eax
jne 0x45439c
mov ecx, esi
call fcn.00453190
push edi
add esi, 0x38
push 0x49d69c
push esi
call fcn.0046950c
add esp, 0xc
jmp 0x45440b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004550c0
test eax, eax
je 0x454404
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004544e0
test eax, eax
jne 0x454420
push edi
lea eax, [esi + 0x38]
push 0x49d678
push eax
call fcn.0046950c
add esp, 0xc
mov ecx, esi
call fcn.00454840
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4544c8
mov ecx, dword [0x49d930]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0046950c
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00453140
test eax, eax
jne 0x45448a
push 0x49d65c
lea ecx, [esi + 0x38]
call fcn.0046b8fd
jmp 0x45449a
push 0xfa
mov ecx, esi
call fcn.004550c0
test eax, eax
jne 0x4544b7
mov ecx, esi
call fcn.00454840
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046b7c0
jmp 0x45440b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046b7c0
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46db64
Capabilities:
Get graphical window text

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

Function at 0x46f257
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 0x46f299
call fcn.00474de7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f299
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f290
xor eax, eax
jmp 0x46f2a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f2a7
pop edi
pop esi
pop ebx
ret 4

Function at 0x475317
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 0x475345
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475363
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047527d
jmp 0x475363
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475363
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047527d
test edi, edi
mov eax, edi
jne 0x47534d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401070
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 0x401089
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4010c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4010c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4010c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010b0
cmp esi, eax
jb 0x4010ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40a3e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a3fc
test al, 0x10
mov eax, 0
setne al
inc eax
ret
xor eax, eax
ret

Function at 0x40a610
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b3a6
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x4a0034]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0034]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
mov edi, dword [esp + 0x868]
mov ebp, dword [esp + 0x86c]
push 0x7ff
xor esi, esi
lea eax, [esp + 0x59]
push esi
push eax
mov byte [esp + 0x60], 0
call fcn.0044f2d0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
xor bl, bl
call fcn.00404a00
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x860], esi
call fcn.00404a00
mov dword [esp + 0x50], esi
mov byte [esp + 0x860], 1
push esi
lea ecx, [esp + 0x18]
push ecx
push 0x800
lea edx, [esp + 0x60]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a770
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x24]
call fcn.00409d90
test bl, bl
jne 0x40a6f2
cmp dword [esp + 0x34], 4
jb 0x40a6a2
push 4
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
call fcn.00403050
mov bl, 1
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x18]
jb 0x40a6a2
add eax, 0xfffffffc
push eax
push 4
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
call fcn.0040a540
push 0x48
push esi
push ebp
lea ecx, [esp + 0x44]
call fcn.00403050
mov ecx, dword [esp + 0x50]
add ecx, 0xffffffb8
push ecx
push 0x48
add ebp, 0x48
push ebp
lea ecx, [esp + 0x44]
call fcn.0040a540
lea ecx, [esp + 0x38]
call fcn.00403fb0
lea ecx, [esp + 0x1c]
call fcn.00403fb0
xor eax, eax
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.0044f172
add esp, 0x850
ret
lea ecx, [esp + 0x38]
call fcn.00403fb0
lea ecx, [esp + 0x1c]
call fcn.00403fb0
mov eax, 1
jmp 0x40a748
Function at 0x40a790
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b3eb
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x4a0034]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0034]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
mov eax, dword [esp + 0x850]
mov esi, dword [esp + 0x854]
xor ebx, ebx
push 0x7ff
lea ecx, [esp + 0x41]
push ebx
push ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x48], bl
call fcn.0044f2d0
mov eax, dword [esi + 0x60]
add esp, 0xc
lea ecx, [esp + 0x20]
xor edi, edi
lea ebp, [eax + 0x4c]
call fcn.00404a00
mov dword [esp + 0x38], ebx
push 4
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x850], ebx
mov dword [esp + 0x20], ebp
call fcn.00409d90
push 0x48
push esi
lea ecx, [esp + 0x28]
call fcn.00409d90
mov eax, dword [esi + 0x60]
push eax
push ebx
add esi, 0x48
push esi
lea ecx, [esp + 0x2c]
call fcn.0040a480
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [ebx]
push 0x800
push edi
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00403050
cmp eax, ebx
je 0x40a8c0
mov ecx, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x40a8c0
add edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
jb 0x40a850
lea ecx, [esp + 0x20]
call fcn.00403fb0
xor eax, eax
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.0044f172
add esp, 0x838
ret
lea ecx, [esp + 0x20]
call fcn.00403fb0
mov eax, 1
jmp 0x40a898