joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40645a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x40647f
xor eax, eax
jmp 0x4064db
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4064ac
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x4064ac
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x406562
cmp dword [edi + 0x4c], 0
je 0x4064d5
mov ecx, edi
call fcn.004060e2
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4064eb
push dword [edi + 0x4c]
push ebx
call fcn.0040595e
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x4064da
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004071a8
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x42313c]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x406535
sub eax, 1
je 0x406535
dec eax
sub eax, 1
jne 0x4064d5
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4064c7
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x406552
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0040df8f
add esp, 0x10
cmp esi, eax
jne 0x4064d5
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x4064d5
mov ax, bx
jmp 0x4064da

Function at 0x415ae0
Capabilities:
Read file on windows

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

Function at 0x415aeb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041591b
Function at 0x407fa0
Capabilities:
Modify service

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp], 1
mov dword [esp + 8], 0
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 3
cmp eax, 0xffffffff
mov dword [esp + 4], ecx
setne dl
mov eax, 0x70f87c
lea ecx, [esp + 8]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
push ecx
lea eax, [esp + 4]
push 2
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
add esp, 0x1c
ret

Function at 0x408140
Capabilities:
Create http request

Disassembly:
sub esp, 0x50
push esi
push edi
mov ecx, 0xe
mov esi, 0x4313d0
lea edi, [esp + 8]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov word [esp + 0x55], ax
push eax
push eax
push eax
push 1
push eax
mov byte [esp + 0x6b], al
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x84000000
push 0
lea ecx, [esp + 0x14]
mov esi, eax
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
nop
nop
call esi
push 0
call esi
call fcn.00408090
pop edi
xor eax, eax
pop esi
add esp, 0x50
ret 0x10

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x18e57196
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7eb84f9d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4022de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402336
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402336
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x402326
cmp esi, ecx
jae 0x402336
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x402314
cmp esi, ecx
jae 0x402336
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x402338
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4079ba
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push 0x40
push 0x647730
call fcn.004dbb30
mov dword [ebp - 0x20], edx
mov edi, ecx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x24], esi
and dword [edi], 0
push 4
push 0x2000
mov eax, esi
shl eax, 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x407a6d
mov dword [ebp - 0x28], esi
push 4
push 0x1000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x407a6d
and dword [ebp - 4], 0
push dword [ebp + 8]
push ecx
push dword [ebp - 0x20]
mov edx, SysReAllocString
mov ecx, esi
call fcn.00402084
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xfffffffe
mov dword [edi], esi
jmp 0x407a6f
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4083a5
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
cmp dword [esi], 0
je 0x4084b9
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [edi + 8]
xor ebx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp + 8]
push 0x14
push 0
push esi
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x4084b8
cmp eax, 1
jne 0x40848d
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40848d
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
mov ebx, eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x24]
push eax
test ebx, ebx
je 0x40842c
call dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x408432
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jle 0x408456
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
test ebx, ebx
je 0x408450
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x408456
call dword [sym.imp.USER32.dll_DispatchMessageA]
xor ebx, ebx
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40848a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x40848a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x40840c
mov ebx, dword [ebp - 4]
jmp 0x40848d
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x4084a6
test ebx, ebx
je 0x4083d3
cmp dword [esi], 0
je 0x4084b8
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi], 0
pop ebx
and dword [edi + 0xc], 0
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 8
Function at 0x414841
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
je 0x41487b
cmp word [ebx], 0
je 0x41487b
push esi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop esi
cmp ebx, 0xffffffff
je 0x41487b
shr ebx, 4
not ebx
and ebx, 1
mov eax, ebx
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x414e0b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
lea edi, [ebp - 0x808]
cmp dword [esi + 0x5c], 0
jne 0x414e41
push 0x400
mov eax, edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x414e58
mov eax, dword [esi + 0x40]
test eax, eax
js 0x414e99
cmp eax, dword [esi + 0x5c]
jge 0x414e99
push eax
lea ecx, [esi + 0x58]
call fcn.00418d53
mov edi, dword [eax]
lea eax, [ebp - 0x818]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
lea eax, [ebp - 0x820]
mov ecx, esi
push eax
call fcn.00415035
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x810]
sub eax, dword [ebp - 0x818]
mov dword [esi + 0x44], ecx
xor ecx, ecx
cmp dword [esi + 0x44], eax
setg cl
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004da623
leave
ret

Function at 0x41bf82
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi + 0x2c]
test edx, edx
jne 0x41bfa0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [esi + 0x2c], edx
mov eax, edx
pop esi
ret

Function at 0x41bfa4
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x41bfc2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea edx, [eax + 1]
neg edx
sbb edx, edx
inc edx
mov dword [esi + 0x2c], edx
xor eax, eax
test edx, edx
pop esi
sete al
ret

Function at 0x41d674
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, 0x81
push edi
push esi
push 0x10000000
push 0
push dword [ebp + 8]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov eax, 0x801
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
test edi, edi
je 0x41d6d5
push 0x3f
push dword [ebp + 8]
call fcn.004e115a
pop ecx
pop ecx
test eax, eax
je 0x41d6d5
push eax
lea eax, [esi + 0x1486]
push eax
call fcn.00504cbe
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x41d837
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
test ebx, ebx
je 0x41d95b
cmp dword [ebx], 0x18
jne 0x41d95b
push edi
push dword [ebx + 8]
lea ecx, [ebp + 8]
call fcn.0040d2ee
cmp dword [ebx + 4], 0
mov edi, dword [ebp + 8]
jne 0x41d87a
push 0x10000000
xor esi, esi
push esi
push esi
push 1
jmp 0x41d93a
xor esi, esi
cmp dword [ebx + 4], 1
je 0x41d932
cmp dword [edi - 8], esi
je 0x41d932
mov eax, dword [ebp - 4]
mov ecx, dword [ebx + 0x10]
add eax, 0x20
mov dword [ebp + 8], ecx
mov dword [ebp - 8], eax
test ecx, ecx
jne 0x41d8a6
mov eax, esi
jmp 0x41d8b0
push ecx
call fcn.00505bb3
pop ecx
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
push eax
call fcn.0040f513
mov eax, dword [ebp - 4]
mov ecx, dword [ebx + 0x14]
add eax, 0x24
mov dword [ebp + 8], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x41d8dc
push ecx
call fcn.00505bb3
pop ecx
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp - 8]
push ecx
push esi
mov ecx, eax
call fcn.0040f513
push dword [ebx + 0xc]
mov eax, dword [0x668294]
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x6366ec
push eax
call fcn.0040cefd
mov esi, dword [ebp + 8]
add esp, 0x10
push 0x10000000
push str._local_
push esi
push 3
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, dword [ebp - 4]
lea ecx, [esi - 0xc]
mov dword [ebx], eax
cmp ecx, 0x668010
je 0x41d948
call fcn.00407965
jmp 0x41d948
push 0x10000000
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, dword [ebp - 4]
mov dword [ebx], eax
lea ecx, [edi - 0xc]
pop edi
cmp ecx, 0x668010
je 0x41d973
call fcn.00407965
jmp 0x41d973
push 0x10000000
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, dword [ebp - 4]
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x41d991
push 0x54d80e
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x41d993
xor eax, eax
pop esi
pop ebx
leave
ret 8
Function at 0x41d9fe
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x249c
call fcn.004db570
mov eax, dword [0x667710]
xor eax, esp
mov dword [esp + 0x2498], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
xor edi, edi
cmp dword [ebx + 4], edi
jne 0x41db2c
push ecx
push ecx
lea ecx, [esp + 0x20]
call fcn.0041d625
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.0041d674
test eax, eax
je 0x41db2c
push edi
push edi
push 3
push dword [esp + 0x48]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 4], eax
test eax, eax
je 0x41db2c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041d6dd
lea ecx, [esp + 0x18]
mov esi, dword [eax]
lea eax, [esp + 0x10]
push eax
call fcn.0041d73e
push ebx
push 0x84400200
push edi
push esi
push edi
push dword [eax]
push 0x636720
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [esp + 0x10]
mov esi, 0x668010
add ecx, 0xfffffff4
mov dword [ebx + 8], eax
cmp ecx, esi
je 0x41dac3
call fcn.00407965
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x41dad3
call fcn.00407965
cmp dword [ebx + 8], edi
je 0x41db1c
push edi
push edi
push 0xffffffffffffffff
push edi
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x41db21
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov edx, 0x3e5
cmp eax, edx
setne cl
jne 0x41db18
mov eax, dword [ebx + 0x18]
xor edx, edx
push 0xc
pop ecx
div ecx
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb ecx, ecx
neg ecx
test ecx, ecx
je 0x41db21
mov edi, 0x80004005
mov ecx, ebx
call fcn.0041d9b7
mov eax, edi
jmp 0x41db31
mov eax, 0x80004005
mov ecx, dword [esp + 0x24a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004da623
mov esp, ebp
pop ebp
ret 4

Function at 0x41df18
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x110
xor ebx, ebx
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004e0bc0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41df79
cmp dword [ebp - 0x114], 5
jae 0x41df7b
cmp dword [ebp - 0x114], 4
jne 0x41df79
cmp dword [ebp - 0x110], 0x5a
jae 0x41df7b
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret
Function at 0x4210d1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push 0x400
lea eax, [esi + 4]
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x808]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x824], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [esi + 0x24]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 0x81c], eax
call ebx
push 0x420
mov esi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x818]
push eax
push edi
mov edi, dword [ebp - 0x81c]
lea eax, [ebp - 0x808]
push eax
push edi
movups xmmword [ebp - 0x818], xmm0
call dword [sym.imp.USER32.dll_DrawTextW]
add dword [ebp - 0x80c], 2
push esi
push edi
call ebx
mov ebx, dword [ebp - 0x820]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetParent]
push 2
lea ecx, [ebp - 0x818]
push ecx
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push dword [ebx]
call esi
push eax
push 0
push 0xfffffffffffffff0
push dword [ebx]
call esi
push eax
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 0x16
lea eax, [ebp - 0x818]
mov ecx, ebx
push eax
push 0
call fcn.00403895
push edi
push dword [ebp - 0x824]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret

Function at 0x4211d4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test eax, eax
jne 0x4211e9
mov eax, dword [esi + 0x44]
test eax, eax
je 0x42120c
xor edi, edi
inc edi
push edi
push 0
push 0
push eax
push 0x634c74
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x42120c
mov dword [esi + 0x38], edi
mov eax, edi
jmp 0x42120e
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x42124b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a0
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x82c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
xor esi, esi
test eax, 0x10000
je 0x42129c
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 0x894], 1
cmp eax, dword [ebx + 4]
je 0x4212a2
mov dword [ebp - 0x894], esi
push 0x400
lea eax, [ebp - 0x80c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x8a0], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x898], eax
cmp ecx, 1
je 0x4212dc
cmp ecx, 2
je 0x4212dc
test ecx, ecx
jne 0x421306
cmp dword [ebx + 0x28], esi
jne 0x421306
lea ecx, [ebp - 0x88c]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x88c]
mov byte [ebp - 0x877], 1
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x898], eax
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x89c], eax
sub ecx, esi
je 0x421343
sub ecx, 1
je 0x42133e
sub ecx, 1
je 0x42133e
sub ecx, 1
jne 0x421336
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x421350
mov eax, dword [ebp - 0x89c]
jmp 0x421350
mov eax, dword [ebx + 0x30]
jmp 0x421350
cmp dword [ebx + 0x38], esi
je 0x42134d
mov eax, dword [ebx + 0x34]
jmp 0x421350
mov eax, dword [ebx + 0x2c]
lea esi, [ebp - 0x82c]
mov dword [ebp - 0x890], eax
lea edi, [ebp - 0x81c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x81c]
push 0x420
push eax
push 0xffffffffffffffff
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_DrawTextW]
mov edi, dword [ebp - 0x814]
mov esi, dword [ebp - 0x810]
sub edi, dword [ebp - 0x81c]
sub esi, dword [ebp - 0x818]
push 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 0x890]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
neg eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x22
push eax
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x80c]
push esi
push esi
push dword [ebp - 0x8a0]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawStateW]
cmp dword [ebp - 0x894], esi
je 0x42140a
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x81c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x89c]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x898]
cmp eax, dword [ebx + 0x24]
je 0x42142b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 4
Function at 0x42243e
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004db570
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x101c], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov ecx, SysReAllocString
push 0
mov dword [ebp - 0x1014], ecx
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1018], esi
push ecx
push 0x20000005
push eax
mov dword [ebp - 0x1010], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edx, dword [ebp - 0x1014]
test eax, eax
mov eax, SysReAllocString
mov ecx, 0x2000
cmove edx, eax
mov eax, dword [0x668294]
mov dword [ebp - 0x100c], eax
cmp edx, 0x7fffffff
mov dword [ebp - 0x1014], edx
lea eax, [edx + 1]
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x100c]
call fcn.0040cccd
push 0xffffffffffffffff
lea ecx, [ebp - 0x100c]
call fcn.0040cc99
mov ecx, 0x1000
cmp dword [ebp - 0x1010], ecx
mov eax, ecx
push 0xea60
cmovb eax, dword [ebp - 0x1010]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 0x1008]
push eax
call fcn.00422636
test eax, eax
je 0x422591
cmp eax, 0x1001
jae 0x422630
mov byte [ebp + eax - 0x1008], 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00505070
pop ecx
lea ecx, [ebp - 0x1008]
push ecx
push eax
lea ecx, [ebp - 0x100c]
call fcn.0042aaaa
mov esi, dword [ebp - 0x100c]
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 0x1014]
jge 0x422597
mov ecx, 0x1000
cmp dword [ebp - 0x1010], ecx
mov eax, ecx
push 0xea60
push dword [ebp - 0x1018]
cmovb eax, dword [ebp - 0x1010]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1008]
push eax
call fcn.00422636
test eax, eax
jne 0x422519
jmp 0x422597
mov esi, dword [ebp - 0x100c]
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 0x1014]
jl 0x4225b9
lea eax, [ebp - 0x100c]
push eax
lea ecx, [ebp - 0x101c]
call fcn.0040cd8e
xor ebx, ebx
inc ebx
jmp 0x4225cc
push 0x63616e
lea ecx, [ebp - 0x1018]
call fcn.0041ddcb
push 2
pop ebx
push eax
mov ecx, edi
call fcn.0040cd8e
test bl, 2
je 0x4225f2
mov ecx, dword [ebp - 0x1018]
and ebx, 0xfffffffd
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x4225f2
call fcn.00407965
test bl, 1
je 0x42260d
mov ecx, dword [ebp - 0x101c]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x42260d
call fcn.00407965
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x42261d
call fcn.00407965
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 0xc
call fcn.004dafb4
int3