joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a053c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00493da0
xor ebx, ebx
cmp dword [0x4d7c20], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4a0612
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a06f2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4a06f2
push eax
call fcn.00493d32
mov dword [esp], 0x4b0d44
push edi
mov dword [0x4d7c20], eax
call esi
push eax
call fcn.00493d32
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d7c24], eax
call esi
push eax
call fcn.00493d32
mov dword [0x4d7c28], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048f0db
test eax, eax
pop ecx
pop ecx
je 0x4a05e0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048a50e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4a0612
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00493d32
cmp eax, ebx
pop ecx
mov dword [0x4d7c30], eax
je 0x4a0612
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00493d32
pop ecx
mov dword [0x4d7c2c], eax
mov eax, dword [0x4d7c2c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4a0697
cmp dword [0x4d7c30], ecx
je 0x4a0697
push eax
call fcn.00493da9
push dword [0x4d7c30]
mov esi, eax
call fcn.00493da9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4a0697
cmp edi, ebx
je 0x4a0697
call esi
cmp eax, ebx
je 0x4a0664
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a0664
test byte [ebp - 0x18], 1
jne 0x4a0697
lea eax, [ebp - 0x10]
push eax
call fcn.0048f112
test eax, eax
pop ecx
je 0x4a067f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048a50e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4a068e
or dword [ebp + 0x10], 0x200000
jmp 0x4a06d2
or dword [ebp + 0x10], 0x40000
jmp 0x4a06d2
mov eax, dword [0x4d7c24]
cmp eax, dword [ebp - 8]
je 0x4a06d2
push eax
call fcn.00493da9
cmp eax, ebx
pop ecx
je 0x4a06d2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4a06d2
mov eax, dword [0x4d7c28]
cmp eax, dword [ebp - 8]
je 0x4a06d2
push eax
call fcn.00493da9
cmp eax, ebx
pop ecx
je 0x4a06d2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d7c20]
call fcn.00493da9
cmp eax, ebx
pop ecx
je 0x4a06f2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a06f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407d80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x407da3
mov eax, 1
jmp 0x407eae
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x407db9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x407dc3
mov eax, 2
jmp 0x407eae
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x407dee
mov eax, 1
jmp 0x407eae
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x407e14
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x407e14
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x407e1e
mov eax, 2
jmp 0x407eae
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.0041a3a0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x407e5f
mov eax, 3
jmp 0x407eae
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x407eac
mov eax, 1
jmp 0x407eae
xor eax, eax
pop ebp
ret

Function at 0x408850
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x408866
xor eax, eax
jmp 0x4088a6
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x40888b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x40888f
xor eax, eax
jmp 0x4088a6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.004088b0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x41b2a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41b2d0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x41b2e3
xor eax, eax
jmp 0x41b3a1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x41b2fe
xor eax, eax
jmp 0x41b3a1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x41b31c
xor eax, eax
jmp 0x41b3a1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x41b35e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x41b39f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.0041a3c0
add esp, 8
test eax, eax
jne 0x41b39d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x41b3a1
jmp 0x41b355
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x438477
Capabilities:
Hash data with md5

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

Function at 0x439243
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea edi, [ecx + 4]
mov dword [ebp - 0xc], ecx
mov dword [ecx], 0x44e190
xor edx, edx
xor eax, eax
mov ecx, edi
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x43925e
mov byte [edi + 0x100], dl
mov byte [edi + 0x101], dl
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 8], 0x100
mov al, byte [ecx]
movzx esi, dl
mov edx, dword [ebp + 8]
mov byte [ebp - 1], al
movzx eax, al
movzx edx, byte [esi + edx]
add ebx, edx
add eax, ebx
mov ebx, 0x100
cdq
idiv ebx
movzx ebx, dl
mov al, byte [ebx + edi]
mov byte [ecx], al
mov al, byte [ebp - 1]
mov byte [ebx + edi], al
lea eax, [esi + 1]
cdq
idiv dword [ebp + 0xc]
inc ecx
dec dword [ebp - 8]
jne 0x43927f
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4392e5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
mov al, byte [ecx + 0x104]
mov dl, byte [ecx + 0x105]
jbe 0x439389
push ebx
push esi
push edi
movzx edi, al
movzx ebx, dl
jmp 0x439313
mov ebx, dword [ebp - 0xc]
lea eax, [edi + 1]
mov esi, 0x100
cdq
idiv esi
movzx edi, dl
mov al, byte [edi + ecx + 4]
mov byte [ebp - 2], dl
lea esi, [edi + ecx + 4]
mov byte [ebp - 1], al
movzx eax, al
add eax, ebx
mov ebx, 0x100
cdq
idiv ebx
mov ebx, dword [ebp - 8]
movzx eax, dl
mov dword [ebp - 0xc], eax
mov byte [ebp - 3], dl
mov dl, byte [eax + ecx + 4]
lea eax, [eax + ecx + 4]
mov byte [esi], dl
mov dl, byte [ebp - 1]
mov byte [eax], dl
mov eax, dword [ebp + 8]
add ebx, eax
movzx eax, byte [esi]
movzx edx, dl
add eax, edx
mov esi, 0x100
cdq
idiv esi
movzx eax, dl
mov al, byte [eax + ecx + 4]
xor byte [ebx], al
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jb 0x439310
mov al, byte [ebp - 2]
mov dl, byte [ebp - 3]
pop edi
pop esi
pop ebx
push 1
mov byte [ecx + 0x104], al
mov byte [ecx + 0x105], dl
pop eax
leave
ret 8
Function at 0x43a01f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x44c9d3
call fcn.0044bd20
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0043b194
xor edi, edi
mov dword [esi + 0x1c], 0xa
mov dword [ebp - 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi], 0x44e1a0
mov dword [esi + 0x30], ebx
call fcn.00442177
push edi
mov dword [esi + 4], eax
push dword [ebp + 0xc]
push ebx
push eax
call fcn.0044219e
push 8
call sub.MFC42.DLL_operatornew
mov dword [esi + 0x24], eax
mov ecx, dword [0x45441c]
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov dword [eax + 4], esi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x404100
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18c8
call fcn.00411920
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x482688]
push ebx
push esi
mov dword [ebp - 8], ecx
mov ecx, dword [0x48268c]
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], ecx
call fcn.004040f0
mov ebx, dword [ebp - 0xc]
mov edx, dword [0x482690]
mov eax, dword [str.IqeCH]
mov edi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
add ebx, 0x23f
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0x20
jmp 0x404170
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x489e24]
shl esi, 4
add esi, dword [ebp - 0x20]
cmp eax, 0xfa9
jne 0x40419c
mov dword [0x489e20], 0xedeb2e40
jmp 0x4041b7
cmp eax, 0x3eb
jne 0x4041b7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4898b0], 0
mov ecx, dword [ebp - 8]
add ecx, ebx
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x24]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x489e24], 0x9e6
mov dword [0x489e1c], 0xf4ea3dee
jne 0x4041ef
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x489e24], 0x213
jne 0x40428b
push 0
lea eax, [ebp - 0xcc8]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
lea ecx, [ebp - 0x4c8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x10c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call edi
push 0
push 0
lea ecx, [ebp - 0x18c8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call edi
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp - 4]
cmp dword [0x489e24], 0xc
mov dword [ebp - 0x10], esi
jne 0x4042a5
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, esi
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x18]
lea ecx, [ebx + esi]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
add ebx, 0x61c88647
sub dword [ebp - 0x14], 1
jne 0x404170
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404300
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00411920
mov eax, dword [0x489e24]
mov ecx, dword [0x4898b4]
shr eax, 3
test eax, eax
jbe 0x40441e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x489e24], 0x959
jne 0x404404
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404100
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404340
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a8cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x481470]
jne 0x40a8d9
repz ret
jmp fcn.00410773

Function at 0x40be1c
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.004076e2
and dword [ebp - 4], 0
cmp dword [0x48789c], 0
mov ebx, eax
jne 0x40becd
push 0x4034d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bf7e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4034c8
push edi
call esi
test eax, eax
je 0x40bf7e
push eax
call fcn.00407670
mov dword [esp], 0x4034b8
push edi
mov dword [0x48789c], eax
call esi
push eax
call fcn.00407670
mov dword [esp], 0x4034a4
push edi
mov dword [0x4878a0], eax
call esi
push eax
call fcn.00407670
mov dword [esp], 0x403488
push edi
mov dword [0x4878a4], eax
call esi
push eax
call fcn.00407670
pop ecx
mov dword [0x4878ac], eax
test eax, eax
je 0x40becd
push 0x403470
push edi
call esi
push eax
call fcn.00407670
pop ecx
mov dword [0x4878a8], eax
mov eax, dword [0x4878a8]
cmp eax, ebx
je 0x40bf25
cmp dword [0x4878ac], ebx
je 0x40bf25
push eax
call fcn.004076eb
push dword [0x4878ac]
mov esi, eax
call fcn.004076eb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bf25
test edi, edi
je 0x40bf25
call esi
test eax, eax
je 0x40bf1c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bf1c
test byte [ebp - 0xc], 1
jne 0x40bf25
or dword [ebp + 0x10], 0x200000
jmp 0x40bf5e
mov eax, dword [0x4878a0]
cmp eax, ebx
je 0x40bf5e
push eax
call fcn.004076eb
pop ecx
test eax, eax
je 0x40bf5e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bf5e
mov eax, dword [0x4878a4]
cmp eax, ebx
je 0x40bf5e
push eax
call fcn.004076eb
pop ecx
test eax, eax
je 0x40bf5e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48789c]
call fcn.004076eb
pop ecx
test eax, eax
je 0x40bf7e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bf80
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013b4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013c6
mov eax, dword [0x48208b]
shl eax, 2
mov dword [0x48208f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00474c70
pop edx
call fcn.00474bd4
call fcn.00474cb0
push 0
call fcn.00476224
pop ecx
push 0x482034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x482093], eax
push 0
jmp fcn.0047ca84

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x417198
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4171b0
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.00418954
mov eax, dword [ebp - 4]
call fcn.004181e4
xor edx, edx
push ebp
push 0x41717b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x41711a
test si, si
jne 0x4170cc
mov eax, dword [ebp - 8]
call fcn.0042f37c
mov esi, eax
cmp esi, 0xffff
jbe 0x4170cc
call fcn.00440858
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_send
test eax, eax
je 0x41711a
cmp eax, 0xffffffff
jle 0x4170fb
sub ebx, eax
jmp 0x41710a
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.00418888
test ebx, ebx
je 0x41711a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x4170cf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x417165
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x4171c8
mov dl, 1
mov eax, dword [0x416730]
call fcn.00432378
call fcn.004410ac
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x417165
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417182
mov eax, dword [ebp - 4]
call fcn.0041823c
ret
Function at 0x4176c8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004418ec
xor eax, eax
push ebp
push 0x417890
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4178a8
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.00418954
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x420fb8]
call fcn.00425798
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x417820
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x4177db
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
push 0
push ebx
mov eax, dword [ebp - 0x10]
sub eax, ebx
cmp eax, 0x10000
jbe 0x41775f
call fcn.00440858
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x30]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_send
test eax, eax
je 0x4177db
cmp eax, 0xffffffff
jle 0x4177ac
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x1008c], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ca], 0
je 0x4177bb
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100cc]
call dword [esi + 0x100c8]
jmp 0x4177bb
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.00418888
mov eax, dword [0x49f840]
mov eax, dword [eax]
call fcn.00461c8c
test ebx, ebx
je 0x4177db
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x41774b
mov eax, dword [ebp - 0xc]
call fcn.00425288
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.004252bc
cmp edx, dword [esp + 4]
jne 0x4177f6
cmp eax, dword [esp]
pop edx
pop eax
je 0x41780a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x417722
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417827
mov eax, dword [ebp - 0xc]
call fcn.00440918
ret
Function at 0x4178d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x417a7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x417a94
mov dl, 8
mov eax, ebx
call fcn.00418954
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004252a8
cmp byte [ebx + 0x10090], 0
jne 0x417a2a
xor eax, eax
mov dword [ebx + 0x1008c], eax
mov eax, dword [ebp - 4]
call fcn.004252bc
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x417935
call fcn.00440858
mov dword [ebx + 0x100b8], eax
mov eax, dword [ebp - 4]
call fcn.004252bc
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.00425288
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x417964
call fcn.00440858
cmp eax, 0x10000
jle 0x417970
mov eax, 0x10000
lea edx, [ebx + 0x30]
mov ecx, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push 0
push esi
mov eax, dword [ebp - 8]
sub eax, esi
cmp eax, 0x10000
jbe 0x417997
call fcn.00440858
lea eax, [ebx + eax + 0x30]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.WSOCK32.DLL_send
test eax, eax
je 0x417a68
test eax, eax
jle 0x4179d7
sub esi, eax
add dword [ebx + 0x1008c], eax
cmp word [ebx + 0x100ca], 0
je 0x4179e5
mov edx, ebx
mov eax, dword [ebx + 0x100cc]
call dword [ebx + 0x100c8]
jmp 0x4179e5
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.00418888
mov eax, dword [0x49f840]
mov eax, dword [eax]
call fcn.00461c8c
test esi, esi
je 0x4179fe
cmp byte [ebx + 0x10090], 0
je 0x417983
mov eax, dword [ebp - 4]
call fcn.004252bc
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.00425288
cmp edx, dword [esp + 4]
jne 0x417a19
cmp eax, dword [esp]
pop edx
pop eax
je 0x417a2a
cmp byte [ebx + 0x10090], 0
je 0x41793b
cmp byte [ebx + 0x10090], 0
je 0x417a68
mov byte [ebx + 0x10090], 0
mov ecx, 0x417aa8
mov dl, 1
mov eax, dword [0x416730]
call fcn.00432378
call fcn.004410ac
cmp word [ebx + 0x1028a], 0
je 0x417a68
mov edx, ebx
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417a85
lea eax, [ebp - 0xc]
call fcn.0044144c
ret