joyce8/EMBER2024-capa huggingface dataset:
Function at 0x610f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x610ff4
cmp byte [edx], 0
je 0x610fe7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.00610e80
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00610e80
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00610df0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x610fb1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.00610e30
fmul qword [0x69c738]
push ecx
fstp qword [esp]
call fcn.005f8df8
fadd qword [0x69c730]
add esp, 8
call fcn.005f8ec8
mov byte [ebx], al
inc ebx
dec edi
jne 0x610f84
lea ecx, [esp + 0x20]
push ecx
call fcn.00610e30
fmul qword [0x69c738]
push ecx
fstp qword [esp]
call fcn.005f8df8
add esp, 8
call fcn.005f8ec8
cmp esi, ebx
je 0x610fdd
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x610fd6
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6113c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x6113f0
mov byte [edi + esi], 2
jmp 0x611427
test al, 4
je 0x6113fa
mov byte [edi + esi], 0xd
jmp 0x611427
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x611413
mov byte [edi + esi], 2
jmp 0x611427
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x611423
mov byte [edi + esi], 0x19
jmp 0x611427
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x6113d7
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x61149b
cmp dl, 0xd
je 0x61149b
xor edx, edx
jmp 0x6114a0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x61148b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x6114c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.0060fd80
mov esi, eax
add esp, 8
test esi, esi
jne 0x6114e1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00612b10
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x611506
push esi
call fcn.0060fe10
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.00605a42
push ebx
push edi
mov ebp, eax
call fcn.00612b80
push 0x611540
push ebp
push esi
call fcn.00613eb0
push esi
call fcn.0060fe10
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x612840
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x7e6820
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7e6748]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x6128bb
push 0x4c
push 1
call fcn.005fb532
mov esi, eax
add esp, 8
test esi, esi
jne 0x612883
push 0x7e6820
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x7e6748]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x7d9134]
inc eax
lea edx, [esi + 0xc]
mov dword [0x7d9134], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.006163f0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x7e6820
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x612d40
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.005fc1c1
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00605a42
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x612e3a
call fcn.005fc1c1
cmp dword [eax], 0
je 0x612d87
call fcn.005fc1c1
mov ebp, dword [eax]
jmp 0x612d8a
or ebp, 0xffffffff
call fcn.006128d0
test esi, esi
mov dword [eax], ebp
jne 0x612d9f
call fcn.005fc1c1
cmp dword [eax], 4
je 0x612def
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x612dd2
cmp esi, 0xffffffff
je 0x612e14
test al, 6
je 0x612dd2
call fcn.006128d0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00616420
add esp, 4
push eax
push 0x24
push 9
call fcn.00613120
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x612e32
test al, 6
je 0x612de0
test ah, 2
je 0x612e32
test esi, esi
jbe 0x612e3e
test ah, 2
je 0x612e3e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.005fc1c1
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00605a42
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x612e3a
jmp 0x612d74
call fcn.006128d0
mov eax, dword [eax]
push eax
push ebx
call fcn.00616420
add esp, 4
push eax
push 0x24
push 2
call fcn.00613120
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x612e4b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x612e54
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x623c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005fc14e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x623c7d
test byte [esp + 8], 2
je 0x623c7d
call fcn.005fc1c1
mov dword [eax], 0xd
call fcn.005fc1ca
mov dword [eax], 5
jmp 0x623c56
xor eax, eax
ret
Function at 0x628f7e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x628fb6
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.0062700b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00626fe3
jmp 0x628fc2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x62a66c
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 0x62a6ae
call fcn.00630582
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x62a6ae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x62a6a5
xor eax, eax
jmp 0x62a6b6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0062a6bc
pop edi
pop esi
pop ebx
ret 4

Function at 0x630ab2
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 0x630ae0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x630afe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00630a18
jmp 0x630afe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x630afe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00630a18
test edi, edi
mov eax, edi
jne 0x630ae8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402d90
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x190
push 0xfe
push 0x432f58
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.00402eb0
add esp, 4
test al, al
jne 0x402dca
xor eax, eax
add esp, 0x190
ret 0x10
lea edx, [esp]
push esi
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x10291c
call fcn.004038f7
add esp, 4
test eax, eax
je 0x402e93
mov ecx, eax
call fcn.00401090
mov esi, eax
test esi, esi
je 0x402e93
mov cx, word [0x42e338]
mov eax, dword [esi]
push str.admin
push 0x42e270
push ecx
push str.192.168.1.24
mov ecx, esi
call dword [eax + 0x7c]
test al, al
je 0x402e81
mov ecx, 0x432e38
call fcn.0040aa30
mov ecx, 0x432e38
mov dword [0x432e54], esi
call fcn.0040aa40
mov al, byte [0x4333c0]
test al, al
jne 0x402e63
mov ecx, esi
call fcn.00401560
push 0x3e8
call fcn.0040a030
mov al, byte [0x4333c0]
add esp, 4
test al, al
je 0x402e46
mov ecx, 0x432e38
call fcn.0040aa30
mov ecx, 0x432e38
mov dword [0x432e54], 0
call fcn.0040aa40
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x80]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop esi
add esp, 0x190
ret 0x10

Function at 0x409a10
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x409a1e
mov al, 1
pop esi
ret 4
mov eax, dword [esp + 8]
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
setne al
pop esi
ret 4

Function at 0x409b60
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
mov ecx, dword [esi]
push eax
mov edi, 1
push 0x8004667e
push ecx
mov dword [esp + 0x18], edi
call ebx
mov edx, dword [esp + 0x120]
mov eax, dword [esi]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [esi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x20]
mov edx, dword [esp + 0x124]
mov dword [esp + 0x14], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0
push ecx
push 0
push 2
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_select]
lea edx, [esp + 0xc]
mov edi, eax
mov eax, dword [esi]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x18], 0
call ebx
test edi, edi
pop edi
pop esi
setg al
pop ebx
add esp, 0x110
ret 8
Function at 0x409c30
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x409c4c
or eax, eax
pop esi
add esp, 0x10c
ret 0xc
push edi
mov dword [esp + 0x14], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], 1
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x120]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push 0
push edx
push 0
push 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
pop edi
jg 0x409ca0
xor eax, eax
pop esi
add esp, 0x10c
ret 0xc
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
mov edx, dword [esi]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
pop esi
add esp, 0x10c
ret 0xc

Function at 0x409d00
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x409da2
push edi
mov dword [esp + 0x14], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], 1
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x120]
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x18]
push 0
push edx
push 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
pop edi
jg 0x409d68
xor eax, eax
pop esi
add esp, 0x10c
ret 0xc
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
mov edx, dword [esi]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x409da0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
pop esi
neg eax
sbb eax, eax
add esp, 0x10c
ret 0xc
jne 0x409da5
or eax, 0xffffffff
pop esi
add esp, 0x10c
ret 0xc

Function at 0x409db0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x409dcc
or eax, eax
pop esi
add esp, 0x10c
ret 0xc
push edi
mov dword [esp + 0x14], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x128]
push 0
push edx
push 2
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
pop edi
jg 0x409e1c
xor eax, eax
pop esi
add esp, 0x10c
ret 0xc
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
mov edx, dword [esi]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x409e56
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
pop esi
neg eax
sbb eax, eax
and al, 0xfe
add esp, 0x10c
ret 0xc
jne 0x409e5d
mov eax, 0xfffffffd
pop esi
add esp, 0x10c
ret 0xc
Function at 0x409db6
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x409dcc
or eax, eax
pop esi
add esp, 0x10c
ret 0xc
push edi
mov dword [esp + 0x14], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x128]
push 0
push edx
push 2
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
pop edi
jg 0x409e1c
xor eax, eax
pop esi
add esp, 0x10c
ret 0xc
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
mov edx, dword [esi]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x409e56
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
pop esi
neg eax
sbb eax, eax
and al, 0xfe
add esp, 0x10c
ret 0xc
jne 0x409e5d
mov eax, 0xfffffffd
pop esi
add esp, 0x10c
ret 0xc

Function at 0x409e70
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x409e88
xor al, al
add esp, 0x20
ret
mov ecx, dword [eax + 0xc]
push esi
push edi
push 0
mov esi, dword [ecx]
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
mov edx, dword [esi]
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x10], edx
call fcn.00409940
lea ecx, [esp + 0x18]
call fcn.004099d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x20
ret
Function at 0x40a230
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x158
push edi
mov ecx, 0xa
or eax, 0xffffffff
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0xc], 0
cmp eax, 0xa
mov dword [esp + 4], 1
mov dword [esp + 0x10], 0xffffffff
jle 0x40a274
or eax, 0xffffffff
pop edi
add esp, 0x158
ret
push ebx
push ebp
test eax, eax
push esi
jle 0x40a2b0
mov esi, dword [esp + 0x16c]
lea edi, [esp + 0x2c]
sub edi, esi
mov ebx, eax
mov ecx, esi
call fcn.00409b40
push 1
mov ecx, esi
call fcn.00409a10
test al, al
je 0x40a2a3
mov eax, dword [esi]
mov dword [edi + esi], eax
add esi, 4
dec ebx
jne 0x40a28a
mov eax, dword [esp + 0x174]
mov ebp, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [esp + 0x64], 0
test eax, eax
jle 0x40a373
mov ecx, dword [esp + 0x170]
lea edx, [esp + 0x2c]
sub ecx, edx
lea ebx, [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + ebx]
test eax, eax
jbe 0x40a361
mov ecx, dword [esp + 0x178]
push ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.00409970
lea ecx, [esp + 0x54]
mov dword [esp + 0x10], 1
call fcn.00409a00
mov esi, dword [ebx]
lea edx, [esp + 0x10]
push edx
push 0x8004667e
push esi
mov edi, eax
call ebp
push 0x10
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [esp + 0x64]
xor eax, eax
test ecx, ecx
jbe 0x40a33e
lea edx, [esp + 0x68]
cmp dword [edx], esi
je 0x40a33e
inc eax
add edx, 4
cmp eax, ecx
jb 0x40a332
cmp eax, ecx
jne 0x40a354
cmp ecx, 0x40
jae 0x40a354
mov dword [esp + eax*4 + 0x68], esi
mov eax, dword [esp + 0x64]
inc eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add ebx, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x40a2df
mov eax, dword [esp + 0x17c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x68]
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.WS2_32.dll_select]
mov ebx, dword [esp + 0x174]
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x40a3d2
lea esi, [esp + 0x2c]
mov edi, ebx
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x1c], 0
call ebp
add esi, 4
dec edi
jne 0x40a3b5
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x40a3fd
xor esi, esi
test ebx, ebx
jle 0x40a3fd
lea edi, [esp + 0x2c]
mov ecx, dword [edi]
lea eax, [esp + 0x64]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x40a41e
inc esi
add edi, 4
cmp esi, ebx
jl 0x40a3e4
mov ebp, dword [esp + 0x1c]
test ebx, ebx
jle 0x40a43a
mov esi, dword [esp + 0x16c]
mov edi, ebx
test ebp, ebp
je 0x40a42d
cmp ebp, dword [esi]
jne 0x40a42d
mov dword [esi], 0xffffffff
jmp 0x40a434
mov edx, dword [esp + 0x180]
mov ebp, dword [esp + esi*4 + 0x2c]
mov dword [edx], esi
jmp 0x40a401
mov ecx, esi
call fcn.00409b40
add esi, 4
dec edi
jne 0x40a40e
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x158
ret
Function at 0x40bf01
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x264]
mov ecx, ebx
call fcn.00428c90
test al, al
jne 0x40bfea
push edi
cmp dword [esi + 0x194], 2
jne 0x40bfd0
mov eax, dword [esi + 0x158]
lea ecx, [esi + 0x158]
call dword [eax + 0x10]
mov edi, eax
test edi, edi
je 0x40bf62
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0x698], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 4]
lea edx, [edi + 0x10]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040c590
push edi
call fcn.004034e0
jmp 0x40bf69
push 1
call fcn.0040a030
add esp, 4
mov ecx, esi
call fcn.0040f4f0
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x210]
test ecx, ecx
jne 0x40bf8a
mov dword [esi + 0x210], eax
jmp 0x40bfa3
mov edx, eax
sub edx, ecx
cmp edx, 0x2710
jbe 0x40bfa3
mov ecx, esi
mov dword [esi + 0x210], eax
call fcn.0040b8c0
mov ecx, esi
call fcn.0040c080
test al, al
je 0x40bfda
push 0x430fe0
mov ecx, esi
call fcn.00410330
lea ecx, [esi + 0x198]
call fcn.00409b40
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x30]
jmp 0x40bfda
push 0x64
call fcn.0040a030
add esp, 4
mov ecx, ebx
call fcn.00428c90
test al, al
je 0x40bf1a
pop edi
pop esi
pop ebx
ret
Function at 0x412a40
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
mov al, byte [0x432e30]
push esi
push edi
mov byte [esp + 0xc], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov dword [esp + 8], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
stosw word es:[edi], ax
call fcn.004240cb
lea edx, [esp + 0xc]
push edx
call fcn.00423f6b
mov esi, eax
add esp, 8
test esi, esi
je 0x412b34
mov edi, dword [esp + 0x110]
push edi
call fcn.004127a0
push str.d:UVCCenter
lea eax, [esp + 0x14]
push str._slog
push eax
call fcn.004241f1
add esp, 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
inc eax
push edx
add ecx, 0x76c
push eax
push ecx
push edi
push str.d:UVCCenter
lea edx, [esp + 0x20]
push str._slog_s__d__02d__02d_.log
push edx
call fcn.004241f1
lea eax, [esp + 0x28]
push 0x431598
push eax
call fcn.00424458
mov edi, eax
add esp, 0x24
test edi, edi
je 0x412b34
mov ecx, dword [esp + 0x114]
mov edx, dword [esi]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0x14]
inc eax
push edx
add ecx, 0x76c
push eax
push ecx
push str.__02d__02d__02d__02d:_02d:_02d_:_s_n
push edi
call fcn.004245a4
push edi
call fcn.00424293
add esp, 0x28
pop edi
pop esi
add esp, 0x104
ret

Function at 0x413370
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x40
push eax
push 0x4335b0
call fcn.004136b0
push 0x40
push 0x42ba04
push 0x4335b0
push 0x4335b0
call fcn.004135d0
mov al, byte [esp + 0x3c]
add esp, 0x1c
test al, al
jne 0x4133fb
mov ebx, dword [esp + 0x1c]
mov ebp, 0x10
mov eax, dword [0x4312a4]
mov ecx, 8
mov esi, eax
mov edi, 0x433504
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00413510
mov ecx, dword [0x4312a0]
mov edx, dword [0x4312a4]
push 0x20
push ecx
push edx
call fcn.00413620
mov edi, dword [0x4312a0]
add esp, 0x14
mov ecx, 8
mov esi, 0x433504
add ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4133af
jmp 0x413454
mov eax, dword [esp + 0x1c]
mov ebp, 0x10
lea ebx, [eax + 0x2d0]
mov eax, dword [0x4312a0]
mov ecx, 8
mov esi, eax
mov edi, 0x433504
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00413510
mov ecx, dword [0x4312a4]
mov edx, dword [0x4312a0]
push 0x20
push ecx
push edx
call fcn.00413620
mov edi, dword [0x4312a4]
add esp, 0x14
mov ecx, 8
mov esi, 0x433504
sub ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x41340a
push 0x40
push 0x42ba44
push 0x4335b0
push 0x4335b0
call fcn.004135d0
mov eax, dword [esp + 0x24]
push 0x40
push 0x4335b0
push eax
call fcn.004136f0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
ret