joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fae4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47fb15
mov ecx, dword [0x55d71c]
mov dl, 1
mov eax, dword [0x47dfac]
call fcn.0040e670
call fcn.004044fc
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x47fb42
mov ecx, dword [0x55d244]
mov dl, 1
mov eax, dword [0x47dfac]
call fcn.0040e670
call fcn.004044fc
xor eax, eax
push ebp
push 0x47fbc3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403e68
cmp byte [ebp + 8], 0
je 0x47fb9d
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047fa4c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0047f654
jmp 0x47fbb9
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047f1b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47fbe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x47fbec
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47fc1d
mov ecx, dword [0x55d324]
mov dl, 1
mov eax, dword [0x47dfac]
call fcn.0040e670
call fcn.004044fc
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x47fc4a
mov ecx, dword [0x55d244]
mov dl, 1
mov eax, dword [0x47dfac]
call fcn.0040e670
call fcn.004044fc
xor eax, eax
push ebp
push 0x47fcc6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403e68
cmp byte [ebp + 8], 0
je 0x47fca2
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047fa4c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0047f6d4
jmp 0x47fcbc
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047f1b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47fce3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47fec4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047f47c
xor eax, eax
push ebp
push 0x480035
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x48001f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x47ff0f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47ff19
call fcn.004045a8
jmp 0x48003c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421464
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x480014
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x47ffc7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x47ffb4
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403e68
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0047fe7c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x480048]
cmp dl, byte [eax + 0x28]
je 0x48001b
call fcn.0040e588
jmp 0x48001b
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421484
jmp 0x48001b
cmp ecx, ebx
jge 0x47ffe3
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421484
jmp 0x47ff19
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00421464
cmp edx, dword [esp + 4]
jne 0x480003
cmp eax, dword [esp]
pop edx
pop eax
jne 0x47ff19
push ebp
call fcn.0047fe7c
pop ecx
jmp 0x48001b
push ebp
call fcn.0047fe7c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48003c
mov eax, dword [ebp - 4]
call fcn.0047f488
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480064
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480186
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047f47c
xor eax, eax
push ebp
push 0x480169
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4800b4
call fcn.004045a8
jmp 0x480170
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x480153
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x480153
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403e68
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x480153
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040dd7c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4801a0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x55d50c]
mov dl, 1
mov eax, dword [0x47dfac]
call fcn.0040e6ac
call fcn.004044fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480170
mov eax, dword [ebp - 4]
call fcn.0047f488
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48018d
lea eax, [ebp - 0x28]
call fcn.00404c08
ret
Function at 0x4801ec
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480336
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047f47c
xor eax, eax
push ebp
push 0x480319
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x480251
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x480251
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x480303
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x480264
call fcn.004045a8
jmp 0x480320
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x480303
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x480303
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403e68
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x480303
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040dd7c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x480350
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x55d50c]
mov dl, 1
mov eax, dword [0x47dfac]
call fcn.0040e6ac
call fcn.004044fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480320
mov eax, dword [ebp - 4]
call fcn.0047f488
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48033d
lea eax, [ebp - 0x28]
call fcn.00404c08
ret

Function at 0x482368
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004083a0
ret
Function at 0x49fec4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49ffe0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x49fffc
call fcn.0049fd44
mov ebx, eax
test ebx, ebx
je 0x49ffc5
lea eax, [ebp - 0xc]
push eax
push 0xf00ff
push ebx
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x49ffc5
lea eax, [ebp - 8]
push eax
push 1
push 1
push 0
push 0xf00ff
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
je 0x49ffa3
lea eax, [ebp - 0x50]
mov edx, 0x44
call fcn.004083a0
mov dword [ebp - 0x50], 0x44
mov eax, 0x4a000c
mov dword [ebp - 0x48], eax
mov word [ebp - 0x20], 0xa
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x5c], 0xc
xor eax, eax
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x68], 0xc
xor eax, eax
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push edi
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
mov eax, dword [ebp - 0x78]
mov dword [ebp - 4], eax
jmp 0x49ffc5
lea eax, [ebp - 0x80]
mov edx, esi
call fcn.00404e00
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 0x4a0024
call fcn.00404f14
mov eax, dword [ebp - 0x7c]
call fcn.004a0240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ffe7
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.00404c2c
ret
Function at 0x4a003c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050b8
xor eax, eax
push ebp
push 0x4a01ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4a01d4
call fcn.0049fd44
mov esi, eax
test esi, esi
jbe 0x4a008e
mov edx, dword [ebp - 4]
mov eax, 0x4a01d4
call fcn.0040520c
test eax, eax
jle 0x4a008e
test bl, bl
je 0x4a019c
test bl, bl
je 0x4a00c2
mov eax, 0x4a01e8
call fcn.0049fd44
mov esi, eax
test esi, esi
jbe 0x4a00c2
mov edx, dword [ebp - 4]
mov eax, 0x4a01e8
call fcn.0040520c
test eax, eax
jle 0x4a00c2
test bl, bl
je 0x4a00c2
mov edi, dword [0x55f09c]
jmp 0x4a019c
mov eax, 0x4a0200
call fcn.0049fd44
mov ebx, eax
test ebx, ebx
je 0x4a019c
lea eax, [ebp - 0xc]
push eax
push 0xf00ff
push ebx
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4a019c
lea eax, [ebp - 8]
push eax
push 1
push 1
push 0
push 0xf00ff
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
je 0x4a0184
lea eax, [ebp - 0x50]
mov edx, 0x44
call fcn.004083a0
mov dword [ebp - 0x50], 0x44
mov eax, 0x4a0210
mov dword [ebp - 0x48], eax
mov word [ebp - 0x20], 5
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x5c], 0xc
xor eax, eax
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x68], 0xc
xor eax, eax
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004050c8
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
mov edi, dword [ebp - 0x78]
jmp 0x4a019c
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 4]
mov edx, 0x4a0228
call fcn.00404f14
mov eax, dword [ebp - 0x7c]
call fcn.004a0240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a01c1
lea eax, [ebp - 0x7c]
call fcn.00404c08
lea eax, [ebp - 4]
call fcn.00404c08
ret
Function at 0x4a4050
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4a407e
mov eax, ebx
call fcn.004a4b04
cmp dword [ebx + 0x40], 0
je 0x4a4077
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4a40ef
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4a40e1
cmp dword [ebx + 8], 0
je 0x4a40a0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4a40b2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4a40e1
cmp dword [ebx + 8], 0
je 0x4a4093
cmp eax, 3
je 0x4a40c5
dec eax
jne 0x4a4093
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4a4093
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4a4093
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4a410d
cmp dword [ebx + 0x14], 0xcc
je 0x4a410d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004a4118
pop ebx
ret

Function at 0x4d700f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x558b22
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4d7067
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x558b43
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4d705d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4d706b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4f4c44
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004083a0
ret

Function at 0x4f7538
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov byte [ebp - 5], 0
push 0
mov eax, dword [ebx + 0x44]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4f75a7
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4f7589
mov ecx, dword [edi]
mov edx, esi
mov eax, ebx
call fcn.004f75b4
test al, al
je 0x4f75a7
jmp 0x4f754f
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
jne 0x4f759b
mov byte [ebp - 5], 1
jmp 0x4f75a7
cmp eax, 6
je 0x4f75a7
mov eax, ebx
call fcn.004f782c
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4f797c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 8]
add eax, esi
push eax
mov eax, dword [edi + 0x40]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4f7a38
call sub.kernel32.dll_GetLastError_1
cmp eax, 6
je 0x4f7a4a
cmp eax, 0x3e5
je 0x4f79e0
mov eax, edi
call fcn.004f7a58
jmp 0x4f7a4a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call sub.kernel32.dll_WaitForMultipleObjects
sub eax, 0xffffffff
je 0x4f7a26
dec eax
je 0x4f7a4a
dec eax
je 0x4f79fc
jmp 0x4f7a2f
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [edi + 0x40]
push eax
call sub.kernel32.dll_GetOverlappedResult
test eax, eax
jne 0x4f7a38
call sub.kernel32.dll_GetLastError_1
cmp eax, 6
je 0x4f7a4a
mov eax, edi
call fcn.004f7a58
jmp 0x4f7a4a
mov eax, edi
call fcn.004f7a58
jmp 0x4f7a4a
mov eax, edi
call fcn.004f7a58
jmp 0x4f7a4a
sub ebx, dword [ebp - 0x10]
add esi, dword [ebp - 0x10]
test ebx, ebx
ja 0x4f79aa
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x511fb4
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x512061
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x400
mov eax, dword [ebp - 4]
call fcn.00402844
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
je 0x511ffc
push eax
call sub.kernel32.dll_SetLastError
call fcn.0040fd90
lea ebx, [edi + 0x10c]
cmp dword [esi], 0
jne 0x512018
mov eax, esi
lea edx, [ebx + 4]
mov ecx, 0x10
call fcn.00404e78
jmp 0x51203e
push dword [esi]
push 0x512078
lea eax, [ebp - 8]
lea edx, [ebx + 4]
mov ecx, 0x10
call fcn.00404e78
push dword [ebp - 8]
mov eax, esi
mov edx, 3
call fcn.00404f88
mov ebx, dword [ebx]
test ebx, ebx
jne 0x512002
mov eax, edi
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512068
lea eax, [ebp - 8]
call fcn.00404c08
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov edi, edx
mov ebp, eax
mov bl, 1
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
cmp byte [ebp + 0x235], 0
je 0x523dd8
mov al, byte [ebp + 0x234]
xor edx, edx
mov dl, al
cmp edi, edx
jge 0x523dcd
mov edx, edi
push edx
mov edx, eax
pop eax
sub dl, al
mov eax, ebp
call fcn.00522ec0
jmp 0x523e03
xor edx, edx
mov eax, ebp
call fcn.00522ec0
jmp 0x523e03
mov al, byte [ebp + 0x234]
xor edx, edx
mov dl, al
mov ecx, 0x64
sub ecx, edi
cmp edx, ecx
jge 0x523dfa
mov edx, edi
add dl, al
mov eax, ebp
call fcn.00522ec0
jmp 0x523e03
mov dl, 0x64
mov eax, ebp
call fcn.00522ec0
cmp byte [ebp + 0x235], 0
je 0x523e15
cmp byte [ebp + 0x234], 0
je 0x523e27
cmp byte [ebp + 0x235], 0
jne 0x523e29
cmp byte [ebp + 0x234], 0x64
jne 0x523e29
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
mov edx, dword [esp]
mov dword [edx], eax
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5250c4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050b8
mov eax, dword [ebp - 8]
call fcn.004050b8
mov eax, dword [ebp - 0xc]
call fcn.004050b8
xor eax, eax
push ebp
push 0x5252c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor ecx, ecx
mov dl, 1
mov eax, dword [0x50c660]
call fcn.00485944
mov dword [0x560038], eax
mov eax, dword [0x560038]
add eax, 0xdc
mov edx, 0x5252dc
call fcn.00404c5c
mov eax, dword [0x560038]
add eax, 0xd0
mov edx, 0x5252ec
call fcn.00404c5c
mov edx, dword [ebp - 0xc]
mov eax, dword [0x560038]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [0x560038]
mov edx, dword [0x525068]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x38], 0x5252f8
mov eax, dword [0x560038]
mov edx, dword [0x525068]
mov dword [eax + 0x44], edx
mov dword [eax + 0x40], 0x525328
mov eax, dword [0x560038]
mov edx, dword [0x525068]
mov dword [eax + 0x4c], edx
mov dword [eax + 0x48], 0x52533c
xor eax, eax
push ebp
push 0x525282
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x15c]
mov eax, dword [ebp - 8]
call fcn.0040a534
mov eax, dword [ebp - 0x15c]
call fcn.0040a2c8
test al, al
jne 0x5251e5
push 0
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 8]
call fcn.0040a534
mov eax, dword [ebp - 0x160]
call fcn.004050c8
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [0x560038]
mov edx, dword [eax]
call dword [edx + 0x94]
push 1
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [0x560038]
call fcn.0050dda0
mov edx, dword [ebp - 4]
mov eax, dword [0x560038]
call fcn.0050eb24
mov dword [0x560044], eax
mov eax, dword [ebp - 8]
call fcn.004050c8
mov edx, eax
lea eax, [ebp - 0x158]
call fcn.00403004
mov edx, 1
lea eax, [ebp - 0x158]
call fcn.004034b4
call fcn.004029ac
lea eax, [ebp - 0x158]
call fcn.00403324
call fcn.004029ac
mov esi, eax
lea eax, [ebp - 0x158]
call fcn.00403180
call fcn.004029ac
cmp esi, dword [0x560044]
jne 0x52526e
mov bl, 1
mov eax, dword [0x560038]
call fcn.00403c6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x525298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5252ca
lea eax, [ebp - 0x160]
mov edx, 2
call fcn.00404c2c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c2c
ret