joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aea0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x42aeca
mov eax, 2
pop ebp
ret
push esi
call fcn.00426030
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x42aeea
jmp dword [eax*4 + 0x42af20]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00426170
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x42af30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x43d100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42b02b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x42b02b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x42af8a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x42af68
jmp 0x42b02b
cmp edx, 0x200
jae 0x42b091
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x42b02b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x42b02a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x42b02a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x42b073
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x42b010
pop edi
mov eax, dword [0x43e110]
test eax, eax
jne 0x42b051
push str.setlocale
call fcn.0042bd90
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x42b04c
or eax, 0xffffffff
mov dword [0x43e110], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x42b07f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425133
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x42b02a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00425133
mov esp, ebp
pop ebp
ret
call fcn.004252b4
int3

Function at 0x42b380
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0042b3b0
mov esi, dword [ebp + 8]
test al, al
je 0x42b39e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0042b3c0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x42b4f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b54c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b54c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b54c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b54c
cmp dword [ecx + 0x74], 0xe
jbe 0x42b54c
cmp dword [ecx + 0xe8], 0
je 0x42b54c
push dword [ebp + 8]
call fcn.0042b3c0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x43e11c
call fcn.0042b190
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42b581
push dword [ebp + 8]
call fcn.0042b380
mov esp, ebp
pop ebp
ret

Function at 0x42b5c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b61c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b61c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b61c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b61c
cmp dword [ecx + 0x74], 0xe
jbe 0x42b61c
cmp dword [ecx + 0xe8], 0
je 0x42b61c
push dword [ebp + 8]
call fcn.0042b3c0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x43e11c
call fcn.0042b190
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42b651
push dword [ebp + 8]
call fcn.0042b380
mov esp, ebp
pop ebp
ret
Function at 0x40eba3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409d9f
mov dword [ebp - 0x14], eax
cmp dword [0x432d1c], esi
jne 0x40ec96
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ec23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ed76
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ed76
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ed76
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x432d1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x432d20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x432d24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x432d2c], eax
test eax, eax
je 0x40ec93
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x432d28], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ecbb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ecae
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ecd0
push 4
pop eax
jmp 0x40ed78
cmp dword [ebp - 0x14], esi
je 0x40ecd0
push dword [0x432d1c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ecb5
mov eax, dword [0x432d28]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ed2e
cmp dword [0x432d2c], edi
je 0x40ed2e
push eax
call ebx
push dword [0x432d2c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ed2e
test eax, eax
je 0x40ed2e
call ecx
test eax, eax
je 0x40ed23
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40ed23
test byte [ebp - 8], 1
jne 0x40ed2e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ed5e
mov eax, dword [0x432d20]
cmp eax, edi
je 0x40ed5b
push eax
call ebx
test eax, eax
je 0x40ed5b
call eax
mov esi, eax
test esi, esi
je 0x40ed5b
mov eax, dword [0x432d24]
cmp eax, edi
je 0x40ed5b
push eax
call ebx
test eax, eax
je 0x40ed5b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x432d1c]
call ebx
test eax, eax
je 0x40ed76
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ed78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404398
mov esp, ebp
pop ebp
ret
Function at 0x402fd0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x11c]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x40300e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
push str..Del
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x40305a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
lea ecx, [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x409730
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x454
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0x460]
push ebx
push ebx
push esi
call fcn.004096a0
add esp, 0xc
test al, al
jne 0x409759
pop esi
pop ebx
add esp, 0x454
ret
lea eax, [esp + 0x5c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dl, byte [esp + 0x46c]
mov eax, dword [esp + 0x464]
neg dl
sbb edx, edx
lea ecx, [esp + 0x5c]
and edx, 5
cmp eax, ebx
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], ebx
mov word [esp + 0x4a], bx
mov dword [esp + 0x4c], ebx
mov word [esp + 0x48], dx
je 0x4097bc
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
jmp 0x4097ce
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
je 0x409802
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
cmp byte [esp + 0x468], bl
je 0x4097fb
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 8]
push ecx
call esi
pop esi
mov al, 1
pop ebx
add esp, 0x454
ret

Function at 0x409ac0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x228
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x234]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x12c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x238]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x12c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 7
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov word [esp + 0x1c], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop edi
pop esi
test eax, eax
je 0x409b8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x228
ret
xor eax, eax
add esp, 0x228
ret
Function at 0x409bd0
Capabilities:
Copy file
Delete file

Disassembly:
mov al, byte [esp + 8]
xor edx, edx
sub esp, 0x124
cmp al, dl
je 0x409c58
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, ebx
mov dword [esp + 0xc], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x18], edx
and ecx, 3
lea edx, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea ecx, [esp + 0x2c]
push edx
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], ecx
mov word [esp + 0x20], 0x54
call esi
lea eax, [esp + 0xc]
push eax
call esi
test eax, eax
pop edi
pop esi
sete al
pop ebx
add esp, 0x124
ret
mov ecx, dword [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
add esp, 0x124
ret
Function at 0x40ab60
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x43eaf3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov al, byte [esp]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esi + 0x124]
mov dword [esi], 0x441d28
mov dword [esp + 0x1c], esi
mov byte [ecx], al
call fcn.00403320
mov cl, byte [esp + 0x10]
mov dword [esp + 0x1b4], ebx
mov byte [esi + 0x134], cl
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x140], ebx
mov dl, byte [esp + 0x10]
mov byte [esi + 0x144], bl
mov byte [esi + 0x148], dl
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov al, byte [esp + 0x10]
lea ebp, [esi + 0x158]
mov edi, ebp
push ebx
mov byte [esp + 0x1b8], 2
mov dword [esp + 0x18], edi
lea ecx, [edi + 4]
mov byte [ecx], al
call fcn.00403320
mov dl, byte [esp + 0x10]
lea ecx, [edi + 0x14]
push ebx
mov byte [esp + 0x1b8], 3
mov byte [ecx], dl
call fcn.00403320
lea eax, [esp + 0x10]
lea ecx, [edi + 0x24]
push eax
mov byte [esp + 0x1b8], 4
call fcn.0040cbf0
lea ecx, [esp + 0x12]
mov byte [esp + 0x1b4], 5
push ecx
lea ecx, [edi + 0x34]
call fcn.0040cbf0
lea edx, [esp + 0x13]
lea ecx, [edi + 0x44]
push edx
mov byte [esp + 0x1b8], 6
call fcn.0040cbf0
lea eax, [esp + 0x11]
lea ecx, [edi + 0x54]
push eax
mov byte [esp + 0x1b8], 7
call fcn.0040cbf0
mov ecx, edi
mov byte [esp + 0x1b4], 8
call fcn.0040ad60
mov cl, byte [esp + 0x11]
lea edi, [esi + 0x1d0]
mov dword [esi + 0x1cc], ebx
mov byte [esp + 0x1b4], 9
mov byte [edi], cl
mov dword [esp + 0x14], edi
push ebx
mov ecx, edi
call fcn.00403320
mov dl, byte [esp + 0x11]
lea ecx, [edi + 0x10]
push ebx
mov byte [esp + 0x1b8], 0xa
mov byte [ecx], dl
call fcn.00403320
lea eax, [esp + 0x11]
lea ecx, [edi + 0x24]
push eax
mov byte [esp + 0x1b8], 0xb
call fcn.0040cbf0
mov cl, byte [esp + 0x11]
push 0xc
mov byte [esp + 0x1b8], 0xc
mov byte [esi + 0x214], cl
call fcn.00433573
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0x218], eax
mov dword [esi + 0x21c], ebx
lea edx, [esp + 0x1c]
mov byte [esp + 0x1b4], 0xd
push edx
push 0x202
mov dword [esi], 0x441cf8
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x40ad41
mov ecx, esi
mov dword [0x452110], esi
call fcn.0040b4b0
mov ecx, 0x48
xor eax, eax
lea edi, [esi + 4]
rep stosd dword es:[edi], eax
mov ecx, ebp
call fcn.0040ad60
mov ecx, dword [esp + 0x1ac]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a8
ret
Function at 0x40ca40
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x40
mov al, byte [0x45207c]
push edi
mov byte [esp + 4], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 4]
push 0x40
push ecx
stosb byte es:[edi], al
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x40ca83
lea edx, [esp + 4]
push 0x2e
push edx
call fcn.00423730
add esp, 8
test eax, eax
je 0x40ca83
mov byte [eax], 0
lea eax, [esp + 4]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x40cb7b
mov ecx, dword [eax + 0xc]
push ebx
push ebp
push esi
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.WS2_32.dll_inet_ntoa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x40cae2
call fcn.0042e0ea
mov ebp, dword [esp + 0x54]
xor edx, edx
mov ecx, dword [ebp + 4]
cmp ecx, edx
je 0x40cb18
mov al, byte [ecx - 1]
test al, al
je 0x40cb18
cmp al, 0xff
je 0x40cb18
cmp ebx, edx
jne 0x40cb46
dec al
pop esi
mov byte [ecx - 1], al
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
pop ebp
pop ebx
mov al, 1
pop edi
add esp, 0x40
ret 4
cmp ebx, edx
jne 0x40cb31
push 1
mov ecx, ebp
call fcn.00403320
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
add esp, 0x40
ret 4
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x40cb3d
cmp eax, ebx
jae 0x40cb4e
push 1
mov ecx, ebp
call fcn.00403320
push ebx
mov ecx, ebp
call fcn.00403a50
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop esi
pop ebp
mov byte [eax + ebx], 0
pop ebx
mov al, 1
pop edi
add esp, 0x40
ret 4
xor al, al
pop edi
add esp, 0x40
ret 4

Function at 0x40d630
Capabilities:
Hash data with md5

Disassembly:
lea edx, [ecx + 0x10]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x413aa0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, ecx
or eax, 0xffffffff
push ebp
mov ecx, dword [ebx + 4]
push esi
cmp ecx, eax
push edi
je 0x413ae6
mov cl, byte [ebx + 0xc]
test cl, cl
je 0x413ae6
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x413ae6
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
jle 0x413ae4
mov ecx, dword [ebx + 4]
push 0
lea eax, [esi + ebp]
push edi
push eax
push ecx
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x413aed
add esi, eax
cmp esi, edi
jl 0x413ac9
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8

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

Disassembly:
mov eax, dword [ecx + 4]
push esi
cmp eax, 0xffffffff
push edi
je 0x413b32
mov dl, byte [ecx + 0xc]
test dl, dl
je 0x413b32
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push 0
push esi
push edi
push eax
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
jl 0x413b3a
test eax, eax
jg 0x413b3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
pop esi
ret 8
cmp eax, esi
jge 0x413b35
mov byte [eax + edi], 0
pop edi
pop esi
ret 8

Function at 0x413b80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43f1b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov byte [esi + 0x10], al
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov cl, byte [esp + 0xb]
mov dword [esp + 0x18], edi
mov byte [esi + 0x20], cl
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dl, byte [esp + 0xb]
mov dword [esi + 0x34], edi
mov byte [esi + 0x30], dl
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov al, byte [esp + 0xb]
mov dword [esi + 0x44], edi
mov byte [esi + 0x40], al
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov cl, byte [esp + 0xb]
mov dword [esi + 0x54], edi
mov byte [esi + 0x50], cl
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
push 0x2710
push 0x2710
push 0x2710
lea ecx, [esi + 0x60]
mov byte [esp + 0x24], 4
call fcn.00413660
push 0x2710
push 0x2710
push 0x2710
lea ecx, [esi + 0x1094]
mov byte [esp + 0x24], 5
call fcn.00413660
mov dword [esi + 0x30c8], edi
mov ecx, 0x400
xor eax, eax
lea edi, [esi + 0x20c8]
mov dword [esi], 0x441de8
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x418aa0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x418ac0
Capabilities:
Set file attributes

Disassembly:
mov al, byte [0x45253c]
sub esp, 0xc
test al, al
jne 0x418aff
mov eax, dword [esp + 0x10]
push ebx
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00418b20
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push edx
push eax
call fcn.00418aa0
mov bl, al
mov eax, dword [esp + 0x14]
push eax
call fcn.0043359c
add esp, 0x14
mov al, bl
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add esp, 0xc
ret

Function at 0x419060
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call fcn.00418aa0
add esp, 8
test al, al
jne 0x419076
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
pop esi
ret

Function at 0x419090
Capabilities:
Delete file

Disassembly:
mov al, byte [0x45253c]
sub esp, 0xc
test al, al
push esi
jne 0x4190cc
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00418b20
mov eax, dword [eax]
push eax
call fcn.00419060
mov edx, dword [esp + 0x14]
mov bl, al
push edx
call fcn.0043359c
add esp, 0x10
mov al, bl
pop ebx
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x14]
push 0
push esi
call fcn.00418ac0
add esp, 8
test al, al
jne 0x4190e4
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
add esp, 0xc
ret
Function at 0x431620
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00422920
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4316eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4316eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43169e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4316a9
or bh, 8
and edi, 0x8000000
je 0x4316c4
mov eax, dword [0x455d3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4316eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret