joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40215c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43814c]
jne 0x402166
repz ret
jmp fcn.00402df7

Function at 0x40fcda
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43814c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405b9b
and dword [ebp - 0x14], 0
cmp dword [0x43afe4], 0
mov dword [ebp - 0x18], eax
jne 0x40fd8d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fe35
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fe35
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43afe4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43afe8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43afec], eax
call edi
push eax
call esi
mov dword [0x43aff4], eax
test eax, eax
je 0x40fd8d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43aff0], eax
mov eax, dword [0x43aff0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fde6
cmp dword [0x43aff4], ecx
je 0x40fde6
push eax
call esi
push dword [0x43aff4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fde6
test ebx, ebx
je 0x40fde6
call edi
test eax, eax
je 0x40fddd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fddd
test byte [ebp - 8], 1
jne 0x40fde6
or dword [ebp + 0x10], 0x200000
jmp 0x40fe19
mov eax, dword [0x43afe8]
cmp eax, dword [ebp - 0x18]
je 0x40fe19
push eax
call esi
test eax, eax
je 0x40fe19
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fe19
mov eax, dword [0x43afec]
cmp eax, dword [ebp - 0x18]
je 0x40fe19
push eax
call esi
test eax, eax
je 0x40fe19
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43afe4]
call esi
test eax, eax
je 0x40fe35
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fe37
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040215c
leave
ret
Function at 0x429330
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x43814c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x43cd7c]
push edi
mov edi, dword [0x43f1fc]
call fcn.004292a0
cmp dword [0x43f1fc], 0x2f
jne 0x4293c4
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
call fcn.004292d0
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.0040215c
add esp, 0x41c
ret
Function at 0x4298c0
Capabilities:
Get disk information
Read file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x43814c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x43f1fc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519a5
mov edi, 0x8e46a7b8
lea esp, [esp]
mov dword [0x43ee64], edi
cmp eax, 0x3dc
jne 0x42990a
push 0
push 0
push 0
call esi
mov eax, dword [0x43f1fc]
dec ebx
jne 0x4298f0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x429920
cmp eax, 0x997
jne 0x429967
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x43f1fc]
cmp esi, 0x845fb3
jne 0x42997e
mov eax, dword [0x439d70]
add eax, 0xa231
mov dword [0x43f1fc], eax
cmp eax, 0x141
jne 0x429999
mov dword [0x43b508], 0xec58acac
mov dword [0x43b50c], 0xffffffff
inc esi
cmp esi, 0x12d131e
jl 0x429920
call fcn.004293e0
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040215c
add esp, 0x41c
ret 0x10

Function at 0x401a1c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a5b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a5b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a5b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a5b
cmp dword [ecx + 0x74], 0xe
jbe 0x401a5b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40107e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
push edi
xor edi, edi
cmp dword [0x2b19ab4], 0x594
mov dword [ebp - 8], eax
jne 0x4010b2
push edi
lea eax, [ebp - 0x830]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x443ef8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x443efc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
call fcn.00401077
mov eax, dword [0x443f00]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x443f04]
add esi, 0x23f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2b19ab4], 0xc
mov dword [ebp - 4], eax
jne 0x40112d
push edi
lea eax, [ebp - 0x830]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push edi
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2b19ab4]
cmp eax, 0xfa9
jne 0x401149
mov dword [0x2b19ab0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401164
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x2b19464], edi
mov ecx, dword [ebp - 0xc]
mov edx, ebx
lea eax, [esi + ebx]
shr edx, cl
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [0x2b19aac], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor edx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea ecx, [esi + eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
shr eax, cl
add eax, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor dword [ebp - 4], ecx
sub ebx, dword [ebp - 4]
add esi, 0x61c88647
dec dword [ebp - 0x1c]
jne 0x4010ed
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x405b76
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443a28]
jne 0x405b80
repz ret
jmp fcn.004086fc

Function at 0x408289
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040271a
and dword [ebp - 4], 0
cmp dword [0x445f20], 0
mov ebx, eax
jne 0x40833a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4083eb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4083eb
push eax
call fcn.004026a8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x445f20], eax
call esi
push eax
call fcn.004026a8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x445f24], eax
call esi
push eax
call fcn.004026a8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x445f28], eax
call esi
push eax
call fcn.004026a8
pop ecx
mov dword [0x445f30], eax
test eax, eax
je 0x40833a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004026a8
pop ecx
mov dword [0x445f2c], eax
mov eax, dword [0x445f2c]
cmp eax, ebx
je 0x408392
cmp dword [0x445f30], ebx
je 0x408392
push eax
call fcn.00402723
push dword [0x445f30]
mov esi, eax
call fcn.00402723
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408392
test edi, edi
je 0x408392
call esi
test eax, eax
je 0x408389
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408389
test byte [ebp - 0xc], 1
jne 0x408392
or dword [ebp + 0x10], 0x200000
jmp 0x4083cb
mov eax, dword [0x445f24]
cmp eax, ebx
je 0x4083cb
push eax
call fcn.00402723
pop ecx
test eax, eax
je 0x4083cb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4083cb
mov eax, dword [0x445f28]
cmp eax, ebx
je 0x4083cb
push eax
call fcn.00402723
pop ecx
test eax, eax
je 0x4083cb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445f20]
call fcn.00402723
pop ecx
test eax, eax
je 0x4083eb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4083ed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42777a
Capabilities:
Decompress data using lzo

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov dl, byte [esi]
mov eax, dword [ebp + 0x10]
push edi
mov ecx, esi
cmp dl, 0x11
jbe 0x4277bb
movzx edi, dl
sub edi, 0x11
lea ecx, [esi + 1]
cmp edi, 4
jb 0x42785a
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
dec edi
jne 0x4277b0
jmp 0x42781a
Function at 0x4012b0
Capabilities:
Authenticate hmac

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
mov edi, ebx
mov esi, dword [edx]
jmp loc.0041e850

Function at 0x402738
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403d80
test esi, esi
jne 0x40276e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403e70
jmp 0x40278c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040264c
mov edi, eax
test esi, esi
je 0x40278c
cmp dword [ebx], 0
je 0x40278c
dec esi
jmp 0x402775
jmp 0x41dfb8

Function at 0x402d14
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40e008], 0x8088405
inc edx
mov dword [ebx + 0x40e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4032b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor ebx, ebx
push 0
call sub.user32.dll_GetKeyboardType
cmp eax, 7
jne 0x4032df
push 1
call sub.user32.dll_GetKeyboardType
and eax, 0xff00
cmp eax, 0xd00
je 0x4032dd
jmp loc.0041ff82
mov bl, 1
mov eax, ebx
pop ebx
ret

Function at 0x4032e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40e010]
mov bh, 5
adc al, ah
inc eax
add byte [ecx + 0x458df845], cl
cld

Function at 0x403b88
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x403be9
cmp word [0x40f208], 0xd7b2
jne 0x403bb1
cmp dword [0x40f210], 0
jbe 0x403bb1
jmp loc.00419fa8
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40e074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403c10
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e01c], 0
jne 0x403c05
push 0
push 0x40e094
push 0x40e074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403d3c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
jmp loc.004173e8

Function at 0x4047fc
Capabilities:
Get thread local storage value

Disassembly:
mov cl, byte [0x40f6f4]
jmp loc.00417578
Function at 0x404a54
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd8
mov dword [esp], edx
mov byte [esp + 4], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebp, eax
test ebp, ebp
jle 0x404b72
push 0
lea eax, [esp + 0xc]
push eax
push 0x16
lea eax, [esp + 0x1c]
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
push 0
push 0
push 0
push ebp
call sub.kernel32.dll_SetFilePointer_1
mov eax, 0x26
call fcn.004024dc
mov esi, eax
mov eax, 0x22
call fcn.004024dc
mov edi, eax
push 0
lea eax, [esp + 0xc]
push eax
push 0x26
mov ebx, esi
push ebx
push ebp
call sub.kernel32.dll_ReadFile_1
mov edx, edi
mov eax, ebx
mov ecx, 0x14
call fcn.0040260c
mov eax, dword [esi + 6]
mov dword [edi + 6], eax
mov eax, dword [esi + 0xa]
mov dword [edi + 0xa], eax
mov eax, dword [esi + 0xe]
mov dword [edi + 0xe], eax
mov word [edi + 0x12], 1
mov ebx, dword [esi + 0xe]
mov eax, ebx
call fcn.004024dc
mov dword [esp + 0xc], eax
push 0
push 0
mov eax, dword [esi + 0x12]
push eax
push ebp
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 0xc]
push eax
push ebx
mov eax, dword [esp + 0x18]
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
push ebp
call sub.kernel32.dll_CloseHandle_1
push 0
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov ebp, eax
test ebp, ebp
jle 0x404b5b
push ebx
mov eax, dword [esp + 0x10]
push eax
push 0
push 1
push 3
push ebp
call sub.kernel32.dll_UpdateResourceA
push 0
push ebp
call sub.kernel32.dll_EndUpdateResourceA
mov byte [esp + 4], 1
mov eax, dword [esp + 0xc]
call fcn.004024fc
mov eax, edi
call fcn.004024fc
mov eax, esi
call fcn.004024fc
mov al, byte [esp + 4]
add esp, 0x28
jmp loc.0041cdc0

Function at 0x404f48
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
xor ebx, ebx
mov dword [ebp - 0x1d8], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040ec
mov eax, dword [ebp - 8]
call fcn.004040ec
xor eax, eax
push ebp
push 0x40502e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d4]
call fcn.00402aa8
lea eax, [ebp - 0x1d4]
call fcn.00402838
call fcn.004025d0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d4]
call fcn.004042ec
call fcn.00403264
call fcn.004025d0
lea eax, [ebp - 0x1d8]
mov ecx, dword [ebp - 4]
mov edx, 0x405044
call fcn.00403f50
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d4]
call fcn.004042ec
call fcn.00403264
call fcn.004025d0
lea eax, [ebp - 0x1d4]
call fcn.00402c18
call fcn.004025d0
test bl, bl
je 0x405008
push 0
mov eax, dword [ebp - 4]
call fcn.004040fc
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405035
lea eax, [ebp - 0x1d8]
call fcn.00403d80
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403da4
ret
Function at 0x40538c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x405395
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x4014], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004040ec
mov eax, dword [ebp - 8]
call fcn.004040ec
xor eax, eax
push ebp
push 0x405484
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x400f]
mov edx, 0x3fff
call fcn.00404a14
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004040fc
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], 0x3fff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x400f]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004040fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 0x4014]
lea edx, [ebp - 0x400f]
mov ecx, 0x3fff
call fcn.00403eec
cmp dword [ebp - 0x4014], 0
je 0x40545e
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x400f]
mov ecx, 0x3fff
call fcn.00403eec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40548b
lea eax, [ebp - 0x4014]
call fcn.00403d80
lea eax, [ebp - 8]
mov edx, 2
jmp loc.00419008

Function at 0x405494
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405508
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00403eec
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x40551c
call fcn.00403f50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40550f
lea eax, [ebp - 0x108]
call fcn.00403d80
ret
Function at 0x40670c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x198], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040ec
xor eax, eax
push ebp
push 0x406853
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403d80
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x40681e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004040fc
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x406814
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x40680a
cmp dword [ebp - 4], 0
jne 0x4067f6
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x198]
call fcn.00403eb0
mov edx, dword [ebp - 0x198]
mov eax, 0x40686c
call fcn.00404240
dec eax
je 0x406809
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19c]
call fcn.00403eb0
mov edx, dword [ebp - 0x19c]
mov eax, 0x406878
call fcn.00404240
dec eax
je 0x406809
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00403eb0
jmp 0x406814
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00403eb0
inc ebx
cmp dword [esi + ebx*4], 0
jne 0x406787
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406828
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40685a
lea eax, [ebp - 0x19c]
mov edx, 2
call fcn.00403da4
lea eax, [ebp - 4]
call fcn.00403d80
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c59
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, dword [0x40ea14]
cmp dword [eax], 0xa
jl 0x406bed
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00403eec
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x406c70
call fcn.00403f50
jmp 0x406c15
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00403eec
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x406c84
call fcn.00403f50
jmp 0x41c528
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp int.00401219

Function at 0x414bf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x414c12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414c19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414c08
mov eax, 1
add ebx, ebx
jne 0x414c2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414c20
jne 0x414c3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414c20
xor ecx, ecx
sub eax, 3
jb 0x414c50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414cc2
mov ebp, eax
add ebx, ebx
jne 0x414c5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414c68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414c8c
inc ecx
add ebx, ebx
jne 0x414c78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414c6d
jne 0x414c89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414c6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414cac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414c9d
jmp 0x414c0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414cac
add edi, ecx
jmp 0x414c0e
pop esi
mov edi, esi
mov ecx, 0xa360
jmp 0x414cef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414cef
cmp ecx, 4
jb 0x414cf4
mov eax, dword [edi]
sub al, 5
jne 0x414cef
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jae 0x414ccc
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414d3c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414cfa
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14058]
or eax, eax
je 0x414d36
mov dword [ebx], eax
add ebx, 4
jmp 0x414d17
call dword [esi + 0x14054]
mov ebp, dword [esi + 0x1405c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x14d97]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414d88
sub esp, 0xffffff80
jmp 0x40b300