joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403879
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0
push 0x423514
push 0x4305c0
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x4038d8
push eax
lea eax, [ebp - 0x84]
push str.Failed_to_start_elevated_process__ShellExecute_returned__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push 0x423f30
lea eax, [ebp - 0x84]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407e15
leave
ret

Function at 0x403918
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s.bat
push eax
call fcn.0040a700
lea eax, [ebp - 0x20c]
push 0x423fb0
push eax
call fcn.0040a6a2
mov ebx, eax
push str.:Repeat_n
push ebx
call fcn.00408baa
lea eax, [ebp - 0x108]
push eax
mov esi, str.del___s__n
push esi
push ebx
call fcn.00408baa
lea eax, [ebp - 0x108]
push eax
push str.if_exist___s__goto_Repeat_n
push ebx
call fcn.00408baa
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
call fcn.00408baa
add esp, 0x40
push ebx
call fcn.004093c0
push 0x44
pop esi
push esi
lea eax, [ebp - 0x260]
push edi
push eax
call fcn.00407c60
add esp, 0x10
xor eax, eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0x42339c
push edi
push esi
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push edi
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x234], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403a5b
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x218]
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e15
leave
ret
Function at 0x403a6a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
call fcn.0041c688
push 0x5b
push eax
mov dword [ebp - 8], eax
call fcn.00407830
mov edi, eax
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
je 0x403b2b
push esi
inc edi
push 0x5d
push edi
call fcn.00407830
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x403b2a
mov byte [esi], bl
inc esi
push 0xa
push esi
call fcn.00407830
pop ecx
pop ecx
cmp eax, ebx
je 0x403abc
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push edi
push dword [section..data]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403aef
push ebx
push str.Could_not_open_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403b21
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
je 0x403b18
cmp eax, 2
je 0x403b18
push ebx
push str.Could_not_delete_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.00408499
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x403b2f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
call fcn.0041c688
push 0x5b
push eax
mov dword [ebp - 8], eax
call fcn.00407830
mov edi, eax
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
je 0x403bf0
push esi
inc edi
push 0x5d
push edi
call fcn.00407830
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x403bef
mov byte [esi], bl
inc esi
push 0x3d
push esi
call fcn.00407830
pop ecx
pop ecx
cmp eax, ebx
je 0x403bef
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push edi
push dword [section..data]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403bb4
push ebx
push str.Could_not_open_key
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403be6
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x403bdd
cmp eax, 2
je 0x403bdd
push ebx
push str.Could_not_delete_value
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.00408499
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x404305
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov ebx, eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 4], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PySys_GetObject
push edi
mov dword [ebp - 8], eax
call esi
push str.Py_OptimizeFlag
push edi
mov dword [ebp - 0x10], eax
call esi
xor esi, esi
cmp dword [0x42f68c], esi
jne 0x40435f
xor eax, eax
jmp 0x4043a9
cmp ebx, esi
je 0x4043a6
cmp dword [ebp - 4], esi
je 0x4043a6
cmp dword [ebp - 0xc], esi
je 0x4043a6
cmp dword [ebp - 8], esi
je 0x4043a6
cmp dword [ebp - 0x10], esi
je 0x4043a6
cmp eax, esi
je 0x4043a6
xor ecx, ecx
cmp dword [ebp + 8], esi
push 0x431840
setne cl
mov dword [eax], ecx
call dword [ebp - 4]
call ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004041cd
add esp, 0xc
mov esi, eax
call dword [ebp - 0xc]
mov eax, esi
jmp 0x4043a9
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x41be20
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e180]
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.0040d983
and dword [ebp - 0x14], 0
cmp dword [0x4303b0], 0
mov dword [ebp - 0x18], eax
jne 0x41bed3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41bf7b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41bf7b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4303b0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4303b4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4303b8], eax
call edi
push eax
call esi
mov dword [0x4303c0], eax
test eax, eax
je 0x41bed3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4303bc], eax
mov eax, dword [0x4303bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41bf2c
cmp dword [0x4303c0], ecx
je 0x41bf2c
push eax
call esi
push dword [0x4303c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41bf2c
test ebx, ebx
je 0x41bf2c
call edi
test eax, eax
je 0x41bf23
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41bf23
test byte [ebp - 8], 1
jne 0x41bf2c
or dword [ebp + 0x10], 0x200000
jmp 0x41bf5f
mov eax, dword [0x4303b4]
cmp eax, dword [ebp - 0x18]
je 0x41bf5f
push eax
call esi
test eax, eax
je 0x41bf5f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41bf5f
mov eax, dword [0x4303b8]
cmp eax, dword [ebp - 0x18]
je 0x41bf5f
push eax
call esi
test eax, eax
je 0x41bf5f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4303b0]
call esi
test eax, eax
je 0x41bf7b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41bf7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e15
leave
ret
Function at 0x422828
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x42284f
call fcn.0040caf5
mov dword [eax], esi
call fcn.0040cae2
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040beea
mov eax, esi
jmp 0x4228a4
test dword [ebp + 0xc], 0xfffffff9
jne 0x422835
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42287c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040cb08
pop ecx
call fcn.0040cae2
mov eax, dword [eax]
jmp 0x4228a4
test al, 0x10
jne 0x4228a2
test al, 1
je 0x4228a2
test byte [ebp + 0xc], 2
je 0x4228a2
call fcn.0040caf5
mov dword [eax], 5
call fcn.0040cae2
mov dword [eax], 0xd
jmp 0x422873
xor eax, eax
pop esi
pop ebp
ret
Function at 0x489070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x58000]
push edi
jmp 0x48908a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x489091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489080
mov eax, 1
add ebx, ebx
jne 0x4890a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4890b4
jne 0x4890d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4890d3
dec eax
add ebx, ebx
jne 0x4890c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x489098
add ebx, ebx
jne 0x4890cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x489125
xor ecx, ecx
sub eax, 3
jb 0x4890eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48915a
sar eax, 1
mov ebp, eax
jmp 0x4890f6
add ebx, ebx
jne 0x4890f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4890c4
inc ecx
add ebx, ebx
jne 0x489104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4890c4
add ebx, ebx
jne 0x489111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x489106
jne 0x489122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x489106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x489144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x489136
jmp 0x489086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x489144
add edi, ecx
jmp 0x489086
pop esi
mov edi, esi
mov ecx, 0x28ed
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x489162
cmp byte [edi], 0x1b
jne 0x489162
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x489167
lea edi, [esi + 0x86000]
mov eax, dword [edi]
or eax, eax
je 0x4891df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8b9b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8bad0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x489194
mov ecx, edi
jns 0x4891c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8bad4]
or eax, eax
je 0x4891d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4891b1
call dword [esi + 0x8bae4]
mov ebp, dword [esi + 0x8bad8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x489213
sub esp, 0xffffff80
jmp 0x44be98
Function at 0x454a24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049c8
mov edi, dword [ebp + 8]
add edi, 0xffffff00
xor eax, eax
push ebp
push 0x454b3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x22
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.004047d8
test eax, eax
jle 0x454b0c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x18]
add eax, 0xde
xor edx, edx
push edx
push eax
lea eax, [ebx + 1]
cdq
call fcn.004053dc
mov ebx, eax
mov eax, dword [ebp - 0x18]
add eax, 0xde
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [edi + ebx]
add eax, esi
cdq
call fcn.004053dc
mov esi, eax
mov al, byte [edi + ebx]
mov dl, byte [edi + esi]
mov byte [edi + ebx], dl
mov byte [edi + esi], al
xor eax, eax
mov al, byte [edi + ebx]
xor edx, edx
mov dl, byte [edi + esi]
add eax, edx
mov edx, dword [ebp - 0x18]
add edx, 0xde
mov ecx, edx
xor edx, edx
div ecx
mov al, byte [edi + edx]
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx - 1]
mov cl, byte [ebp - 0xd]
xor dl, cl
call fcn.00404700
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
call fcn.004047e0
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x454a7f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.0040456c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b44
lea eax, [ebp - 0x20]
call fcn.00404518
lea eax, [ebp - 0x14]
call fcn.00404518
lea eax, [ebp - 4]
call fcn.00404518
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor ecx, ecx
or eax, 0xffffffff
mov cl, byte [edx]
test ecx, ecx
je 0x4010a6
push esi
xor eax, ecx
mov ecx, eax
mov esi, eax
shl ecx, 0x1f
shl esi, 0x1d
sar ecx, 0x1f
sar esi, 0x1f
and ecx, 0x77073096
and esi, 0x76dc419
xor ecx, esi
mov esi, eax
shl esi, 0x19
sar esi, 0x1f
and esi, 0x76dc4190
xor ecx, esi
mov esi, eax
shl esi, 0x1a
sar esi, 0x1f
and esi, 0x3b6e20c8
xor ecx, esi
mov esi, eax
shl esi, 0x1b
sar esi, 0x1f
and esi, 0x1db71064
xor ecx, esi
mov esi, eax
shl esi, 0x1c
sar esi, 0x1f
and esi, 0xedb8832
xor ecx, esi
mov esi, eax
shr esi, 8
xor ecx, esi
mov esi, eax
shl esi, 0x18
sar esi, 0x1f
shl eax, 0x1e
and esi, 0xedb88320
sar eax, 0x1f
xor ecx, esi
and eax, 0xee0e612c
xor eax, ecx
inc edx
xor ecx, ecx
mov cl, byte [edx]
test ecx, ecx
jne 0x401014
pop esi
not eax
ret
Function at 0x401810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
call fcn.004010b0
push 0x410090
mov esi, eax
call fcn.004017f0
mov esi, dword [esi + 0xc]
add esp, 4
mov dword [esp + 0x14], eax
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x18], ebx
mov edx, dword [ebx]
cmp edx, ebx
mov dword [esp + 0x10], edx
je 0x4018be
jmp 0x401849
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x18]
test esi, esi
je 0x4018be
mov eax, dword [esi + 0x3c]
xor ebp, ebp
mov edi, dword [eax + esi + 0x78]
mov eax, dword [edi + esi + 0x20]
add edi, esi
add eax, esi
mov ecx, dword [edi + 0x1c]
add ecx, esi
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 0x24]
add ecx, esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x18]
test ecx, ecx
jbe 0x4018b4
mov ebx, eax
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
add eax, esi
push 0x410090
push ecx
push eax
call fcn.00401770
push eax
call fcn.00401000
mov ecx, dword [esp + 0x38]
add esp, 0x10
cmp eax, ecx
je 0x4018c8
mov eax, dword [edi + 0x18]
inc ebp
add ebx, 4
cmp ebp, eax
jb 0x40187c
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov edx, dword [edx]
cmp edx, ebx
mov dword [esp + 0x10], edx
jne 0x401845
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor edx, edx
pop edi
mov dx, word [eax + ebp*2]
mov eax, dword [ecx + edx*4]
add eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40b381
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4242d0
cmp edx, dword [eax]
je 0x40b3a3
add eax, 8
inc ecx
cmp eax, 0x424360
jl 0x40b394
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4242d0]
jne 0x40b4d1
mov eax, dword [0x424e68]
cmp eax, 1
je 0x40b4ab
test eax, eax
jne 0x40b3d4
cmp dword [0x423f64], 1
je 0x40b4ab
cmp edx, 0xfc
je 0x40b4d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b40b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040ba80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408340
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b44e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408340
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e830
push edi
call fcn.0040cac0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040ba80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ba90
lea eax, [ebp - 0xa0]
push 0x40e810
push eax
call fcn.0040ba90
push dword [esi + 0x4242d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ba90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ca37
add esp, 0x2c
pop edi
jmp 0x40b4d1
lea eax, [ebp + 8]
lea esi, [esi + 0x4242d4]
push 0
push eax
push dword [esi]
call fcn.00408340
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x5e65310f
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x60f32077
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x100029b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x10022040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
mov ebx, ecx
call fcn.10002930
add esp, 0x10
test eax, eax
jne 0x100029f1
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.100194e0
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jns 0x10002a14
call edi
cmp dword [eax], 9
jne 0x10002a14
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.100194e0
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x13]
push 2
push 1
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x10002a37
call edi
cmp dword [eax], 4
lea eax, [esp + 0x13]
je 0x10002a18
test esi, esi
mov ecx, dword [esp + 0x14]
setg al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100194e0
mov esp, ebp
pop ebp
ret
Function at 0x10002dd0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x10022040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x40c], eax
push edi
mov edi, edx
movzx eax, word [esi]
cmp eax, 2
je 0x10002e03
cmp eax, 0x17
jne 0x10002e82
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
movzx eax, ax
push 0x401
mov dword [ebx], eax
lea eax, [ebp - 0x408]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x10002e82
lea edx, [ebp - 0x408]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10002e53
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x408]
sub edx, esi
push edx
push eax
call fcn.1000b140
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100194e0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100194e0
mov esp, ebp
pop ebp
ret

Function at 0x10003e10
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x10022040]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x1c]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx + 0x20]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea ebx, [eax + 1]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x10003e89
call edi
cmp dword [eax], 4
je 0x10003e65
test esi, esi
jle 0x10003eb2
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
call fcn.100029b0
test al, al
je 0x10003eb2
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.100194e0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100194e0
mov esp, ebp
pop ebp
ret