joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
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 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
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 0x419e3c
mov ecx, edi
jns 0x419e6b
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 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
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 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x10001d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 1
jne 0x10001da4
push 0
call fcn.1001d4ed
push eax
push 0x1004afdc
lea eax, [ebp + 0xc]
push str.CONIN_
push eax
call fcn.1001d8cc
push 1
call fcn.1001d4ed
push eax
push 0x1004afe8
lea eax, [ebp - 4]
push str.CONOUT_
push eax
call fcn.1001d8cc
push 2
call fcn.1001d4ed
push eax
push 0x1004afe8
lea eax, [ebp - 8]
push str.CONOUT_
push eax
call fcn.1001d8cc
add esp, 0x3c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x10001870
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004050
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c595
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10050198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 4
xor eax, eax
mov dword [ebp - 0x18], 0
push str._faq
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10001f20
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp + 8]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10001f20
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push str.xgame
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
test ebx, ebx
je 0x10004187
push esi
push 0x50
push str.mrmedic.herokuapp.com
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
test edi, edi
je 0x10004187
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push esi
cmovae ecx, dword [ebp + 8]
push esi
push esi
push esi
push ecx
push 0x1004b0f8
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x10004187
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0x20000013
push esi
mov dword [ebp - 0x30], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push dword [ebp - 0x2c]
call fcn.100046e0
cmp dword [ebp - 0x2c], 0xc8
jmp 0x100041c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.100031c0
add esp, 8
test esi, esi
jmp 0x100041b0
test edi, edi
je 0x100041b7
push edi
call esi
test ebx, ebx
je 0x100041be
push ebx
call esi
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100041f6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100041ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000424a
push edx
push ecx
call fcn.10019313
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x1000422c
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004222
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000424a
push edx
push ecx
call fcn.10019313
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018f23
mov esp, ebp
pop ebp
ret
call fcn.1001d773
int3
Function at 0x100044a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c63d
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x10050198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x448], esi
lea eax, [ebp - 0x444]
mov dword [ebp - 0x450], esi
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
push 0x80000002
mov dword [ebp - 0x44c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x440]
push 3
push 0x1004af3c
mov dword [ebp - 0x44c], 1
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
call fcn.10001f20
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x428]
push 0xb
xor eax, eax
mov dword [ebp - 0x418], 0
push str.MachineGuid
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
call fcn.10001f20
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x444]
cmp esi, eax
je 0x100045b2
cmp dword [ebp - 0x42c], 8
mov ecx, esi
push dword [ebp - 0x430]
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.10001f20
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x448], 0x400
push ecx
push 0
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004615
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100045f7
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001f20
mov edx, dword [ebp - 0x414]
cmp edx, 8
jb 0x10004655
mov ecx, dword [ebp - 0x428]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000464b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100046d7
push edx
push ecx
call fcn.10019313
add esp, 8
mov edx, dword [ebp - 0x42c]
xor eax, eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
cmp edx, 8
jb 0x100046ae
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100046a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100046d7
push edx
push ecx
call fcn.10019313
add esp, 8
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018f23
mov esp, ebp
pop ebp
ret
call fcn.1001d773
int3
Function at 0x1000a7e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10050198]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000a89a
cmp byte [esi + 0x3d], 0
je 0x1000a89a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000a888
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000a850
sub eax, 1
je 0x1000a854
sub eax, 2
jne 0x1000a888
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018f23
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000a871
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10023363
add esp, 0x10
cmp edi, eax
jne 0x1000a888
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018f23
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018f23
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10018f23
mov esp, ebp
pop ebp
ret

Function at 0x1000b800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cda0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10050198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10019321
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100175a2
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000db90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1005251c], 0
push edi
mov edi, ecx
je 0x1000dc2a
push esi
call fcn.10002660
mov esi, eax
test esi, esi
je 0x1000dc22
mov ecx, dword [0x10052548]
push 5
call fcn.10013150
test al, al
je 0x1000dbca
mov ecx, dword [edi + 8]
push esi
call fcn.1000f020
mov ecx, dword [0x10052548]
push 8
call fcn.10013150
test al, al
je 0x1000dbe1
xor eax, eax
xor cl, cl
jmp 0x1000dbe8
mov eax, 1
mov cl, al
mov byte [0x87c2f4], cl
mov dword [0x86195c], eax
cmp byte [0x10052511], 0
je 0x1000dc22
lea eax, [ebp - 4]
push eax
push 0x40
push 0xd
push 0x4afea4
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x4afea4], 0x90909090
mov word [0x4afea8], 0x9090
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10017ef3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10050198]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x10017f18
xor eax, eax
jmp 0x10017f74
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x10017f45
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x10017f45
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x10017ffb
cmp dword [edi + 0x4c], 0
je 0x10017f6e
mov ecx, edi
call fcn.10017be7
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x10017f84
push dword [edi + 0x4c]
push ebx
call fcn.100177e3
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x10017f73
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10018f23
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x1003e1a4]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x10017fce
sub eax, 1
je 0x10017fce
dec eax
sub eax, 1
jne 0x10017f6e
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x10017f60
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x10017feb
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.10023363
add esp, 0x10
cmp esi, eax
jne 0x10017f6e
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x10017f6e
mov ax, bx
jmp 0x10017f73

Function at 0x1002da7e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002d72f

Function at 0x1002da89
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002d8b9

Function at 0x100336f2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003336f

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40de38
nop
nop
mov ecx, 0x295e136e
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x18451249
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401240
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x840ed8]
mov ecx, dword [0x83fe28]
shr eax, 3
sub esp, 8
test eax, eax
jbe 0x4012bb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x840ed8], 0x959
jne 0x4012a5
push 0
push 0
call esi
push 0
push 0
push str.zunalicohejonasuwizozuluhudo
push str.kutanapilobidoleminovagowopoheve
push 0
call edi
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 4]
push eax
call fcn.00401050
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x401273
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401630
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x82c
cmp dword [0x840ed8], 0x400
push ebx
push esi
push edi
jne 0x401693
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
mov eax, dword [esp + 0x10]
push eax
push ecx
push str.savuficukupa
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
lea eax, [esp + 0x1c]
call fcn.00401790
lea esi, [esp + 0x1c]
call fcn.004017b0
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
nop
cmp esi, 0x988
jge 0x4016b5
push 0
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
call edi
cmp esi, 0x2af2a3
jle 0x4016c7
cmp ebx, 0x78abdb45
jne 0x4016d0
inc esi
cmp esi, 0x1c5d
jl 0x4016a0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov edi, edi
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x4016fd
inc esi
cmp esi, 0x4f6a4
jl 0x4016e0
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40171d
cmp ebx, 0x785074d5
jne 0x401726
inc esi
cmp esi, 0x11915
jl 0x401709
mov eax, dword [0x421e9c]
mov dword [0x840ed8], eax
call fcn.004013b0
mov esi, dword [sym.imp.KERNEL32.dll_SetSystemTime]
mov edi, 0x3078f
cmp dword [0x840ed8], 0x51f
jne 0x40176d
xor eax, eax
lea edx, [esp + 0xc]
xor ecx, ecx
push edx
mov word [esp + 0x10], cx
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
call esi
sub edi, 1
jne 0x401740
mov eax, dword [0x83fe28]
mov dword [0x84046c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402790
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4210c8]
jne 0x40279a
repz ret
jmp fcn.00405f5e
Function at 0x405b8a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004034fa
and dword [ebp - 4], 0
cmp dword [0x4228a4], 0
mov ebx, eax
jne 0x405c3b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405cec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405cec
push eax
call fcn.00403488
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4228a4], eax
call esi
push eax
call fcn.00403488
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4228a8], eax
call esi
push eax
call fcn.00403488
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4228ac], eax
call esi
push eax
call fcn.00403488
pop ecx
mov dword [0x4228b4], eax
test eax, eax
je 0x405c3b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403488
pop ecx
mov dword [0x4228b0], eax
mov eax, dword [0x4228b0]
cmp eax, ebx
je 0x405c93
cmp dword [0x4228b4], ebx
je 0x405c93
push eax
call fcn.00403503
push dword [0x4228b4]
mov esi, eax
call fcn.00403503
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405c93
test edi, edi
je 0x405c93
call esi
test eax, eax
je 0x405c8a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405c8a
test byte [ebp - 0xc], 1
jne 0x405c93
or dword [ebp + 0x10], 0x200000
jmp 0x405ccc
mov eax, dword [0x4228a8]
cmp eax, ebx
je 0x405ccc
push eax
call fcn.00403503
pop ecx
test eax, eax
je 0x405ccc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405ccc
mov eax, dword [0x4228ac]
cmp eax, ebx
je 0x405ccc
push eax
call fcn.00403503
pop ecx
test eax, eax
je 0x405ccc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4228a4]
call fcn.00403503
pop ecx
test eax, eax
je 0x405cec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405cee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010b6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
push edi
xor eax, eax
mov ecx, 0x1181
lea edi, [esi + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x3f84
lea edi, [esi + 0x460a]
rep stosd dword es:[edi], eax
lea edx, [esi + 0x1441e]
mov dword [esi + 0x1451e], eax
mov ecx, 0x40
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x19c]
test eax, eax
je 0x40110d
mov dword [esi + 0x1451e], 1
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401103
lea eax, [esp + 8]
push eax
push 0x202
mov dword [esi + 0x1441a], 0
mov dword [esi], 0xffffffff
call sub.WSOCK32.dll_WSAStartup
pop edi
mov eax, esi
pop esi
add esp, 0x190
ret 4
Function at 0x401670
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push ebx
push eax
mov ebx, ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x401697
mov dword [ebx + 0x1441a], 1
xor al, al
pop ebx
add esp, 0x20
ret 0xc
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
push ebp
push esi
mov esi, dword [edx]
mov edx, ecx
push edi
shr ecx, 2
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x38]
mov ax, word [eax + 8]
push ecx
mov word [esp + 0x24], ax
call sub.WSOCK32.dll_htons
mov ebp, dword [esp + 0x3c]
test ebp, ebp
mov word [esp + 0x22], ax
je 0x401744
push ebp
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x401719
pop edi
pop esi
pop ebp
mov dword [ebx + 0x1441a], 1
xor al, al
pop ebx
add esp, 0x20
ret 0xc
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
mov word [esp + 0x10], ax
mov word [esp + 0x12], 0
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
test eax, eax
mov dword [ebx], eax
jge 0x40176b
pop edi
pop esi
pop ebp
mov dword [ebx + 0x1441a], 2
xor al, al
pop ebx
add esp, 0x20
ret 0xc
test ebp, ebp
je 0x401780
push 0x10
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.WSOCK32.dll_bind
test eax, eax
jl 0x40179b
mov eax, dword [ebx]
push 0x10
lea edx, [esp + 0x24]
push edx
push eax
call sub.WSOCK32.dll_connect
test eax, eax
jge 0x4017b1
mov ecx, dword [ebx]
push ecx
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
mov dword [ebx + 0x1441a], 3
xor al, al
pop ebx
add esp, 0x20
ret 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x20
ret 0xc