joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4900b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49009a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x496a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c366e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00497360
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4fbc14
call fcn.004b50ab
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x496ad3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b50ab
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x496acc
push 0
mov ecx, eax
call fcn.0048dbd0
mov dword [esi + 0xc], eax
jmp 0x496ad5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x496ad5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4b7738
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b7770
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b57c5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b579d
jmp 0x4b777c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b8e2a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b8e6c
call fcn.004be8e2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b8e6c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b8e63
xor eax, eax
jmp 0x4b8e74
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b8e7a
pop edi
pop esi
pop ebx
ret 4
Function at 0x4bee12
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4bee40
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bee5e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bed78
jmp 0x4bee5e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bee5e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bed78
test edi, edi
mov eax, edi
jne 0x4bee48
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x9ff058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9ff1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9ff07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ff06a
add dl, dl
jne 0x9ff089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ff0dc
xor eax, eax
add dl, dl
jne 0x9ff096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ff17d
add dl, dl
jne 0x9ff0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ff0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ff0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ff0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9ff0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9ff075
mov eax, 1
add dl, dl
jne 0x9ff0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ff0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ff0e1
sub eax, ebx
mov ebx, 1
jne 0x9ff128
mov ecx, 1
add dl, dl
jne 0x9ff10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ff119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ff105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ff075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9ff13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ff14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ff136
cmp eax, 0x7d00
jae 0x9ff16d
cmp eax, 0x500
jb 0x9ff168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ff075
cmp eax, 0x7f
ja 0x9ff170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ff075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9ff19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9ff075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test byte [0x10006018], 8
jne 0x10001660
mov eax, dword [ebx + 0xc]
xor esi, esi
test eax, eax
je 0x10001691
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret 4
mov dword [esp + 0x10], ebx
xor esi, esi
mov dword [esp + 0xc], str.iface__p._n
mov dword [esp + 8], str.resourcedataloader_Load
mov dword [esp + 4], 0x10006018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x1000164d
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x100016de
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 8]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebx + 0x10], eax
sub esp, 8
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret 4
mov esi, 0x80004005
test byte [0x10006018], 2
je 0x1000164d
mov dword [esp + 0xc], str.Failed_to_load_resource._n
mov dword [esp + 8], str.resourcedataloader_Load
mov dword [esp + 4], 0x10006018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x1000164d
Function at 0x10001720
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov edi, dword [ebp + 8]
test byte [0x10006018], 8
jne 0x10001810
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov eax, dword [edi + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x10001859
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, eax
test eax, eax
je 0x1000188c
lea eax, [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [ebp - 0x18], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub esp, 4
test ecx, ecx
je 0x10001840
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x10], esi
xor eax, eax
mov dword [edi + 0xc], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.iface__p._n
mov dword [esp + 8], str.filedataloader_Load
mov dword [esp + 4], 0x10006018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001739
test byte [0x10006018], 2
jne 0x10001860
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x80004005
jmp 0x10001805
mov eax, 0x887c0002
jmp 0x10001805
mov dword [esp + 0xc], str.Failed_to_read_file_contents._n
mov dword [esp + 8], str.filedataloader_Load
mov dword [esp + 4], 0x10006018
mov dword [esp], 1
mov dword [ebp - 0x14], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x14]
jmp 0x10001849
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push eax
mov eax, 0x8007000e
jmp 0x10001805
Function at 0x10004e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10004e58
cmp byte [esi + ebx - 1], 0xa
je 0x10004e2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000c084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10005480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10005658
mov edi, dword [0x1000c084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10005567
test byte [0x10006074], 8
jne 0x10005600
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10006084], 8
jne 0x100055c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10005509
cmp esi, 3
jbe 0x10005578
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1000551a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1000a078]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10005509
mov dword [esp], 0x10006084
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100054e0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x100054e0
mov dword [esp], 0x10006074
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100054cb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x100054d3
mov eax, 0xffffffff
jmp 0x10005567
Function at 0x1001b900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1001b90f
pop dword [ebp - 0x18]
mov eax, 0xb7539292
sub eax, 0xa751d983
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xfa51712c
add dword [ebp - 0x28], 0x5400d41f
mov dword [ebp - 0x24], 0x9893a142
add dword [ebp - 0x24], 0x999fab03
mov dword [ebp - 0x20], 0xa64c5cee
sub dword [ebp - 0x20], 0x5a0018c0
mov dword [ebp - 0x1c], 0xd629e1d3
add dword [ebp - 0x1c], 0x29d61e2d
lea eax, [ebp - 0x28]
push eax
mov eax, 0xcc0c30a5
add eax, 0x43f84023
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x10354812
sub dword [ebp - 0x28], 0x9bc2debc
mov dword [ebp - 0x24], 0xe5f56e3f
sub dword [ebp - 0x24], 0xa4890cca
mov dword [ebp - 0x20], 0xfe3f7cb7
sub dword [ebp - 0x20], 0x9ad0104b
mov dword [ebp - 0x1c], 0x59f1ad73
add dword [ebp - 0x1c], 0xa60e528d
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x47462
push 0
call eax
mov ecx, 0x5deb356b
sub ecx, 0x5dead9be
xor esi, esi
add esi, eax
mov edx, 0x10063000
add edx, dword [ebp - 0x18]
mov ebx, 0x5001f308
sub dword [ebp - 8], esi
mov edi, dword [edx]
mov dword [ebp - 0xc], 0xd5dced13
add edi, ebx
xor dword [ebp - 0xc], 0x126c0216
mov dword [esi], edi
sub dword [ebp - 0x14], edi
add esi, 0x1306c771
sub esi, 0x1306c76d
add edx, 4
loop 0x1001ba22
add eax, 0xe077d4af
sub eax, 0xe0767328
xor ebx, ebx
add ebx, eax
add eax, 0x7777eb63
add eax, 0x888814a2
mov ecx, 0x7c389f5d
sub ecx, 0x6c389f5d
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x1001ea7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [0x1003014]
xor ebx, ebx
push 0x80000002
xor edi, edi
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
cmp esi, ebx
jne 0x1001f18
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], 0x12b
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
inc edi
cmp esi, ebx
je 0x1001f39
cmp esi, 0x6f
je 0x1001ed8
cmp esi, 0xea
je 0x1001ed8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x103
je 0x1001fd5
push esi
push 0x2728
push 2
call fcn.01001327
add esp, 0xc
jmp 0x1001fe8
cmp dword [ebp - 0x20], 1
jne 0x1001ed8
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ebp + eax - 0x14c], bl
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0100142e
test al, al
je 0x1001ed8
cmp dword [ebp + 8], ebx
mov esi, dword [ebp - 0x14]
mov al, 1
je 0x1001f87
cmp dword [ebp + 0xc], 0xffffffff
je 0x1001f87
cmp dword [ebp + 0xc], esi
je 0x1001f87
xor al, al
cmp dword [ebp + 0x10], ebx
je 0x1001f9c
cmp dword [ebp + 0x14], 0xffffffff
je 0x1001f9c
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x10]
je 0x1001f9c
xor al, al
cmp al, bl
je 0x1001ed8
cmp byte [ebp - 2], bl
jne 0x1001fbb
push 0x2727
push 1
call fcn.01001268
pop ecx
pop ecx
mov byte [ebp - 2], 1
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push esi
call fcn.01001844
mov byte [ebp - 1], 1
jmp 0x1001ed8
cmp byte [ebp - 1], bl
jne 0x1001fe8
push 0x2729
push 1
call fcn.01001268
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10027e8
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x1002811
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100280e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x1002811
or eax, 0xffffffff
ret 4

Function at 0x1006a27
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
imul eax, edx, 0x10dcd
add eax, 0x116c5
xor edx, edx
div ebx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
loop 0x1006a3c
popal
leave
ret 0xc
Function at 0x300093c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x30009436
mov eax, dword [ebp + 8]
test eax, 3
je 0x300093f8
cmp word [eax], 0
je 0x300093f1
lea eax, [eax + 2]
test eax, 3
je 0x300093f8
jmp 0x300093df
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x30009433
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x300093f8
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x30009433
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x30009433
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x300093f8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x3000c7fd
Capabilities:
Encode data using xor

Disassembly:
inc esp
push cs
jp 0x3000c80f
jge 0x3000c813
sbb byte [edi + 0x44828281], bh
insb byte es:[edi], dx
test dword [esi + 0x28], esi
push cs
dec ebx
mov dh, 0x43
push es
xchg byte fs:[esi + 0x27], dh
xchg byte [esi + 0x27], dh
daa
inc edx
mov ecx, 0x6b38346
dec esp
xor byte [ebp + 0x31], 0x7a
push esp
scasb al, byte es:[edi]
jl 0x3000c833
jp 0x3000c835
jge 0x3000c837
push esp
push es
dec esp
xor byte [ebp + 0x31], 0xe
dec ebp
rol byte [esp + ebp*2 - 0x7b], cl
insb byte es:[edi], dx
test dword [esi + 0x28], esi
jbe 0x3000c85f
push cs
dec ebp
adc byte [eax], bl
mov edi, 0x6828281
xchg byte fs:[esi + 0x27], dh
inc edx
test eax, 0x6b38346
dec esp
xor byte [ebp + 0x31], 0x7a
push esp
scasb al, byte es:[edi]
jl 0x3000c861
jp 0x3000c863
jge 0x3000c865
push esp
push es
dec esp
xor byte [ebp + 0x31], 0xe
dec ebp
rol byte [esp + ebp*2 - 0x7b], cl
insb byte es:[edi], dx
test dword [esi + 0x28], esi
jbe 0x3000c88d
and al, 0x95
inc esi
xor dword [ebx + 0x64064d0e], 0xffffff86
sal dword [esi + 0x27], cl
in eax, dx
mov eax, dword [edx - 0x7cb3ae68]
mov bl, 0xd3
sbb byte [eax - 0x4c7cb3b7], 0x10
adc bl, ch
add byte [edx + 0x1810d682], 0xab
jl 0x3000c80f
adc ah, 0xd5
push cs
jae 0x3000c815
cwde
sub eax, 0xeb3834c
jnp 0x3000c8bf
xchg ecx, eax
inc esi
xor dword [ebx - 0x252c292a], 0xffffff82
cwde
inc ecx
dec esp
xor dword [ebx + 0x4695980e], 0xffffff83
mov bl, 0x10
sar byte [ebx - 0x2a], 1
aam 0xd5
fstpnce st(2), st(0)
sbb byte [eax - 0x4c7cb3bb], 0xda
sbb byte [eax - 0x4c7cb3cb], 0x10
cwde
xor eax, 0x10b3834c
or bl, ch
add byte [edx - 0x6c7b147e], 0x83
adc dword [eax], 0x10
mov edi, 0xd3828281
aam 0x82
cwde
sub eax, 0xeb3834c
jnp 0x3000c8e6
add byte [edx - 0x6ff14209], 0x95
xchg ebp, eax
inc esi
xor dword [ebx + 0x4ebe43b6], 1
pushfd
or eax, 0x83469998
mov bl, 0xd
invalid
Function at 0x49b4b7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
call main
jmp 0x49b4c1
push 0x14
push 0x4f8748
call fcn.0049bc90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x49b4ef
xor ebx, ebx
jmp 0x49b522
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x49b4eb
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x49b4eb
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x49b522
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004a2216
test eax, eax
jne 0x49b536
push 0x1c
call main
pop ecx
call fcn.0049d03c
test eax, eax
jne 0x49b547
push 0x10
call main
pop ecx
call fcn.004a1725
and dword [ebp - 4], 0
call fcn.004a1f62
test eax, eax
jns 0x49b561
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x507a08], eax
call main
mov dword [0x50668c], eax
call main
test eax, eax
jns 0x49b587
push 8
call main
pop ecx
call fcn.004ace25
test eax, eax
jns 0x49b598
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x49b5ab
push eax
call main
pop ecx
call fcn.004ad07c
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x49b5cd
push esi
call main
call fcn.0049470a
jmp 0x49b602
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.0049bcd5
ret

Function at 0x4aaf28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x4aaf37
pop dword [ebp - 0x28]
mov eax, 0x4aaf37
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x8e072f0d
add dword [ebp - 0x38], 0xc04b163e
mov dword [ebp - 0x34], 0x7d399e52
add dword [ebp - 0x34], 0xb4f9adf3
mov dword [ebp - 0x30], 0xae4b6dc1
sub dword [ebp - 0x30], 0x61ff2993
mov dword [ebp - 0x2c], 0x1af9eaac
sub dword [ebp - 0x2c], 0x1af9eaac
lea eax, [ebp - 0x38]
push eax
mov eax, 0x5548f3d0
sub eax, 0x54fcf138
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xa4d5bab0
add dword [ebp - 0x38], 0xcf9caea6
mov dword [ebp - 0x34], 0x61eb3d02
add dword [ebp - 0x34], 0xdf812473
mov dword [ebp - 0x30], 0xbae0e642
sub dword [ebp - 0x30], 0x577179d6
mov dword [ebp - 0x2c], 0x50dfcdb0
add dword [ebp - 0x2c], 0xaf203250
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xdea65edf
sub eax, 0xde5a5c1b
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x71bc7
push 0
call eax
mov ecx, 0x9de17543
sub ecx, 0x9de12d01
xor ebx, ebx
add ebx, eax
mov edi, 0x97a95336
sub edi, 0x9755df36
add edi, dword [ebp - 0x28]
mov edx, 0x66fc6ac
xor dword [ebp - 8], 0xd3911551
mov esi, dword [edi]
xor dword [ebp - 0x20], 0xd17f0444
xor esi, edx
sub dword [ebp - 0x18], ebx
mov dword [ebx], esi
xor dword [ebp - 0x18], 0x63e85d78
add ebx, 4
add edi, 0x1516587c
add edi, 0xeae9a788
loop 0x4ab050
add eax, 0x483b182
add eax, 0xfb7d6259
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3a3bf62b
add ecx, 0xc60409d5
add ecx, dword [ebp - 0x28]
call ebx
leave
ret