joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
push 0x104
push 0
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
push 0xf
lea ecx, [ebp - 0x384]
push ecx
call fcn.00418cf0
add esp, 0xfffffffc
mov edx, esp
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
push 0x4212d4
lea ecx, [ebp - 0x260]
push ecx
call dword [0x6d70f8]
add esp, 0x14
lea ecx, [ebp - 0x384]
call fcn.0041ab10
push 0x10000000
push 1
push 0
lea edx, [ebp - 0x260]
push edx
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x409ed8
push 0
push 0x10000000
push 0
push 0
push 0
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_CreateDesktopA]
mov dword [ebp - 0x154], eax
mov byte [ebp - 0x378], 0
push 0x103
push 0
lea ecx, [ebp - 0x377]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0x98]
push edx
lea eax, [ebp - 0x378]
push eax
call dword [0x6d7278]
mov ecx, dword [ebp + 0x94]
push ecx
lea edx, [ebp - 0x378]
push edx
call dword [0x6d7278]
push 0x4212d8
lea eax, [ebp - 0x378]
push eax
call dword [0x6d7278]
push 0x104
push 0
lea ecx, [ebp - 0x150]
push ecx
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
push 0x1c
lea edx, [ebp - 0x390]
push edx
call fcn.00418f70
add esp, 8
mov ecx, eax
call fcn.0041ade0
push eax
mov eax, dword [0x6d6e5c]
push eax
lea ecx, [ebp - 0x378]
push ecx
call fcn.004193f0
add esp, 0xc
push eax
lea edx, [ebp - 0x150]
push edx
call dword [0x6d730c]
lea ecx, [ebp - 0x390]
call fcn.0041ab10
mov dword [ebp - 0x48], 0
push 0x40
push 0
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0x44
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x270], 0
xor edx, edx
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x264], edx
mov eax, dword [ebp + 0x9c]
push eax
call fcn.004198e0
add esp, 4
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x150]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a059
push 0x1388
call dword [0x6d7110]
mov ecx, dword [ebp + 0x90]
push ecx
mov edx, dword [ebp + 0x94]
push edx
sub esp, 0x88
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.00401590
mov ecx, dword [ebp - 0x268]
push ecx
call fcn.00409be0
add esp, 0x94
mov edx, dword [ebp - 0x268]
push edx
call fcn.004199a0
add esp, 4
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov dword [ebp - 0x398], 1
lea ecx, [ebp + 8]
call fcn.00401550
mov eax, dword [ebp - 0x398]
mov esp, ebp
pop ebp
ret
Function at 0x417350
Capabilities:
Get steam token

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push 0x64000
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x4205c5
lea ecx, [ebp - 0x1c]
call fcn.0041aa50
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4173c8
mov dword [ebp - 0x45c], 0x4205c6
lea ecx, [ebp - 0x1c]
call fcn.0041ab10
mov eax, dword [ebp - 0x45c]
jmp 0x41755f
mov edx, 1
test edx, edx
je 0x41752e
mov byte [ebp - 0x438], 0
push 0x207
push 0
lea eax, [ebp - 0x437]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0xfff
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.65_79_41_69_64_48_6C_77_49_6A_6F_67_49_6B_70_58_56_43_49_73_49_43_4A_68_62_47_63_69_4F_69_41_69_52_57_52_45_55_30_45_69_49_48_30
mov edx, dword [ebp - 4]
push edx
call fcn.00417180
add esp, 0x20
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
add eax, 0x208
mov ecx, dword [ebp - 0x24]
adc ecx, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x24], 0
ja 0x41744a
jb 0x417445
cmp dword [ebp - 0x28], 0
ja 0x41744a
jmp 0x41752e
cmp dword [ebp - 0x24], 0
ja 0x417459
cmp dword [ebp - 0x28], 0xffff
jbe 0x417475
push 0
push 0x208
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [ebp - 0x438]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0041ab30
lea ecx, [ebp - 0x1c]
call fcn.0041ade0
push eax
call dword [0x6d718c]
cmp eax, 0x12c
jle 0x417529
lea ecx, [ebp - 0x1c]
call fcn.0041ade0
push eax
lea ecx, [ebp - 0x478]
call fcn.00410c50
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x454]
push ecx
call fcn.00416de0
add esp, 8
lea ecx, [ebp - 0x478]
call fcn.004080c0
lea ecx, [ebp - 0x454]
call fcn.004175c0
movzx edx, al
test edx, edx
jne 0x41751e
lea ecx, [ebp - 0x454]
call fcn.004175a0
cmp eax, 0xa
jbe 0x41751e
lea ecx, [ebp - 0x1c]
call fcn.0041ade0
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x454]
call fcn.004080c0
lea ecx, [ebp - 0x1c]
call fcn.0041ab10
mov eax, dword [ebp - 0x47c]
jmp 0x41755f
lea ecx, [ebp - 0x454]
call fcn.004080c0
jmp 0x4173c8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x480], eax
mov ecx, dword [ebp - 0x480]
push ecx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x484], 0x4205c7
lea ecx, [ebp - 0x1c]
call fcn.0041ab10
mov eax, dword [ebp - 0x484]
mov esp, ebp
pop ebp
ret
Function at 0x419aa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x419ad0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x419ae3
xor eax, eax
jmp 0x419ba1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x419afe
xor eax, eax
jmp 0x419ba1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x419b1c
xor eax, eax
jmp 0x419ba1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x419b5e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x419b9f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00418bc0
add esp, 8
test eax, eax
jne 0x419b9d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x419ba1
jmp 0x419b55
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41b63a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c140]
jne 0x41b644
repz ret
jmp fcn.0041bde7
Function at 0x41c36d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041c136
and dword [ebp - 0x14], 0
cmp dword [0x4d6940], 0
mov dword [ebp - 0x18], eax
jne 0x41c420
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41c4c8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41c4c8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4d6940], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4d6944], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4d6948], eax
call edi
push eax
call esi
mov dword [0x4d6950], eax
test eax, eax
je 0x41c420
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4d694c], eax
mov eax, dword [0x4d694c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41c479
cmp dword [0x4d6950], ecx
je 0x41c479
push eax
call esi
push dword [0x4d6950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41c479
test ebx, ebx
je 0x41c479
call edi
test eax, eax
je 0x41c470
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41c470
test byte [ebp - 8], 1
jne 0x41c479
or dword [ebp + 0x10], 0x200000
jmp 0x41c4ac
mov eax, dword [0x4d6944]
cmp eax, dword [ebp - 0x18]
je 0x41c4ac
push eax
call esi
test eax, eax
je 0x41c4ac
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c4ac
mov eax, dword [0x4d6948]
cmp eax, dword [ebp - 0x18]
je 0x41c4ac
push eax
call esi
test eax, eax
je 0x41c4ac
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4d6940]
call esi
test eax, eax
je 0x41c4c8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41c4ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b63a
leave
ret
Function at 0x475980
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x65000]
push edi
jmp 0x47599a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4759a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x475990
mov eax, 1
add ebx, ebx
jne 0x4759b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4759c4
jne 0x4759e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4759e3
dec eax
add ebx, ebx
jne 0x4759d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4759a8
add ebx, ebx
jne 0x4759df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x475a35
xor ecx, ecx
sub eax, 3
jb 0x4759fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x475a6a
sar eax, 1
mov ebp, eax
jmp 0x475a06
add ebx, ebx
jne 0x475a06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4759d4
inc ecx
add ebx, ebx
jne 0x475a14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4759d4
add ebx, ebx
jne 0x475a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x475a16
jne 0x475a32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x475a16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x475a54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x475a46
jmp 0x475996
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x475a54
add edi, ecx
jmp 0x475996
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x475a72
cmp byte [edi], 0x12
jne 0x475a72
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 0x475a77
lea edi, [esi + 0x73000]
mov eax, dword [edi]
or eax, eax
je 0x475aef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc51f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc52d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x475aa4
mov ecx, edi
jns 0x475ad3
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 + 0xc52e0]
or eax, eax
je 0x475ae9
mov dword [ebx], eax
add ebx, 4
jmp 0x475ac1
call dword [esi + 0xc52dc]
mov ebp, dword [esi + 0xc52e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x475b23
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x4019b7
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x258
mov eax, 0x563979
call fcn.005635af
mov edi, ecx
mov dword [ebp - 0x264], edi
xor eax, eax
mov esi, eax
push eax
push 2
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x25c], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401b96
xor eax, eax
push 0x22c
push eax
lea eax, [ebp - 0x240]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401b87
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x238], eax
je 0x401b0b
push 1
call dword [sym.imp.MSVCP120.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_]
pop ecx
mov dword [ebp - 0x260], eax
xor ecx, ecx
or esi, 1
mov dword [ebp - 4], ecx
mov ecx, eax
mov dword [ebp - 0x24c], eax
mov edx, dword [eax]
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x25c], esi
call dword [edx + 4]
lea edx, [edi + 0x14]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.00402445
lea ecx, [ebp - 0x21c]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x401a85
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x21c]
sub ecx, edx
lea edi, [ebp - 0x21c]
sar ecx, 1
lea eax, [eax + ecx*2]
mov dword [ebp - 0x250], eax
cmp esi, dword [ebp - 0x254]
je 0x401ae0
cmp edi, eax
je 0x401ae8
push edi
push esi
lea ecx, [ebp - 0x24c]
call fcn.00402469
test al, al
je 0x401b00
mov eax, dword [ebp - 0x250]
add esi, 2
add edi, 2
cmp esi, dword [ebp - 0x254]
jne 0x401ab7
cmp edi, eax
jne 0x401b9e
cmp esi, dword [ebp - 0x254]
jne 0x401b9e
mov byte [ebp - 0x241], 1
jmp 0x401ba6
lea ecx, [ebp - 0x24c]
call fcn.004015f9
xor eax, eax
mov byte [ebp - 0x241], al
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x248]
test al, 1
je 0x401b35
and eax, 0xfffffffe
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x248], eax
call fcn.004015f9
cmp byte [ebp - 0x241], 0
je 0x401b6d
push dword [ebp - 0x238]
xor eax, eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401b6d
cmp esi, 0xffffffff
je 0x401b6d
push 0xdead
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, dword [ebp - 0x248]
mov edi, dword [ebp - 0x264]
test eax, eax
jne 0x401a26
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0056355e
ret 4
xor eax, eax
mov byte [ebp - 0x241], al
lea ecx, [ebp - 0x24c]
call fcn.004015f9
cmp byte [ebp - 0x241], 0
je 0x401b0b
mov byte [ebp - 0x241], 1
jmp 0x401b13
Function at 0x403351
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x40335f
mov ecx, dword [ecx]
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 7
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403388
xor eax, eax
jmp 0x40340a
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x403401
push edi
push eax
call fcn.0055fe67
pop ecx
push esi
mov edi, eax
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4033f8
push 2
pop eax
cmp dword [ebp - 4], eax
jb 0x4033e0
cmp byte [edi], 0xff
jne 0x4033e0
cmp byte [edi + 1], 0xfe
jne 0x4033e0
xor esi, esi
inc esi
jmp 0x4033f8
cmp dword [ebp - 4], 3
jb 0x4033f8
cmp byte [edi], 0xef
jne 0x4033f8
cmp byte [edi + 1], 0xbb
jne 0x4033f8
cmp byte [edi + 2], 0xbf
cmove esi, eax
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
pop ecx
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408fee
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor edx, edx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x811c9dc5
movzx eax, byte [ebp + edx - 0x10]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 8
jb 0x409007
mov edx, dword [ecx + 0x14]
mov eax, edx
and eax, esi
pop edi
pop esi
cmp dword [ecx + 0x18], eax
ja 0x409031
shr edx, 1
or ecx, 0xffffffff
sub ecx, edx
add eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4093b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x564940
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5ca1c8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x4094f9
cmp byte [esi + 0x45], bl
je 0x4094f9
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x409418
xor al, al
jmp 0x4094fb
push ebx
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.004096b2
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
cmp edi, 0x10
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmovae edx, ebx
lea ecx, [esp + 0x1c]
cmovae ecx, ebx
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40947b
dec eax
je 0x40947f
dec eax
dec eax
je 0x4094e6
xor bl, bl
jmp 0x4094e8
mov byte [esi + 0x45], 0
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ebx, dword [esp + 0x18]
cmp edi, 0x10
mov ecx, dword [esp + 0x14]
cmovae eax, ebx
sub ecx, eax
mov dword [esp + 0x10], ecx
je 0x4094c7
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [esp + 0x1c]
push ecx
cmovae eax, ebx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp ecx, eax
jne 0x409477
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
cmp byte [esi + 0x45], 0
je 0x4094e6
test ecx, ecx
jne 0x409440
push ecx
push 8
lea ecx, [esp + 0x20]
call fcn.00408c59
jmp 0x409438
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.00401cbf
mov al, bl
jmp 0x4094fb
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0055fedc
mov esp, ebp
pop ebp
ret
Function at 0x40f1d8
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x18], ebx
mov byte [edi + 0x20], bl
mov dword [edi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.KgServiceShareData
push 0x1000
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x24], eax
test eax, eax
je 0x40f22b
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40f22b
push eax
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x415c7b
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566134
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x5ca1c8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x48]
push str.ipcSendId
call fcn.00401bca
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x88], ebx
mov eax, dword [edi]
call dword [eax + 4]
push edx
push eax
lea edx, [esp + 0x50]
mov ecx, esi
call fcn.004139e1
or dword [esp + 0x90], 0xffffffff
pop ecx
pop ecx
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.00401cbf
push str.stat_RecvTick
lea ecx, [esp + 0x34]
call fcn.00401bca
mov dword [esp + 0x88], 1
lea ecx, [esp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00541270
push dword [esp + 0x20]
lea edx, [esp + 0x34]
mov dword [esp + 0x28], ebx
push dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.004139e1
or dword [esp + 0x90], 0xffffffff
pop ecx
pop ecx
push ebx
push 1
lea ecx, [esp + 0x38]
call fcn.00401cbf
mov edx, esi
lea ecx, [esp + 0x60]
call fcn.00413ee3
mov dword [esp + 0x88], 2
cmp dword [edi + 0x14], ebx
je 0x415de2
push 0x18
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
pop ecx
mov dword [esp + 0x14], esi
mov byte [esp + 0x88], 3
test esi, esi
je 0x415dd0
push 2
push 0x6a000c
push closesocket
mov ecx, esi
call fcn.0055e3c0
lea eax, [esp + 0x60]
mov byte [esp + 0x88], 4
push eax
mov ecx, esi
mov dword [esi], 0x58363c
call fcn.005418c0
push dword [ebp + 0xc]
mov ecx, esi
call fcn.005418c0
jmp 0x415dd2
mov esi, ebx
mov byte [esp + 0x88], 2
mov ecx, dword [edi + 0x14]
push esi
mov eax, dword [ecx]
call dword [eax]
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.00401cbf
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 0x10

Function at 0x417f6e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5665c5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x5ca1c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 1
push ecx
call fcn.0043e47b
pop ecx
mov ecx, eax
call fcn.0043e42b
push 0
push fcn.00414c58
lea edx, [esp + 0x10]
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x14]
call fcn.0042d7c1
pop ecx
pop ecx
and dword [esp + 0x30], 0
push eax
call fcn.00539b40
push eax
push 0x4ad
push str.transfer_session.cpp
push str.transfer::TransferSession::OnError
lea ecx, [esp + 0x28]
call fcn.00539b00
mov ecx, dword [esi + 0x70]
push eax
call fcn.0053c7d0
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0053a640
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret