joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f8c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476af8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042a1c0
test eax, eax
je 0x42f9c8
lea ecx, [esp + 0xc]
call fcn.00401bc0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042a1c0
mov ecx, eax
call fcn.00427890
test eax, eax
je 0x42f9af
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42f9af
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42f9af
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401dc0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42f991
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42f9af
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4aea58]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x47bf38
call fcn.00401dc0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42fa10
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042a1c0
test eax, eax
je 0x42faff
mov ecx, edi
call fcn.0042a1c0
mov ecx, eax
call fcn.00427740
test eax, eax
jne 0x42faff
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42faff
mov eax, dword [0x4aea58]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42fa72
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042a1c0
mov ecx, eax
call fcn.00427970
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42faff
cmp ebx, eax
jne 0x42faff
cmp dword [esp + 0x10], eax
jne 0x42fae5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x432730
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476d88
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 0x432769
inc eax
mov dword [esi + 0x10], eax
jmp 0x43287c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43277d
mov eax, 0xffffffc7
jmp 0x43287e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43278e
cmp dword [esi + 8], eax
jne 0x43277d
cmp dword [esi + 8], eax
jne 0x4327a7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4327a7
mov eax, 0xffffffc7
jmp 0x43287e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4327bb
push eax
mov ecx, ebx
call fcn.00431f60
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.00401bc0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4327ec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401be0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004316d0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43281f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47bf38
call fcn.00401dc0
mov eax, dword [esp + 0x38]
jmp 0x43287e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00432590
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x432863
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004325b0
mov esi, eax
test esi, esi
jne 0x432893
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00432590
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x432835
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47bf38
call fcn.00401dc0
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], 0x47bf38
call fcn.00401dc0
mov eax, esi
jmp 0x43287e

Function at 0x435820
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x435880
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x435880
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x435880
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x435880
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 0x4358c0
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 0x43b990
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4773b8
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.0046fd34
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043b330
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.0046fc62
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.0046c526
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.0046c526
push 1
push 0
push 0
mov ecx, esi
call fcn.0046c4ce
push 1
push 0
push 1
mov ecx, esi
call fcn.0046c4ce
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046fda6
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43bb10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4773d8
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.0046fd34
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043b330
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.0046fc62
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 0x43bbd4
cmp dword [esp + 0x40], 1
jne 0x43bbd2
cmp ecx, eax
jge 0x43bbd4
mov eax, ecx
cmp eax, 0xc8
jge 0x43bbe0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043b990
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.0046fda6
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43c360
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477443
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.0046a943
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.0046ffdc
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004715f2
test eax, eax
je 0x43c47c
mov ecx, dword [esp + 0x3c]
call fcn.00470009
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 0x43c440
push edi
mov ecx, esi
call fcn.0046d66d
mov ecx, esi
call fcn.0043c5e0
cmp dword [esp + 0x38], 1
jne 0x43c475
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.0046d7a8
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 0x43eea0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43eed3
push esi
call fcn.00441f90
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43eecc
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 0x43ef59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43ef42
mov eax, dword [esi + 8]
test eax, eax
je 0x43eef7
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 0x43ef3e
cmp eax, 2
je 0x43ef42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43eeea
cmp eax, 3
je 0x43ef1d
cmp eax, 1
jne 0x43eeea
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 0x43eeea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43eeea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043ef80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43ef68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043ef80
add esp, 4
pop esi
ret
Function at 0x450180
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4501cc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4501cc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4501b6
push eax
call ebp
test ax, ax
jl 0x4501c4
inc esi
add edi, 4
cmp esi, 6
jb 0x4501a8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0044fe80
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x452c40
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x452ca0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x452ca0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x452ca0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x452ca0
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 0x452cb0
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 0x454d10
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x454d5a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x454d89
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x454dcb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x46b739
Capabilities:
Get graphical window text

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

Function at 0x46ce2a
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 0x46ce6c
call fcn.00472c1b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ce6c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46ce63
xor eax, eax
jmp 0x46ce74
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ce7a
pop edi
pop esi
pop ebx
ret 4

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

Disassembly:
mov eax, 0x478304
call fcn.0045be58
push ecx
push ecx
push esi
push 0x14
call fcn.004690d6
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x46e884
mov ecx, esi
call fcn.004698aa
mov eax, dword [0x49df4c]
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CFileException.0
mov dword [esi + 0xc], eax
call fcn.004694d2
jmp 0x46e886
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x48a8c0
push eax
mov dword [ebp - 0x10], esi
call fcn.0045b8cc
pop esi

Function at 0x47314b
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 0x473179
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473197
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004730b1
jmp 0x473197
mov eax, dword [esi + 0x14]
test eax, eax
je 0x473197
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004730b1
test edi, edi
mov eax, edi
jne 0x473181
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x60be6ca8
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x5e7f7520
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1001645
Capabilities:
Get hostname
Get session user name
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x1008390]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x140]
push eax
xor ebx, ebx
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x140], 0x64
mov dword [ebp - 0x134], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x100173c
push 0xc8
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x100173c
push 8
pop ecx
xor eax, eax
push 2
pop esi
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x100173c
push 0x1001264
call fcn.0100538b
cmp eax, 3
pop ecx
jne 0x100173c
lea eax, [ebp - 0x68]
push eax
call fcn.01004ba0
cmp eax, ebx
mov dword [ebp - 0x13c], eax
je 0x100173c
mov eax, dword [ebp - 0x134]
push dword [eax + 0x14]
call fcn.01004ba0
cmp eax, ebx
mov dword [ebp - 0x138], eax
je 0x100173c
push eax
push dword [ebp - 0x13c]
push 0x1001258
call fcn.0100538b
add esp, 0xc
cmp eax, esi
je 0x1001796
cmp dword [ebp - 0x134], ebx
je 0x1001750
push dword [ebp - 0x134]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0x13c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x1001770
push dword [ebp - 0x13c]
push ebx
call edi
push eax
call esi
cmp dword [ebp - 0x138], ebx
je 0x1001784
push dword [ebp - 0x138]
push ebx
call edi
push eax
call esi
push 0x279f
push 2
call fcn.010064fd
pop ecx
pop ecx
xor eax, eax
jmp 0x10017e4
mov eax, dword [ebp - 0x134]
push dword [eax + 0x14]
lea eax, [ebp - 0x68]
push eax
push 0x27a0
push esi
call fcn.010064fd
add esp, 0x10
push dword [ebp - 0x134]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push dword [ebp - 0x13c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push dword [ebp - 0x138]
push ebx
call esi
push eax
call edi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01006192
leave
ret
Function at 0x1001c42
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1008390]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp dword [0x1009f88], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
jne 0x1001c8b
mov eax, dword [0x1008bb0]
cmp eax, ebx
jne 0x1001c6e
mov eax, ecx
add eax, 4
mov dword [0x1008bb0], eax
mov eax, dword [eax]
cmp eax, ebx
jne 0x1001e2b
mov dword [0x1008bb0], ebx
jmp 0x1001e2b
mov eax, dword [0x100cc94]
cmp eax, ebx
push esi
push edi
mov esi, 0x100cca0
jne 0x1001dc4
mov edi, dword [sym.imp.msvcrt.dll_getenv]
push 0x10012d0
call edi
cmp eax, ebx
pop ecx
jne 0x1001cda
push 0x10012cc
call edi
cmp eax, ebx
pop ecx
jne 0x1001cda
push 0x10012c4
call edi
cmp eax, ebx
pop ecx
jne 0x1001cda
push 0x10012bc
call edi
cmp eax, ebx
pop ecx
jne 0x1001cda
mov eax, 0x10012b8
push 0x10012b4
push eax
call dword [sym.imp.msvcrt.dll__tempnam]
push esi
mov edi, eax
call dword [sym.imp.msvcrt.dll_tmpnam]
push 0xff
push edi
push esi
call dword [sym.imp.msvcrt.dll__mbsnbcpy]
push edi
mov byte [0x100cd9f], 0
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [0x100a3b0]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x1009f80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push 0x1009f60
push eax
mov dword [0x100a3b0], ebx
mov dword [0x1009f80], ebx
call dword [sym.imp.msvcrt.dll__mbscpy]
push ebx
push 0x1001250
mov ebx, 0x1001290
push ebx
mov edi, 0x1001969
push edi
call fcn.01003a48
add esp, 0x34
mov ecx, 0x10012a0
jmp 0x1001d68
push ecx
push eax
push esi
push 0x10012ac
call fcn.01005d42
mov ecx, 0x10012a8
add dword [ebp - 0x28], 4
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
test eax, eax
jne 0x1001d56
mov eax, dword [ebp - 0x2c]
mov dword [0x100a3b0], eax
mov eax, dword [ebp - 0x30]
mov dword [0x1009f80], eax
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call fcn.01003a48
push 0x10012a4
push esi
call dword [sym.imp.msvcrt.dll_fopen]
add esp, 0x18
test eax, eax
mov dword [0x100cc94], eax
jne 0x1001dc2
push 0x2732
push 1
call fcn.010064fd
push esi
call dword [sym.imp.msvcrt.dll__unlink]
add esp, 0xc
jmp 0x1001e0a
xor ebx, ebx
push eax
push 0x7d0
mov edi, 0x10083c0
push edi
call dword [sym.imp.msvcrt.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x1001e15
push dword [0x100cc94]
call dword [sym.imp.msvcrt.dll_fclose]
push esi
mov dword [0x100cc94], ebx
call dword [sym.imp.msvcrt.dll__unlink]
test eax, eax
pop ecx
pop ecx
jge 0x1001e0a
push 0x2733
push 1
call fcn.010064fd
pop ecx
pop ecx
mov byte [0x100cca0], 0
xor eax, eax
jmp 0x1001e29
push 0xa
push edi
call dword [sym.imp.msvcrt.dll__mbschr]
cmp eax, ebx
pop ecx
pop ecx
je 0x1001e27
mov byte [eax], 0
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01006192
leave
ret 8