joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456f10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x456ff8
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x46e2f0], 1
jae 0x456fea
xor eax, eax
mov dword [0x46defc], eax
xor eax, eax
mov dword [0x46df04], eax
xor eax, eax
mov dword [0x46df08], eax
mov byte [0x46df0e], 2
mov byte [0x46df0f], 2
mov byte [0x46df10], 3
mov word [0x46e2b8], 0
mov word [0x46e2c8], 1
mov word [0x46e2d8], 0xa
mov dword [0x46e2e0], 0x80020004
mov dword [0x46e2ac], 0x4560fc
mov dword [0x46e2b0], 0x4560f4
mov dword [0x46e2b4], 0x4560fc
call fcn.004545c4
test al, al
je 0x456fa9
call fcn.004545f4
call fcn.004546b8
mov eax, 0x46df14
mov edx, 0x457004
call fcn.00451d56
mov eax, 0x46e0e0
mov edx, 0x457004
call fcn.00451d56
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x46def4], eax
call fcn.00452cfc
mov dword [0x46def0], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x46dee8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456fff
ret

Function at 0x45d1d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x45d232
call fcn.0045d180
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00458024
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00458024
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45d2b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x46bc64], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x45d38a
cmp dword [0x46bc60], 0
jne 0x45d38a
cmp dword [0x46be44], 0
je 0x45d344
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0045d080
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45d32a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0045d080
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45d32a
lea ebx, [ebp - 0x84]
jmp 0x45d32b
inc ebx
call fcn.0045d26c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x45d3c5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x46bc68
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00458024
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x46bc6b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x45d3c5
cmp dword [0x46bc60], 0
je 0x45d3a4
cmp dword [0x46bc60], 0xffffffff
je 0x45d3c5
push esi
call dword [0x46bc60]
pop ecx
mov eax, dword [0x46bc64]
test eax, eax
je 0x45d3c5
cmp dword [0x46bc64], 0xffffffff
je 0x45d3c5
cmp byte [eax], 0
je 0x45d3c5
push esi
push eax
call fcn.0045d1d0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45db5c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x46ebf4], 0
jne 0x45dbdd
cmp dword [0x46ec14], 0
jne 0x45db8c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x46ec14], eax
test eax, eax
jne 0x45db8c
push str.GetEnvironmentStrings_failed
call fcn.0045d3dc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x46ec14]
jmp 0x45dba0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00458024
pop ecx
mov edi, eax
test eax, eax
jne 0x45db98
lea edi, [ebp + 1]
push edi
call fcn.00457a08
pop ecx
mov ebx, eax
mov dword [0x46ebf8], ebx
test ebx, ebx
jne 0x45dbca
xor eax, eax
jmp 0x45dca0
push edi
mov edx, dword [0x46ec14]
push edx
push ebx
call fcn.00457e58
add esp, 0xc
jmp 0x45dbfd
xor esi, esi
mov ebx, dword [0x46ebf4]
jmp 0x45dbf7
push eax
call fcn.00458024
pop ecx
test eax, eax
jne 0x45dbf3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45dbe7
lea ebx, [esi + 4]
push 4
mov dword [0x46ebfc], ebx
inc ebx
push ebx
call fcn.004574e4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x45dc20
xor eax, eax
jmp 0x45dca0
cmp dword [0x46ebf4], 0
jne 0x45dc51
xor esi, esi
mov ebx, dword [0x46ebf8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x45dc42
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00458024
pop ecx
mov edi, eax
test eax, eax
jne 0x45dc38
jmp 0x45dc82
xor esi, esi
mov ebx, dword [0x46ebf4]
mov eax, dword [esp]
mov edi, eax
jmp 0x45dc7c
push eax
call fcn.00458024
pop ecx
test eax, eax
je 0x45dc71
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x45dc75
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45dc60
mov eax, dword [0x46ebf4]
test eax, eax
je 0x45dc92
push eax
call fcn.00457a18
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x46ebf4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5e2055d1
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5649742c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

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

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x5b970b97
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x31091063
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
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 0x42e06c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x42e001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x22ca1ce5
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x38b50d21
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4017f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ecx
push edx
mov ebx, eax
push 9
mov eax, dword [0x40a00c]
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, ebx
call fcn.00401840
mov byte [0x409340], 1
pop edx
pop ecx
pop ebx
lea eax, [eax]
lea edx, [edx]

Function at 0x401ff0
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0x110
mov esi, eax
mov dword [esp + 0x104], edx
mov ebp, ebx
test eax, eax
jne 0x402048
mov esi, 0x409260
mov edx, esi
xor ebx, ebx
cmp byte [esi], 0
je 0x402021
lea eax, [esi + 1]
cmp byte [esi], 0x3b
jne 0x40204f
mov esi, eax
push 0x104
lea eax, [esp + 4]
push eax
mov ecx, 0x409264
xor eax, eax
call fcn.00401d70
test eax, eax
jne 0x402059
mov al, 2
add esp, 0x110
pop ebp
pop edi
pop esi
pop ecx
ret
cmp byte [eax], 0
je 0x402009
jmp 0x40200e
inc ebx
mov esi, eax
cmp byte [eax], 0
jne 0x402017
jmp 0x402021
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x409394], eax
test eax, eax
jne 0x402078
mov al, 3
add esp, 0x110
pop ebp
pop edi
pop esi
pop ecx
ret
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 2
mov ebx, eax
mov edi, eax
mov eax, dword [0x409394]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 3
mov edx, dword [0x409394]
push edx
mov dword [0x409398], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 4
mov ecx, dword [0x409394]
push ecx
mov dword [0x409388], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 5
mov dword [0x40a430], eax
mov eax, dword [0x409394]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 6
mov edx, dword [0x409394]
push edx
mov byte [esp + 0x114], 5
mov dword [0x40a428], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x40a42c], eax
test ebx, ebx
je 0x40214f
cmp dword [0x409398], 0
je 0x40214f
cmp dword [0x409388], 0
je 0x40214f
cmp byte [ebp + 2], 0
setne al
mov edx, dword [esp + 0x104]
movzx ebx, al
mov eax, esi
lea esi, [esp + 0x108]
call edi
lea esi, [esp + 0x108]
mov edi, ebp
mov eax, dword [esp + 0x104]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x10c], 8
cmp byte [eax], 0
jne 0x40214f
cmp byte [ebp], 0x12
je 0x402166
mov byte [esp + 0x10c], 4
call fcn.00401f80
mov al, byte [esp + 0x10c]
add esp, 0x110
pop ebp
pop edi
pop esi
pop ecx
ret
mov edi, 0x40a424
mov esi, ebp
xor al, al
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
add esp, 0x110
pop ebp
pop edi
pop esi
pop ecx
ret

Function at 0x4021f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ecx
push esi
push edi
mov esi, eax
mov ebx, edx
mov edi, edx
test edx, edx
jle 0x40221a
push 0
push ebx
push esi
mov eax, dword [0x4093a0]
push eax
call sub.WSOCK32.DLL_recv
cmp eax, 0xffffffff
je 0x40221c
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x4021fe
mov eax, edi
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x402290
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ecx
push esi
sub esp, 4
mov esi, eax
mov ebx, edx
cmp dword [0x4093a0], 0xffffffff
jne 0x4022b1
mov ebx, 0xffff
mov eax, ebx
add esp, 4
pop esi
pop ecx
pop ebx
ret
push 0
push 2
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], edx
mov edx, dword [0x4093a0]
push edx
call sub.WSOCK32.DLL_send
mov edx, eax
cmp eax, 0xffffffff
je 0x4022a3
test bx, bx
jne 0x4022e9
test bx, bx
je 0x4022a8
cmp edx, 0xffffffff
je 0x4022a3
mov eax, ebx
add esp, 4
pop esi
pop ecx
pop ebx
ret
push 0
movzx eax, bx
push eax
push esi
mov ecx, dword [0x4093a0]
push ecx
call sub.WSOCK32.DLL_send
mov edx, eax
jmp 0x4022d6

Function at 0x402320
Capabilities:
Set socket configuration

Disassembly:
push ecx
push edx
sub esp, 4
push 4
lea eax, [esp + 4]
push eax
push 1
mov eax, 0x40926c
mov dword [esp + 0xc], 1
call fcn.00402300
push eax
mov edx, dword [0x4093a0]
push edx
call sub.WSOCK32.DLL_setsockopt
add esp, 4
pop edx
pop ecx
ret

Function at 0x402360
Capabilities:
Get socket status

Disassembly:
push ecx
push edx
push esi
sub esp, 0x120
mov eax, dword [0x40a844]
mov dword [esp + 4], eax
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
push ecx
push ecx
lea eax, [esp + 0xc]
mov edx, 1
push eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x12c], 0x10
add eax, edx
mov dword [esp + 0x128], 0x2710
push eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x128], ecx
call sub.WSOCK32.DLL_select
cmp eax, 0xffffffff
je 0x4023be
test eax, eax
jg 0x4023ca
xor al, al
add esp, 0x120
pop esi
pop edx
pop ecx
ret
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x108]
push eax
mov esi, dword [0x40a844]
push esi
call sub.WSOCK32.DLL_accept
mov dword [0x4093a0], eax
cmp eax, 0xffffffff
je 0x4023be
call fcn.00402320
mov al, 1
add esp, 0x120
pop esi
pop edx
pop ecx
ret
Function at 0x4024e0
Capabilities:
Get local ipv4 addresses
Get socket information
Initialize winsock library

Disassembly:
push ebx
push ecx
push esi
sub esp, 0x214
test eax, eax
je 0x4024f6
call fcn.004024c0
test eax, eax
jne 0x40250c
mov eax, esp
push eax
push 0x101
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x402516
mov eax, 0x409297
add esp, 0x214
pop esi
pop ecx
pop ebx
ret
push eax
push 1
push 2
call sub.WSOCK32.DLL_socket
mov dword [0x40a844], eax
cmp eax, 0xffffffff
jne 0x402539
mov eax, 0x4092b2
add esp, 0x214
pop esi
pop ecx
pop ebx
ret
mov ebx, 0x10
mov eax, 0x40a834
xor edx, edx
call fcn.004029b0
xor eax, eax
mov dword [0x40a838], eax
movzx eax, word [0x40a848]
push eax
mov word [0x40a834], 2
call sub.WSOCK32.DLL_htons
push 0x10
push 0x40a834
mov edx, dword [0x40a844]
push edx
mov word [0x40a836], ax
call sub.WSOCK32.DLL_bind
test eax, eax
je 0x402593
mov eax, 0x4092cf
add esp, 0x214
pop esi
pop ecx
pop ebx
ret
lea eax, [esp + 0x210]
push eax
push 0x40a834
mov ebx, dword [0x40a844]
push ebx
mov dword [esp + 0x21c], 0x10
call sub.WSOCK32.DLL_getsockname
test eax, eax
je 0x4025ca
mov eax, 0x4092ec
add esp, 0x214
pop esi
pop ecx
pop ebx
ret
movzx eax, word [0x40a848]
push eax
push 0x409306
push 0x40931b
lea eax, [esp + 0x19c]
push eax
call fcn.00402990
add esp, 0x10
lea eax, [esp + 0x190]
call fcn.00401820
push 5
mov esi, dword [0x40a844]
push esi
call sub.WSOCK32.DLL_listen
xor eax, eax
add esp, 0x214
pop esi
pop ecx
pop ebx
ret

Function at 0x402636
Capabilities:
Terminate process

Disassembly:
jmp 0x4029d0
push ebx
push ecx
push edx
push ebp
mov ebp, esp
sub esp, 8
mov eax, 1
call fcn.00402dd0
mov eax, dword [0x4093ac]
add eax, 3
and al, 0xfc
xor edx, edx
sub esp, eax
mov ecx, esp
mov ebx, dword [0x4093ac]
mov eax, ecx
call fcn.004029b0
mov eax, dword [0x4093ac]
mov dword [ecx + 0x104], eax
mov eax, ecx
mov edx, ecx
call fcn.00402e80
lea eax, [ebp - 8]
call fcn.004031d0
mov ecx, dword [0x40941c]
add ecx, 3
and cl, 0xfc
call fcn.00403290
cmp ecx, eax
jb 0x402a62
xor eax, eax
mov ecx, dword [0x40941c]
add eax, ecx
mov dword [0x409420], eax
call fcn.004032b0
push 0xa
mov eax, dword [0x4093fc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call fcn.00401160
jmp 0x4032b2
push ecx
call fcn.00403355
mov eax, dword [0x40941c]
add eax, 3
and al, 0xfc
sub esp, eax
mov eax, esp
jmp 0x402a33
mov ecx, eax
call dword [0x409450]
cmp dword [0x40a854], 0
je 0x4032ef
cmp dword [0x4093f0], 0
je 0x4032dc
mov edx, 0xff
mov eax, 0x10
call dword [0x4093f0]
call dword [0x409450]
call dword [0x409454]
mov eax, ecx
jmp fcn.00403230
mov edx, 0xff
mov eax, 0x10
call fcn.00402e20
jmp 0x4032dc
Function at 0x402b10
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push esi
push edi
sub esp, 0x104
mov edi, eax
mov ebx, edx
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov ecx, eax
test eax, eax
je 0x402b62
inc eax
test edi, edi
jne 0x402b69
cmp ebx, eax
jbe 0x402b3d
mov eax, ebx
call fcn.004034b0
mov edi, eax
test eax, eax
jne 0x402b7c
call dword [0x4093a8]
mov dword [eax + 4], 5
xor eax, eax
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret
call fcn.00403480
jmp 0x402b55
cmp eax, ebx
jbe 0x402b7c
call dword [0x4093a8]
mov dword [eax + 4], 0xe
jmp 0x402b55
mov esi, esp
inc ecx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x402f30
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x40a854], eax
mov dword [0x4093a4], edx
call fcn.004045e0
xor eax, eax
mov dword [0x40ae78], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x409435], al
shr eax, 0x10
mov word [0x409437], ax
xor eax, eax
mov ax, word [0x409437]
and edx, 0xffff
mov dword [0x409439], eax
xor eax, eax
sar edx, 8
mov al, byte [0x409435]
and edx, 0xff
mov dword [0x40943d], eax
xor eax, eax
mov al, dl
mov byte [0x409436], dl
mov dword [0x409441], eax
mov eax, dword [0x40943d]
mov edx, dword [0x409441]
shl eax, 8
or eax, edx
mov dword [0x409445], eax
cmp byte [0x409435], 4
jae 0x403057
mov eax, 0x402ec8
push eax
xor edx, edx
push 0x402ef5
mov dword [0x409431], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
test eax, eax
je 0x402fea
call edx
mov dword [0x409431], eax
push 0x104
push 0x40a858
push 0
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x40a95c
xor eax, eax
mov dword [0x409400], 0x40a858
call fcn.00404710
mov dword [0x40940c], 0x40a95c
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.004047b0
mov edx, eax
mov bl, byte [eax]
mov dword [0x40a84c], eax
cmp bl, 0x22
je 0x403061
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402881], 2
je 0x403079
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402881], 2
je 0x403080
inc eax
jmp 0x403047
mov eax, 0x402ede
jmp 0x402fc2
inc eax
cmp bl, byte [eax]
je 0x403071
cmp byte [eax], 0
je 0x403071
inc eax
cmp byte [eax], 0x22
jne 0x403066
cmp byte [eax], 0
je 0x403047
inc eax
jmp 0x403047
test dl, dl
je 0x403047
inc eax
jmp 0x40303a
mov dword [0x4093fc], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x4030f6
call fcn.004047f0
mov edx, eax
mov bx, word [eax]
mov dword [0x40a850], eax
cmp bx, 0x22
je 0x4030c9
xor eax, eax
mov ax, word [edx]
call fcn.00404817
test eax, eax
je 0x4030eb
xor eax, eax
mov ax, word [edx]
call fcn.00404817
test eax, eax
je 0x4030fb
add edx, 2
jmp 0x4030b6
lea edx, [eax + 2]
cmp bx, word [edx]
je 0x4030e0
cmp word [edx], 0
je 0x4030e0
add edx, 2
cmp word [edx], 0x22
jne 0x4030d1
cmp word [edx], 0
je 0x4030b6
add edx, 2
jmp 0x4030b6
cmp word [edx], 0
je 0x4030b6
add edx, 2
jmp 0x4030a8
mov edx, 0x402f02
mov dword [0x409408], edx
test edi, edi
jne 0x40310e
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x40ab64
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x40ac68
mov eax, esi
mov dword [0x409404], 0x40ab64
call fcn.00404710
mov dword [0x409410], 0x40ac68
mov eax, 1
pop edi
pop esi
pop ecx
ret
Function at 0x403390
Capabilities:
Get file attributes

Disassembly:
push ecx
push edx
push esi
sub esp, 0x140
mov ecx, eax
cmp word [0x409437], 0x8000
jae 0x4033af
cmp byte [0x409435], 4
jae 0x4033fe
mov dl, 0x2a
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x4033cb
cmp al, 0
je 0x4033c9
inc esi
mov al, byte [esi]
cmp al, dl
je 0x4033cb
inc esi
cmp al, 0
jne 0x4033b3
sub esi, esi
test esi, esi
jne 0x4033ef
mov dl, 0x3f
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x4033eb
cmp al, 0
je 0x4033e9
inc esi
mov al, byte [esi]
cmp al, dl
je 0x4033eb
inc esi
cmp al, 0
jne 0x4033d3
sub esi, esi
test esi, esi
je 0x403407
mov eax, 0xffffffff
add esp, 0x140
pop esi
pop edx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
jmp 0x4033f4
mov edx, esp
mov eax, ecx
call fcn.00405730
cmp eax, 0xffffffff
je 0x4033f4
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
add esp, 0x140
pop esi
pop edx
pop ecx
ret

Function at 0x405a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
push 0x40
push 0x1000
mov edx, dword [eax]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop edx
pop ecx
ret

Function at 0x406500
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub esp, 8
mov esi, eax
mov edi, edx
xor edx, edx
mov ecx, eax
inc eax
cmp byte [ecx], 0
je 0x4056c4
inc edx
jmp 0x4056b9
push 0
lea eax, [esp + 4]
push eax
push edx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push 0xfffffffffffffff4
mov word [esp + 0x18], 0xa0d
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, edi
jmp fcn.00403230
mov ebx, eax
mov ecx, edx
mov edx, ds
call fcn.00406620
test eax, eax
jne 0x405725
mov edx, ecx
mov eax, ebx
jmp 0x4056b0
mov eax, ecx
jmp fcn.00403230
push ebx
push ecx
push edx
mov ecx, eax
call fcn.00406270
lea edx, [ecx - 1]
mov ebx, eax
cmp edx, 0xb
ja case.default.0x406514
jmp dword [edx*4 + 0x4064c8]
cmp eax, 2
je 0x406ad5
cmp ebx, 1
je 0x406543
cmp ebx, 2
je 0x406543
cmp ebx, 3
je 0x406543
mov edx, 2
mov eax, ecx
call fcn.00406220
mov eax, ecx
call ebx
call fcn.00406350
test eax, eax
jne 0x406551
call fcn.004063d0
xor eax, eax
pop edx
pop ecx
pop ebx
ret
mov eax, 0x8c
call fcn.00406420
jmp 0x406551
mov eax, 0xffffffff
pop edx
pop ecx
pop ebx
ret
mov edx, 0xff
mov eax, 0x406ab1
jmp 0x405710