joyce8/EMBER2024-capa huggingface dataset:
Function at 0x508f80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x642078]
xor edx, edx
cmp eax, edx
jne 0x508fa6
xor eax, eax
mov byte [eax + 0x641f78], al
inc eax
cmp eax, 0x100
jl 0x508f8e
mov dword [0x642078], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x641f78
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x509037
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x50900a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x508fd8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5090b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x509103
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5090ea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50fac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54303e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005103e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x59e874
call fcn.00533473
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x50fb53
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00533473
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x50fb4c
push 0
mov ecx, eax
call fcn.00506bc0
mov dword [esi + 0xc], eax
jmp 0x50fb55
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x50fb55
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5214fd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52151d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052011a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x521540
test byte [esp + 8], 2
je 0x521540
call fcn.0052018d
mov dword [eax], 0xd
call fcn.00520196
mov dword [eax], 5
jmp 0x521519
xor eax, eax
ret

Function at 0x535b00
Capabilities:
Get graphical window text

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

Function at 0x5371f1
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 0x537233
call fcn.0053cf66
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x537233
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x53722a
xor eax, eax
jmp 0x53723b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00537241
pop edi
pop esi
pop ebx
ret 4

Function at 0x53d496
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 0x53d4c4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53d4e2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053d3fc
jmp 0x53d4e2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53d4e2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053d3fc
test edi, edi
mov eax, edi
jne 0x53d4cc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401294
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov ecx, 0x46871c
call fcn.00401782
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, 0x4686e4
mov dword [0x468670], eax
call fcn.00401882
push dword [ebp + 0x14]
mov ecx, 0x468700
call fcn.00401882
cmp dword [ebp + 0x18], 1
jne 0x4012e5
xor eax, eax
push eax
push eax
push eax
push 0x401184
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebp
ret
Function at 0x40268c
Capabilities:
Create http request

Disassembly:
mov eax, 0x45247d
call fcn.0044ca14
sub esp, 0x88
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x18], ebx
push str.Browser1.0
mov dword [ebp - 0x20], vtable.CWebWorld.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.http:__tb.sogou.com_
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.0040162e
push dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x90]
push eax
mov byte [ebp - 4], 1
call fcn.00402f58
add esp, 0xc
push 0x4585a0
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 2
call fcn.00402fff
add esp, 0xc
or esi, 0xffffffff
push esi
push ebx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.004016f1
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x74]
call fcn.004017a5
push ebx
push edi
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.004017a5
cmp dword [0x468730], ebx
jne 0x402754
push str.Unknown
lea ecx, [ebp - 0x90]
call fcn.0040162e
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], edi
jmp 0x402759
mov eax, 0x46871c
push esi
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.00402eb1
mov dword [ebp - 4], edi
test byte [ebp - 0x18], 1
je 0x40277a
push ebx
push edi
lea ecx, [ebp - 0x90]
call fcn.004017a5
cmp dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x54]
jae 0x402786
lea eax, [ebp - 0x54]
push eax
push 0x4585a8
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0x10
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], 0xf
call fcn.004019d2
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.0040ec1a
cmp al, bl
jne 0x4027fe
mov ecx, dword [ebp + 0xc]
push esi
push ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.004016f1
push ebx
push edi
lea ecx, [ebp - 0x3c]
call fcn.004017a5
push ebx
push edi
lea ecx, [ebp - 0x58]
call fcn.004017a5
lea ecx, [ebp - 0x20]
call fcn.0040ec0a
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x40280a
lea eax, [ebp - 0x38]
push eax
push 0x4585b8
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0x10
push ebx
push str.OK_r_n
lea eax, [ebp - 0x3c]
push eax
call fcn.00402bb0
cmp eax, ebx
lea eax, [ebp - 0x3c]
je 0x402865
mov ecx, dword [ebp + 0xc]
push esi
push ebx
push eax
call fcn.004016f1
mov byte [ebp - 0x11], bl
push ebx
push edi
lea ecx, [ebp - 0x3c]
call fcn.004017a5
push ebx
push edi
lea ecx, [ebp - 0x58]
call fcn.004017a5
lea ecx, [ebp - 0x20]
call fcn.0040ec0a
mov al, byte [ebp - 0x11]
jmp 0x4027ef
push 4
push 0x4585d0
push eax
call fcn.00402bb0
add eax, 0xfffffffc
push eax
push 4
lea eax, [ebp - 0x3c]
push eax
lea esi, [ebp - 0x90]
call fcn.00402ccd
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 6
call fcn.004016f1
push ebx
push edi
mov ecx, esi
call fcn.004017a5
mov byte [ebp - 0x11], 1
jmp 0x402844
Function at 0x4030ed
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x451ae9
call fcn.0044ca14
sub esp, 0x60
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x14], esi
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
call fcn.004019d2
push str._r_n_r_n
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.0040162e
push esi
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
mov byte [ebp - 4], bl
mov edi, dword [sym.imp.WS2_32.dll_recv]
call edi
test eax, eax
jle 0x4031ac
push dword [ebp - 0x18]
lea esi, [ebp - 0x34]
call fcn.004045e4
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x3c]
jb 0x403178
sub eax, dword [ebp - 0x3c]
push 0xffffffffffffffff
push eax
mov eax, esi
push eax
lea esi, [ebp - 0x6c]
call fcn.00402ccd
mov byte [ebp - 4], 2
or dword [ebp - 0x14], 2
lea ecx, [ebp - 0x50]
call fcn.004030bb
mov byte [ebp - 0xd], bl
test eax, eax
je 0x40317c
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], ebx
test byte [ebp - 0x14], 2
je 0x403194
and dword [ebp - 0x14], 0xfffffffd
push 0
push ebx
lea ecx, [ebp - 0x6c]
call fcn.004017a5
cmp byte [ebp - 0xd], 0
jne 0x4031c6
push 0
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call edi
test eax, eax
jg 0x40313d
xor esi, esi
mov ecx, dword [ebp + 8]
push 0x45842a
call fcn.0040162e
push esi
push ebx
lea ecx, [ebp - 0x50]
call fcn.004017a5
push esi
jmp 0x4031df
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.00401650
push 0
push ebx
lea ecx, [ebp - 0x50]
call fcn.004017a5
push 0
push ebx
lea ecx, [ebp - 0x34]
call fcn.004017a5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4031fa
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x451ab6
call fcn.0044ca14
sub esp, 0x194
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 4], vtable.pxp::CPxpClass_class_pxp::IThreadHandler_.0
mov byte [ebp - 4], 1
push ebx
push 1
mov dword [esi], vtable.HttpServer.0
mov dword [esi + 4], vtable.HttpServer.1.0
lea edi, [esi + 0x10]
call fcn.00405331
pop ecx
pop ecx
cmp eax, ebx
je 0x403242
mov dword [eax], edi
jmp 0x403244
xor eax, eax
mov dword [edi], eax
lea eax, [ebp - 0x19c]
push eax
push 2
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x2c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40569d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x38]
inc dword [esi]
lea eax, [edi + 0x30]
push eax
xor eax, eax
push eax
push edi
push 0x405865
push eax
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
mov dword [edi + 0x34], eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
call fcn.0040604c
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x4057f7
Capabilities:
Suspend thread

Disassembly:
push dword [ecx + 0x34]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
mov eax, ecx
ret

Function at 0x40580c
Capabilities:
Resume thread

Disassembly:
push dword [ecx + 0x34]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
mov eax, ecx
ret
Function at 0x405993
Capabilities:
Allocate thread local storage
Move file

Disassembly:
mov eax, 0x4523d6
call fcn.0044ca14
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [edi + 4], vtable.pxp::CPxpClass_class_pxp::ILogger_.0
mov byte [ebp - 4], 1
push ebx
lea esi, [edi + 0x38]
push 1
mov dword [edi], vtable.CThreadManager.0
mov dword [edi + 4], vtable.CThreadManager.1.0
mov dword [ebp - 0x10], esi
call fcn.00405331
pop ecx
pop ecx
cmp eax, ebx
je 0x4059db
mov dword [eax], esi
jmp 0x4059dd
xor eax, eax
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.00406a33
lea ecx, [esi + 0x18]
mov dword [ecx], eax
mov byte [eax + 0x2d], 1
mov eax, dword [ecx]
mov dword [eax + 4], eax
mov eax, dword [ecx]
mov dword [eax], eax
mov ecx, dword [ecx]
mov dword [ecx + 8], ecx
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0x5c], eax
mov esi, str.null
mov byte [ebp - 4], 4
mov ecx, esi
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405a3e
cmp dx, bx
je 0x405a3a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405a3e
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x405a18
xor eax, eax
jmp 0x405a43
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x405a50
or dword [edi + 0x58], 0xffffffff
jmp 0x405af4
mov ecx, 0x45876c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405a7d
cmp dx, bx
je 0x405a79
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405a7d
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x405a57
xor eax, eax
jmp 0x405a82
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x405a96
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x405af1
call fcn.00427338
test al, al
je 0x405ada
push esi
lea ecx, [ebp - 0x2c]
call fcn.004016c5
push str..bak
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00405fa8
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x405ac5
lea eax, [ebp - 0x28]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004018a6
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x58], eax
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 8]
push eax
call esi
lea eax, [edi + 0x20]
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405e22
Capabilities:
Set thread local storage value
Write file on windows

Disassembly:
mov eax, 0x452357
call fcn.0044ca14
mov eax, 0x1168
call fcn.0043b380
push esi
mov esi, ecx
cmp dword [esi + 0x54], 0xffffffff
je 0x405f99
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea edi, [esi - 4]
call fcn.00405d75
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x38]
mov edi, eax
mov dword [ebp - 0x20], 0xf
call fcn.004019d2
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x405ebd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00401f83
push eax
lea eax, [ebp - 0x58]
push str.Thread
push eax
mov byte [ebp - 4], 1
call fcn.00402faa
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.004016f1
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.004017a5
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.004017a5
jmp 0x405ed6
push edi
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0xffffffffffffffff
push ebx
add edi, 4
push edi
lea ecx, [ebp - 0x38]
call fcn.004016f1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
lea eax, [ebp - 0x174]
push str.__04d__02d__02d__02d:_02d:_02d._03d_
push eax
call fcn.0043c1c2
mov eax, dword [ebp - 0x34]
add esp, 0x24
cmp dword [ebp - 0x20], 0x10
mov byte [ebp - 0x76], bl
jae 0x405f26
lea eax, [ebp - 0x34]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x174]
push eax
push str._s__s:_s___s_r_n
lea eax, [ebp - 0x1174]
push 0x1000
push eax
call fcn.0043c69d
add esp, 0x1c
lea edi, [esi + 0x1c]
push edi
mov byte [ebp - 0x175], bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1174]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x405f66
sub eax, ecx
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x1174]
push eax
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.004017a5
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4086b6
Capabilities:
Create thread

Disassembly:
mov eax, 0x451a7a
call fcn.0044ca14
push ecx
push esi
push edi
push 0xd0
call fcn.0043a403
pop ecx
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x4086f1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call fcn.0040fac9
mov esi, eax
jmp 0x4086f3
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0x1708]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov dword [ebp + 0x14], esi
sar ecx, 2
mov dword [esi + 0xb8], ecx
lea ecx, [ebp + 0x14]
push ecx
call fcn.0040a3e1
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
push esi
push 0x40a6ee
push edi
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 8]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret 0x10

Function at 0x40a2fd
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
push esi
push 0x40a61b
push edi
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 8]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop edi
ret
Function at 0x40b08c
Capabilities:
Create thread

Disassembly:
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
lea esi, [edi + 4]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push ebx
push ebx
mov dword [edi], vtable.FileListInReg.0
mov byte [edi + 0x10], bl
mov dword [edi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push ebx
mov dword [esi + 8], eax
lea eax, [esi - 4]
push eax
push 0x40c95a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 8]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, edi
pop ebx
ret
Function at 0x40defa
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
xor esi, esi
push edi
test ebx, ebx
jle 0x40df34
push 0
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [esp + 0x18]
add eax, esi
push eax
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40df2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x40df39
add esi, edi
cmp esi, ebx
jl 0x40df02
mov eax, ebx
pop edi
pop esi
ret
mov eax, esi
jmp 0x40df36

Function at 0x40df3d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
test byte [0x4689e8], 1
jne 0x40df59
or dword [0x4689e8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4689e4], eax
push ebx
push ebp
push esi
push edi
push 0
push 0x468680
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x4689bc
push esi
mov dword [esp + 0x14], eax
call ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4689e4]
mov edi, eax
mov eax, dword [0x4689d8]
cmp edi, ecx
je 0x40df9b
mov ebx, edi
sub ebx, ecx
xor edx, edx
div ebx
cmp dword [esp + 0x10], 0
jbe 0x40dfb2
cmp eax, dword [esp + 0x10]
jbe 0x40dfb2
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40df7c
mov eax, edi
sub eax, ecx
cmp eax, 0x3e8
jbe 0x40dfca
and dword [0x4689d8], 0
mov dword [0x4689e4], edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call edi
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
push dword [esp + 0x1c]
call fcn.0040defa
pop ecx
pop ecx
push esi
mov ebx, eax
call ebp
add dword [0x4689d8], ebx
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

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

Disassembly:
mov eax, dword [esi + 0x14]
push ebx
push edi
xor edi, edi
test eax, eax
jbe 0x40e0cc
cmp dword [esi + 0x18], 0x10
jb 0x40e09a
mov ecx, dword [esi + 4]
jmp 0x40e09d
lea ecx, [esi + 4]
push 0
sub eax, edi
push eax
add ecx, edi
push ecx
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e0c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x40e0d2
mov eax, dword [esi + 0x14]
add edi, ebx
cmp edi, eax
jb 0x40e08f
mov eax, dword [esi + 0x14]
pop edi
pop ebx
ret
mov eax, edi
jmp 0x40e0cf
Function at 0x40ec1a
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, 0x4520e5
call fcn.0044ca14
sub esp, 0x45c
push ebx
push esi
push edi
push 4
lea eax, [ebp - 0x2c]
push eax
mov edi, edx
push 6
push dword [edi + 4]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x28], 0x20
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [esi + 0x18], 0x10
jb 0x40ec5d
mov esi, dword [esi + 4]
jmp 0x40ec60
add esi, 4
push ebx
push 0x4000000
push ebx
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x40ed7e
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 4
call esi
test eax, eax
je 0x40ecba
mov eax, dword [ebp - 0x18]
push 0x64
xor edx, edx
pop ecx
div ecx
cmp eax, 2
je 0x40ecba
xor al, al
jmp 0x40ed84
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
push eax
push 5
push edi
call esi
cmp eax, 1
jne 0x40ed38
lea eax, [ebp - 0x64]
push eax
call fcn.0043bfd5
mov edi, eax
pop ecx
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040ed95
push ebx
lea esi, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040ede3
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40ed11
cmp dword [ebp - 0x14], edi
jne 0x40ed11
mov byte [ebp - 0xd], 1
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
lea esi, [ebp - 0x44]
call fcn.0040ede3
mov ecx, dword [ebp + 8]
push edi
push dword [ebp - 0x24]
mov byte [eax], bl
call fcn.004018f1
call fcn.004140d3
jmp 0x40ed81
mov dword [ebp - 0x14], ebx
cmp ebx, ebx
jbe 0x40ed51
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x468]
push eax
call fcn.00402cfb
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
je 0x40ed75
cmp dword [ebp - 0x14], ebx
ja 0x40ed3f
mov byte [ebp - 0xd], 1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40ed81
mov byte [ebp - 0xd], bl
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4