joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7cb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
cmp esi, dword [eax]
jne 0x4a7cdf
cmp ecx, eax
jne 0x4a7cdf
mov ecx, ebx
call fcn.004a6e30
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc
cmp esi, ecx
je 0x4a7dbd
push edi
mov edx, dword [esi]
mov dword [ebp + 0xc], edx
mov edx, dword [esi + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a7cf5
sub eax, edi
add eax, edx
mov ecx, 0x811c9dc5
cmp edx, eax
je 0x4a7d20
lea esp, [esp]
movsx edi, byte [edx]
imul ecx, ecx, 0x1000193
inc edx
xor ecx, edi
cmp edx, eax
jne 0x4a7d10
and ecx, 0x7fffffff
push 0x1f31d
push ecx
call fcn.004e7b5b
imul edx, edx, 0x41a7
imul eax, eax, 0xb14
add esp, 8
sub edx, eax
jns 0x4a7d4a
add edx, 0x7fffffff
mov ecx, dword [ebx + 0x20]
mov eax, ecx
and eax, edx
cmp dword [ebx + 0x24], eax
ja 0x4a7d5f
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
add eax, edx
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + eax*8 + 4], esi
lea ecx, [ecx + eax*8]
jne 0x4a7d88
cmp dword [ecx], esi
jne 0x4a7d80
mov edx, dword [ebx + 4]
mov dword [ecx], edx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov dword [ecx + eax*8 + 4], edx
jmp 0x4a7d90
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x4a7d90
cmp dword [ecx], esi
jne 0x4a7d90
mov edx, dword [esi]
mov dword [ecx], edx
cmp esi, dword [ebx + 4]
je 0x4a7db0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
push esi
mov dword [edx + 4], eax
call fcn.00482674
add esp, 4
dec dword [ebx + 8]
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp + 0x10]
jne 0x4a7ce8
pop edi
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4c3d20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec9a3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51f584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x38
call fcn.004826d0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4c3da5
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
mov dword [esi], vtable.google::protobuf::SourceCodeInfo_Location.0
call fcn.004be630
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, 0x5206e0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c4a40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaac8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51f584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::FileDescriptorProto.0
call fcn.004be630
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov eax, 0x5206e0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x80], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x84], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c4ec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaac8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51f584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::DescriptorProto.0
call fcn.004be630
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 8], 0x5206e0
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c6ec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaac8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51f584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::UninterpretedOption.0
call fcn.004be630
fldz
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
fstp qword [esi + 0x30]
mov eax, 0x5206e0
mov dword [esi + 0x18], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c7a60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec9a3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51f584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x48
call fcn.004826d0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4c7af3
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
mov dword [esi], vtable.google::protobuf::UninterpretedOption.0
call fcn.004be630
fldz
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
fstp qword [esi + 0x30]
mov eax, 0x5206e0
mov dword [esi + 0x18], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x450390]
test eax, eax
jne 0x401020
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x450390], eax
jne 0x401020
ret 8
cmp dword [0x450394], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x401046
push str.SetParentId
push eax
call esi
test eax, eax
mov dword [0x450394], eax
je 0x4010bd
mov eax, dword [0x450390]
cmp dword [0x450398], 0
jne 0x401065
push str.SetCommand
push eax
call esi
test eax, eax
mov dword [0x450398], eax
je 0x4010bd
mov eax, dword [0x450390]
cmp dword [0x45039c], 0
jne 0x401084
push str.SetGameId
push eax
call esi
test eax, eax
mov dword [0x45039c], eax
je 0x4010bd
mov eax, dword [0x450390]
cmp dword [0x4503a0], 0
jne 0x4010a3
push str.GetDllDataLen
push eax
call esi
test eax, eax
mov dword [0x4503a0], eax
je 0x4010bd
mov eax, dword [0x450390]
cmp dword [0x4503a4], 0
jne 0x4010c3
push str.GetDllData
push eax
call esi
test eax, eax
mov dword [0x4503a4], eax
jne 0x4010c3
xor eax, eax
pop esi
ret 8
mov eax, dword [0x450394]
test eax, eax
je 0x4010d6
mov ecx, dword [esp + 0xc]
push ecx
call eax
add esp, 4
xor ecx, ecx
call fcn.004010f0
mov eax, 1
pop esi
ret 8
Function at 0x401260
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push eax
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x42fdf0
push 0x42fd28
push 0
mov dword [0x42feb8], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401298
pop ecx
ret
push str.highlow2.exe
push 0x40
push 0x42e4d4
call fcn.00412943
push 0x4288f0
push 0x40
push 0x42e9d4
call fcn.00412943
push 0x4288fc
push 0x40
push 0x42e554
call fcn.00412943
push 0x428918
push 0x40
push 0x42ea54
call fcn.00412943
push str.poker7.exe
push 0x40
push 0x42e5d4
call fcn.00412943
push 0x42894c
push 0x40
push 0x42ead4
call fcn.00412943
add esp, 0x48
push str.Baduki.exe
push 0x40
push 0x42e654
call fcn.00412943
push 0x428974
push 0x40
push 0x42eb54
call fcn.00412943
push str.HOOLA3.exe
push 0x40
push 0x42e6d4
call fcn.00412943
push 0x4289a0
push 0x40
push 0x42ebd4
call fcn.00412943
push str.DuelPoker.exe
push 0x40
push 0x42e754
call fcn.00412943
push 0x4289d0
push 0x40
push 0x42ec54
call fcn.00412943
add esp, 0x48
push str.PMLauncher.exe
push 0x40
push 0x42e7d4
call fcn.00412943
push 0x428a00
push 0x40
push 0x42ecd4
call fcn.00412943
push str._PMLauncher.exe
push 0x40
push 0x42e854
call fcn.00412943
push 0x428a00
push 0x40
push 0x42ed54
call fcn.00412943
push str.Newbadugi.exe
push 0x40
push 0x42e8d4
call fcn.00412943
push 0x428a48
push 0x40
push 0x42edd4
call fcn.00412943
add esp, 0x48
push 0x100
push 0
push 0x4500c8
mov dword [0x42e4d0], 9
call fcn.00414720
add esp, 0xc
xor eax, eax
jmp 0x401400
movzx ecx, word [eax + 0x428a54]
mov word [eax + 0x4500cc], cx
add eax, 2
test cx, cx
jne 0x401400
xor eax, eax
jmp 0x401420
movzx ecx, word [eax + 0x428a58]
mov word [eax + 0x4500fc], cx
add eax, 2
test cx, cx
jne 0x401420
xor eax, eax
jmp 0x401440
movzx ecx, word [eax + str.218.54.31.165]
mov word [eax + 0x4500d0], cx
add eax, 2
test cx, cx
jne 0x401440
mov dword [0x4500f8], 0x51
xor eax, eax
movzx ecx, word [eax + str.MyCom]
mov word [eax + 0x45011a], cx
add eax, 2
test cx, cx
jne 0x401462
push esi
mov dword [0x4501b4], 5
mov dword [0x4501bc], 0x32
call fcn.004029f0
push str.IsWow64Process
push str.kernel32
mov dword [0x4501c8], eax
mov dword [0x42eed4], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4014d8
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp eax, 1
je 0x4014d8
xor eax, eax
jmp 0x4014dc
mov eax, dword [esp + 4]
mov dword [0x42eed8], eax
call fcn.00402880
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4018b0
push 0
push 0
mov dword [0x470bca], 0x401680
call esi
push 0
push 0
push 0
push 0x401cf0
push 0
push 0
call esi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x402490
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x42d0a4]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x12]
push edi
push eax
mov word [esp + 0x18], di
call fcn.00414720
add esp, 0xc
cmp esi, edi
mov dword [esp + 4], edi
je 0x40255d
mov eax, str.golfinfo.ini
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4024d3
sub eax, edx
sar eax, 1
je 0x40255d
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00412a24
push 0x428b7c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00412533
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40255d
push eax
push 1
push 0x200
push esi
call fcn.00412cfb
mov edx, dword [esp + 0x14]
push edx
call fcn.0041279d
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004122be
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004122be
add esp, 0x214
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x3e8
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x428b7c
lea eax, [esp + 0x10]
push 0x42fec0
push eax
call fcn.00412533
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x402871
push 2
push 0
push eax
call fcn.0041316b
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call fcn.00413388
mov esi, eax
add esp, 4
push esi
call fcn.004133f6
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.0041316b
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.00412cfb
add esp, 0x10
cmp esi, eax
jne 0x402853
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004130b5
add esp, 4
call fcn.004130c2
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x42ad58]
fmul qword [0x42ad50]
fadd qword [0x42ad48]
call fcn.00414f80
cmp esi, eax
jl 0x402853
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.004026f0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0041279d
add esp, 4
push 0x42fec0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x42888c
lea edx, [esp + 0x10]
push 0x42fec0
push edx
call fcn.00412533
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x402871
push eax
push esi
push 1
push edi
call fcn.0041269d
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402864
push eax
call fcn.0041279d
add esp, 4
test edi, edi
je 0x402871
push edi
call fcn.004122b9
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x402880
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x42d0a4]
xor eax, esp
mov dword [esp + 0x270], eax
push edi
push 0x62
lea eax, [esp + 0x20e]
push 0
push eax
mov word [esp + 0x214], 0
call fcn.00414720
add esp, 0xc
push 0x200
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.00414720
add esp, 0xc
lea edi, [esp + 8]
call fcn.00402580
test eax, eax
je 0x4029cf
xor eax, eax
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x4500d0], cx
add eax, 2
test cx, cx
jne 0x4028e0
movzx edx, word [esp + 0x8c]
mov dword [0x4500f8], edx
xor eax, eax
jmp 0x402910
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x4500fc], cx
add eax, 2
test cx, cx
jne 0x402910
cmp dword [0x4501c8], 3
jne 0x402959
push 0x104
push 0x42fec0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428ba0
push 0x104
push 0x42fec0
call fcn.00412a24
add esp, 0xc
jmp 0x402969
push 0x42fec0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x1b0]
push eax
push 0x104
push 0x42fec0
call fcn.00412a24
add esp, 0xc
push 0x428ba4
push 0x104
push 0x42fec0
call fcn.00412a24
add esp, 0xc
call fcn.00402740
push 0
push 0
push 0
push 0x402620
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [esp + 0x208]
call fcn.00402650
mov ecx, edi
push ecx
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.004122be
mov esp, ebp
pop ebp
ret

Function at 0x4029f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x42d0a4]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00414720
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402ac9
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x402a95
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x402a6e
cmp word [esp + 0x118], 4
jb 0x402ac9
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004122be
add esp, 0x120
ret
cmp eax, 2
jae 0x402a78
cmp eax, 1
jne 0x402ac9
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004122be
add esp, 0x120
ret
cmp eax, 6
jne 0x402ac9
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x402abf
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004122be
add esp, 0x120
ret
cmp eax, 1
jne 0x402ac9
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004122be
add esp, 0x120
ret
Function at 0x402b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
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 0x82
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402be3
push ebp
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]
mov ebp, eax
push ebp
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 [esp + 0x10], eax
mov eax, dword [esp + 0x18]
shl esi, 9
push esi
mov dword [eax], edi
call fcn.004133f6
push esi
mov ebx, eax
push 0
push ebx
call fcn.00414720
mov edx, dword [esp + 0x20]
push edi
push edx
push ebx
call fcn.004140b0
add esp, 0x1c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4033c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4033d7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403408
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403404
cmp esi, eax
jae 0x403408
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4033f4
cmp esi, eax
jb 0x40340e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4041a0
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
cmp ebx, ebp
push edi
mov edi, eax
mov dword [esp + 0x10], ebp
je 0x404295
cmp edi, 0xa
jb 0x404295
lea eax, [edi*4]
mov dword [esp + 0x14], eax
add eax, 1
push eax
call fcn.0041231c
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.00404030
add esp, 8
test eax, eax
je 0x40428e
mov eax, dword [esp + 0x1c]
push 0x42888c
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00412533
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x404219
mov ebp, 0xfffffffe
jmp 0x404244
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push esi
call fcn.0041269d
add esp, 0x10
cmp eax, edi
je 0x40425b
mov ebp, 0xfffffffe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404244
push eax
call fcn.0041279d
add esp, 4
test esi, esi
je 0x404251
push esi
call fcn.004123df
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
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 [esp + 0x10]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.0041269d
add esp, 0x10
jmp 0x404233
mov ebp, 0xfffffffd
jmp 0x404233
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x4060f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x4060ff
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x4061e7
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x42a6c8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42a6c8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x42a6c8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42a6c8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42a6c8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42a6c8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42a6c8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42a6c8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x406110
pop ebp
test edi, edi
je 0x40620c
jmp 0x4061f0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x42a6c8]
add ecx, 1
sub edi, 1
jne 0x4061f0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x406220
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42a6c8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42a6c8]
mov dword [edx + 8], ecx
ret

Function at 0x406270
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x42a6c8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x42a6c8]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x406990
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x4069c2
mov ecx, dword [edi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4069b8
mov byte [edi + 6], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x4069d5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xc]
push esi
add eax, ecx
push eax
push edx
call fcn.004140b0
add dword [edi + 0x14], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret