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

Disassembly:
push 0xffffffffffffffff
push 0x46dbc3
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.00461365
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.004669fb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468011
test eax, eax
je 0x43c6ac
mov ecx, dword [esp + 0x3c]
call fcn.00466a28
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 0x43c670
push edi
mov ecx, esi
call fcn.0046408c
mov ecx, esi
call fcn.0043c810
cmp dword [esp + 0x38], 1
jne 0x43c6a5
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.004641c7
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 0x43f0c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f0f3
push esi
call fcn.004421d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f0ec
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 0x43f179
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f162
mov eax, dword [esi + 8]
test eax, eax
je 0x43f117
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 0x43f15e
cmp eax, 2
je 0x43f162
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f10a
cmp eax, 3
je 0x43f13d
cmp eax, 1
jne 0x43f10a
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 0x43f10a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f10a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f1a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f188
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f1a0
add esp, 4
pop esi
ret
Function at 0x44ba60
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 0x44baaa
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44bad9
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 0x44bb1b
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 0x46215b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462193
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.0046020f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004601e7
jmp 0x46219f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x463849
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 0x46388b
call fcn.00469402
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46388b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463882
xor eax, eax
jmp 0x463893
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463899
pop edi
pop esi
pop ebx
ret 4

Function at 0x469932
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 0x469960
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46997e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469898
jmp 0x46997e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46997e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469898
test edi, edi
mov eax, edi
jne 0x469968
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401080
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x198]
pop edi
cmp eax, 4
jne 0x4010c9
mov eax, dword [esp + 0x198]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
call fcn.00403c40
add esp, 0x190
ret
cmp eax, 3
jne 0x4010ee
mov ecx, dword [esp + 0x198]
mov edx, dword [ecx + 4]
push edx
call fcn.0041e0ef
add esp, 4
push eax
call fcn.00402700
add esp, 0x190
ret
cmp eax, 2
je 0x4010fd
or eax, 0xffffffff
add esp, 0x190
ret
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401130
push 0xffffffffffffffff
call fcn.004078e0
push eax
push str.WSAStartup_failed:__s
call fcn.004077f0
add esp, 8
or eax, 0xffffffff
add esp, 0x190
ret
push esi
push str.web_client_startup
call fcn.004077f0
push 0x498
call fcn.0041dfb2
mov esi, eax
add esp, 8
test esi, esi
je 0x4011bd
push esi
call fcn.00401e40
mov ecx, dword [esp + 0x19c]
mov edx, dword [ecx + 4]
push edx
call fcn.0041e0ef
mov dword [esi + 8], eax
push str.127.0.0.1
push 0x431108
lea eax, [esi + 0xc]
push 0x80
push eax
call fcn.0041df61
add esp, 0x14
lea ecx, [esi + 0x8c]
push 0x400
push ecx
push str.libpub.dll
call fcn.004019b0
push eax
call fcn.00407990
push esi
call fcn.00401e80
test eax, eax
push esi
jne 0x4011af
call fcn.00401f40
push esi
call fcn.00402100
push esi
call fcn.0041def8
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.web_client_exit
call fcn.004077f0
add esp, 4
xor eax, eax
pop esi
add esp, 0x190
ret
Function at 0x401420
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x21c
push ebx
mov ebx, dword [esp + 0x224]
push ebp
lea eax, [esp + 8]
push esi
push eax
mov esi, 1
push 0x8004667e
push ebx
mov dword [esp + 0x18], esi
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x40145c
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x21c
ret 0x10
mov ecx, dword [esp + 0x234]
mov edx, dword [esp + 0x230]
push ecx
xor ebp, ebp
push edx
push ebx
mov dword [esp + 0x1c], ebp
call sub.WS2_32.dll_connect
test eax, eax
je 0x40157b
mov edx, dword [esp + 0x238]
xor ecx, ecx
cmp edx, 0x7fffffff
ja 0x401493
mov ecx, edx
mov eax, 0x431bde83
push edi
mul edx
shr edx, 0x12
mov dword [esp + 0x1c], edx
mov eax, ecx
xor edx, edx
mov ecx, 0xf4240
div ecx
mov dword [esp + 0x24], esi
mov ecx, 0x41
lea esi, [esp + 0x24]
lea edi, [esp + 0x128]
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x128]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
lea edx, [ebx + 1]
push ecx
push edx
call sub.WS2_32.dll_select
test eax, eax
pop edi
jne 0x401511
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
push eax
push 0x8004667e
push ebx
call sub.WS2_32.dll_ioctlsocket
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x21c
ret 0x10
lea ecx, [esp + 0x20]
push ecx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x401532
lea edx, [esp + 0x124]
push edx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40157b
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x1007
push 0xffff
push ebx
mov dword [esp + 0x28], 4
call sub.WS2_32.dll_getsockopt
test eax, eax
jge 0x40157b
lea edx, [esp + 0xc]
mov dword [esp + 0xc], ebp
push edx
push 0x8004667e
push ebx
call sub.WS2_32.dll_ioctlsocket
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x21c
ret 0x10
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
push eax
push 0x8004667e
push ebx
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x4015a2
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x21c
ret 0x10
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4015be
pop esi
mov dword [0x437cf4], eax
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x21c
ret 0x10
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret 0x10
Function at 0x4015d0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
test eax, eax
push esi
mov dword [esp + 0xc], 0
jne 0x4015fa
test ebp, ebp
jge 0x4015fa
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 0x14
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x401627
push 0xffffffffffffffff
call fcn.004078e0
push eax
push str.gethostbyname_failed:__s
call fcn.004077f0
add esp, 8
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x401635
push 6
push eax
jmp 0x401638
push 0
push eax
push 2
call sub.WS2_32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401665
push eax
call fcn.004078e0
push eax
push str.socket_error:__s
call fcn.004077f0
add esp, 8
or eax, ebx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
xor eax, eax
push edi
mov dword [esp + 0x14], eax
push ebp
mov dword [esp + 0x1c], eax
mov word [esp + 0x18], 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call sub.WS2_32.dll_htons
lea edi, [esp + 0x18]
push ebp
mov word [esp + 0x1a], ax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
mov edx, dword [esi + 0xc]
movsx ecx, word [esi + 0xa]
mov esi, dword [edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push ecx
call sub.WS2_32.dll_inet_ntoa
push eax
mov edx, dword [esp + 0x30]
push edx
push str.Connect_to_Address:__s__s_:__d
call fcn.004077f0
add esp, 0x10
lea eax, [esp + 0x28]
mov esi, 0x1388
push 4
push eax
push 0x1005
push 0xffff
push ebx
mov dword [esp + 0x3c], esi
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
pop edi
jne 0x401706
push ebx
call sub.WS2_32.dll_closesocket
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 0x14
lea ecx, [esp + 0x24]
push 4
push ecx
push 0x1006
push 0xffff
push ebx
mov dword [esp + 0x38], esi
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x401738
push ebx
call sub.WS2_32.dll_closesocket
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 0x14
mov eax, dword [esp + 0x30]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esp + 0x10]
shl edx, 3
push edx
push 0x10
push eax
push ebx
call fcn.00401420
mov esi, eax
test esi, esi
jge 0x40176d
push ebx
call sub.WS2_32.dll_closesocket
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4017a4
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 1
push ecx
push 0x8004667e
push ebx
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x4017a4
push ebx
call sub.WS2_32.dll_closesocket
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 0x14
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret 0x14
Function at 0x401900
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
test ebp, ebp
je 0x401998
mov ebx, dword [esp + 0x14]
cmp dword [ebp], 0
je 0x401998
test esi, esi
jle 0x401998
push 0
push esi
push edi
push ebx
call sub.WS2_32.dll_recv
test eax, eax
jle 0x40193a
add edi, eax
sub esi, eax
jmp 0x40191c
je 0x401959
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x40194f
cmp eax, 0x2714
jne 0x401979
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40191c
push 0xffffffffffffffff
call fcn.004078e0
push eax
push ebx
push 0x43129c
call fcn.004077f0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push eax
call fcn.004078e0
push eax
push ebx
push str.Session:__d_broken:__s
call fcn.004077f0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, dword [esp + 0x1c]
pop edi
sub eax, esi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x401d40
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x800
push ebx
push ebp
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x814]
stosw word es:[edi], ax
test ebp, ebp
stosb byte es:[edi], al
je 0x401e33
mov esi, dword [esp + 0x820]
test esi, esi
je 0x401e33
mov eax, dword [ebp + 4]
test eax, eax
je 0x401e33
mov eax, dword [esp + 0x818]
lea edi, [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x81c]
mov ecx, eax
mov dword [esp + 0x14], eax
mov edx, ecx
mov ebx, dword [sym.imp.WS2_32.dll_send]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 8]
lea edi, [esp + 0x10]
test esi, esi
jle 0x401e33
mov eax, dword [ebp]
push 0
push esi
push edi
push eax
call ebx
test eax, eax
jle 0x401dd7
sub esi, eax
add edi, eax
jmp 0x401ded
je 0x401e01
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x401ded
cmp eax, 0x2714
jne 0x401e14
mov eax, dword [ebp + 4]
test eax, eax
jne 0x401dbf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret 0x10
push 0xffffffffffffffff
call fcn.004078e0
mov ecx, dword [ebp]
push eax
push ecx
push str.Session:__d_Broken:__s
jmp 0x401e24
push eax
call fcn.004078e0
mov edx, dword [ebp]
push eax
push edx
push str.Session:__d_Down:__s
call fcn.004077f0
add esp, 0xc
mov dword [ebp + 4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret 0x10
Function at 0x4021e0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x30
push ebp
push esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0xc], 0xffffffff
push esi
push str.try_starting_service:__s
call fcn.004077f0
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x3c], ebp
jne 0x402238
push 0xffffffffffffffff
call fcn.004078e0
push eax
push 0x43160c
call fcn.004077f0
add esp, 8
or eax, 0xffffffff
pop esi
pop ebp
add esp, 0x30
ret 8
push 0xf01ff
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x402272
push 0xffffffffffffffff
call fcn.004078e0
push eax
push 0x431618
call fcn.004077f0
add esp, 8
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x30
ret 8
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4022c3
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x4022a4
pop esi
xor eax, eax
pop ebp
add esp, 0x30
ret 8
push eax
call fcn.004078e0
push eax
push 0x431624
call fcn.004077f0
add esp, 8
or eax, 0xffffffff
pop esi
pop ebp
add esp, 0x30
ret 8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0x24
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4022fc
push 0xffffffffffffffff
call fcn.004078e0
push eax
push 0x431630
call fcn.004077f0
add esp, 8
or eax, 0xffffffff
pop esi
pop ebp
add esp, 0x30
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebx
mov edx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], edx
test eax, eax
je 0x4023c2
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x48]
cmp dword [eax], 0
je 0x4023be
cmp dword [esp + 0x20], 2
jne 0x4023be
mov eax, 0xcccccccd
mul dword [esp + 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x402355
mov edx, 0x3e8
jmp 0x402362
cmp edx, 0x2710
jbe 0x402362
mov edx, 0x7d0
push edx
call ebp
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push 0x24
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4023a9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jbe 0x402398
call ebx
mov ecx, dword [esp + 0x30]
mov edi, eax
mov dword [esp + 0x10], ecx
jmp 0x402322
call ebx
mov ecx, dword [esp + 0x34]
sub eax, edi
cmp eax, ecx
ja 0x4023be
jmp 0x402322
push 0xffffffffffffffff
call fcn.004078e0
push eax
push str.Error:__s
call fcn.004077f0
add esp, 8
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
pop edi
cmp eax, 4
pop ebx
jne 0x4023d5
mov dword [esp + 0xc], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop esi
pop ebp
mov eax, dword [esp + 4]
add esp, 0x30
ret 8
Function at 0x402470
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x410
lea eax, [esp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x12]
push eax
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and eax, 0xffff
and edx, 0xffff
push ecx
add eax, 8
push edx
push eax
push str._n__d:_d:_d__ld__0x_08x_web_client__t
lea ecx, [esp + 0x2c]
push 0x400
push ecx
call fcn.0041df61
mov ecx, dword [esp + 0x438]
lea edx, [esp + 0x43c]
push edx
mov edx, 0x400
sub edx, eax
push ecx
lea eax, [esp + eax + 0x3c]
push edx
push eax
call fcn.0041e592
add esp, 0x30
lea ecx, [esp + 0x15]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x431670
push str.c:web_lp_trace.log
call fcn.0041e57f
mov esi, eax
add esp, 8
test esi, esi
je 0x402536
push edi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push esi
dec ecx
push 1
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.0041e455
push esi
call fcn.0041e3ff
add esp, 0x14
pop edi
pop esi
add esp, 0x410
ret

Function at 0x4025f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x40263d
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x40263d
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x40265b
cmp dword [esp + 0x10], 1
jne 0x40266d
pop edi
mov eax, 2
pop esi
add esp, 0x9c
ret
cmp eax, 6
jne 0x40266d
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
je 0x40266f
xor eax, eax
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x402f70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x403090
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
lea eax, [esi - 1]
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4030c3
or eax, 0xffffffff
pop esi
ret 0x14
mov ecx, esi
push ebx
mov ebx, dword [esp + 0xc]
mov edx, ecx
push edi
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push ebx
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x403107
mov ecx, dword [esp + 0x14]
mov byte [ecx + ebx], al
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
ret 0x14

Function at 0x403170
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4031a1
or eax, 0xffffffff
ret 0x10
mov edx, dword [esp + 4]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
ret 0x10