joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10aabd6
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10c4628
call fcn.010ab184
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10ced40
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10aa991
cmp eax, esi
jne 0x10aa984
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10aa994
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10aa96b
xor esi, esi
inc esi
mov eax, dword [0x10ced3c]
cmp eax, esi
jne 0x10aa9a7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10aa9d6
mov eax, dword [0x10ced3c]
test eax, eax
jne 0x10aa9d0
mov dword [0x10ced3c], esi
push 0x10020f4
push 0x10020e8
call fcn.010aa8cd
pop ecx
pop ecx
test eax, eax
je 0x10aa9d6
jmp 0x10aaafa
mov dword [0x10ce5d8], esi
mov eax, dword [0x10ced3c]
cmp eax, esi
jne 0x10aa9fa
push 0x10020e4
push 0x10020d4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10ced3c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10aaa07
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10ced4c], ebx
je 0x10aaa28
push 0x10ced4c
call fcn.010ab0f9
pop ecx
test eax, eax
je 0x10aaa28
push ebx
push 2
push ebx
call dword [0x10ced4c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10aaafa
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10aaa92
cmp cx, bx
je 0x10aaa4d
cmp dword [ebp - 0x1c], ebx
jne 0x10aaa92
movzx ecx, word [eax]
cmp cx, bx
je 0x10aaa62
cmp cx, 0x20
ja 0x10aaa62
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10aaa4d
test byte [ebp - 0x40], 1
je 0x10aaa6e
movzx ecx, word [ebp - 0x3c]
jmp 0x10aaa71
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10ce5d4], eax
cmp dword [0x10ce5c8], ebx
jne 0x10aaad7
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10aaaa3
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10aaa37
cmp dword [0x10ce5d8], ebx
jne 0x10aaae5
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10ce5d4]
jmp 0x10aab06
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010ab1c9
ret
call fcn.010ab2d1
jmp 0x10aa92e
Function at 0x10ac2eb
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x102b6c8
lea ecx, [ebp - 0xc]
call fcn.010ab83f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
test esi, esi
jne 0x10ac359
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10ac32f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10ac359
test byte [eax + 0x1c], 4
je 0x10ac359
push dword [ebp - 4]
push 0x102b52c
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10ac365
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
lea ecx, [ebp - 0xc]
call fcn.010ab886
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x10afdfe
Capabilities:
Copy file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x10cd0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x102bf84
lea ecx, [ebp - 0x630]
call fcn.010ab83f
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035132
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jl 0x10aff58
push dword [0x10cd110]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0103d8f7
test eax, eax
jl 0x10aff58
push 0x105
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10aff20
push 0x10021d4
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.0103d8f7
test eax, eax
jl 0x10aff58
push dword [0x10cd110]
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0103d8f7
test eax, eax
jl 0x10aff58
push 0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10aff58
mov eax, dword [section..data]
cmp eax, section..data
je 0x10aff58
test byte [eax + 0x1c], 8
je 0x10aff58
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10afef8
and eax, ebx
or eax, edi
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [section..data]
push 0x102be30
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010af67c
jmp 0x10aff58
mov eax, dword [section..data]
cmp eax, section..data
je 0x10aff58
test byte [eax + 0x1c], 8
je 0x10aff58
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10aff40
and eax, ebx
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be30
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov eax, dword [0x10cd10c]
and dword [ebp - 0x624], 0
mov dword [ebp - 0x628], eax
mov eax, dword [0x10cd110]
mov dword [ebp - 0x620], eax
lea eax, [ebp - 0x628]
push eax
push 2
push 0
call sub.WINSPOOL.DRV_AddMonitorW
mov esi, eax
test esi, esi
jne 0x10affd3
mov eax, dword [section..data]
cmp eax, section..data
je 0x10affc3
test byte [eax + 0x1c], 4
je 0x10affc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10affab
and eax, ebx
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be30
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xbbe
jne 0x10affd3
xor esi, esi
inc esi
lea ecx, [ebp - 0x630]
call fcn.010ab886
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac17
leave
ret 4
Function at 0x10afff7
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10cd0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x102bfcc
lea ecx, [ebp - 0x48]
call fcn.010ab83f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edi, eax
cmp edi, ebx
je 0x10b00f0
push 0x208
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 1
call fcn.010a8e6d
push dword [0x10cd10c]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push 0x102bfa4
push 0x104
push esi
call fcn.0103d988
add esp, 0x18
test eax, eax
jl 0x10b008a
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call sub.WINSPOOL.DRV_OpenPrinterW
mov edi, eax
jmp 0x10b008c
xor edi, edi
push esi
call fcn.010a8eab
pop ecx
cmp edi, ebx
je 0x10b00f0
push 0x64
call fcn.010a8e6d
pop ecx
mov ecx, dword [0x10cd0f4]
mov esi, eax
mov eax, ecx
mov dword [ebp - 0x2c], ebx
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, bx
jne 0x10b00af
sub eax, edx
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x2c]
push edx
push 0x64
push esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 0x102bf94
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_XcvDataW
push esi
mov edi, eax
call fcn.010a8eab
pop ecx
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_ClosePrinter
cmp edi, ebx
jne 0x10b012e
mov eax, dword [section..data]
cmp eax, section..data
je 0x10b012e
test byte [eax + 0x1c], 4
je 0x10b012e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10b0116
and eax, 0xffff
or eax, 0x80070000
push eax
mov eax, dword [section..data]
push 0x102be30
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
lea ecx, [ebp - 0x48]
call fcn.010ab886
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac17
leave
ret
Function at 0x10b014c
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10cd0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 0x102bff0
lea ecx, [ebp - 0x48]
call fcn.010ab83f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov esi, eax
cmp esi, ebx
je 0x10b0242
push edi
push 0x208
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 1
call fcn.010a8e6d
push dword [0x10cd10c]
mov edi, eax
lea eax, [ebp - 0x24]
push eax
push 0x102bfa4
push 0x104
push edi
call fcn.0103d988
add esp, 0x18
test eax, eax
jl 0x10b01df
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call sub.WINSPOOL.DRV_OpenPrinterW
mov esi, eax
jmp 0x10b01e1
xor esi, esi
push edi
call fcn.010a8eab
pop ecx
cmp esi, ebx
je 0x10b0241
push 0x64
call fcn.010a8e6d
pop ecx
mov ecx, dword [0x10cd0f4]
mov edi, eax
mov eax, ecx
mov dword [ebp - 0x2c], ebx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, bx
jne 0x10b0204
sub eax, edx
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x2c]
push edx
push 0x64
push edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 0x102bfd8
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_XcvDataW
push edi
mov esi, eax
call fcn.010a8eab
pop ecx
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_ClosePrinter
pop edi
lea ecx, [ebp - 0x48]
call fcn.010ab886
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac17
leave
ret

Function at 0x2ef3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02ef378f
jae 0x2ef370e
xor ecx, ecx
call fcn.02ef378f
jae 0x2ef373d
xor eax, eax
call fcn.02ef378f
jae 0x2ef374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02ef378f
adc al, al
jae 0x2ef372f
jne 0x2ef3779
stosb byte es:[edi], al
jmp 0x2ef3711
call fcn.02ef379b
sub ecx, ebx
jne 0x2ef3756
call fcn.02ef3799
jmp 0x2ef3775
lodsb al, byte [esi]
shr eax, 1
je 0x2ef3783
adc ecx, ecx
jmp 0x2ef3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02ef3799
cmp eax, 0x7d00
jae 0x2ef3772
cmp ah, 5
jae 0x2ef3773
cmp eax, 0x7f
ja 0x2ef3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2ef3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407aa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4511f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46f06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
sub esp, 8
mov dword [esi], vtable.TrButton.0
mov dword [esi + 0x30], edx
mov dword [esi + 0x4c], 0
push edx
push 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov word [esi + 0x21], pe_nt_image_headers32
mov byte [esi + 0x20], 0
mov word [esi + 0x50], 0
mov byte [esi + 0x52], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], edx
call fcn.00407b90
mov eax, dword [esi + 0x38]
mov dword [esi + 0x34], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x408ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4513bf
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x46f06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0x463458
mov dword [esi + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov ebx, dword [eax + 4]
add ebx, esi
mov ecx, ebx
call fcn.00402530
mov eax, dword [ebx + 0x30]
lea edi, [esi + 4]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], 0
mov dword [ebp - 4], 2
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x14], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 3
push eax
call fcn.0040b580
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx eax, ax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 4
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
je 0x408ba5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 1
cmp dword [ebx + 0x38], 0
mov eax, dword [ebp - 0x14]
mov word [ebx + 0x40], ax
jne 0x408bc6
mov eax, dword [ebx + 0xc]
mov ecx, ebx
or eax, 4
push 0
push eax
call fcn.004024b0
mov dword [ebp - 4], 5
mov ebx, dword [ebp - 0x1c]
push 8
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], edi
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0043047e
add esp, 4
mov esi, eax
push 1
mov byte [ebp - 4], 6
call fcn.0041c242
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 4
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, ebx
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40d1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov esi, edx
mov dword [eax], 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
movzx ecx, di
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40d2b0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40d2b0
mov esi, dword [ebp - 4]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.004324e0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40d289
lea eax, [ebp - 4]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
jmp 0x40d28b
xor esi, esi
mov eax, dword [ebp + 8]
push ebx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d7c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451752
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 5
mov dword [ebp - 0x224], esi
push 0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d840
sub eax, edx
mov ecx, esi
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00402f60
push 0xd
mov dword [ebp - 4], 0
mov ecx, esi
push str.FLiNGTrainer
mov dword [ebp - 0x21c], 1
call fcn.00401780
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043045f
mov esp, ebp
pop ebp
ret
Function at 0x40e480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451853
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x46f06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 8], eax
mov dword [edi + 4], 1
mov dword [edi + 0x2c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x38]
mov dword [edi], vtable.TrImage.0
mov dword [ebp + 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040e8c0
mov dword [esi], eax
mov byte [edi + 0x22], 0
mov eax, edi
mov dword [edi + 0x34], 0
mov byte [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x418770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45249b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46f06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 0xc]
mov dword [esi], vtable.TrRemote.0
lea ecx, [eax + 0xc]
mov dword [esi + 4], 0
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
mov dword [ebp - 4], edx
push edx
push 0x463468
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
call fcn.00402f60
xor eax, eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 7
mov word [esi + 0x30], ax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 7
mov word [esi + 0x48], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418ad0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4524c8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x34
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push 0
push 4
push eax
mov eax, dword [ecx + 4]
push edx
push 0
push 0
mov eax, dword [eax + 4]
push dword [eax + 0x58]
call dword [0x471dac]
mov esi, eax
test esi, esi
jne 0x418c41
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00408710
add esp, 0xc
mov dword [ebp - 4], esi
mov ecx, 0x46faa0
cmp dword [0x46fab4], 8
push dword [0x46fab0]
cmovae ecx, dword [0x46faa0]
push ecx
push ecx
mov ecx, eax
call fcn.0040a330
xor ecx, ecx
push esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, 0x46f920
cmp dword [0x46f934], 8
lea eax, [ebp - 0x2c]
cmovae ecx, dword [0x46f920]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x418bf3
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418be9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418c79
push edx
push ecx
call fcn.00430470
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x418c3d
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418c33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418c7e
push edx
push ecx
call fcn.00430470
add esp, 8
xor al, al
jmp 0x418c5a
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043045f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004353c3
call fcn.004353c3
int3
Function at 0x421591
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub eax, edx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edx
sbb esi, esi
not esi
and esi, eax
je 0x4215c0
movzx eax, byte [edx]
xor eax, dword [ecx]
imul eax, eax, 0x1000193
inc edx
inc edi
mov dword [ecx], eax
cmp edi, esi
jne 0x4215ab
jmp 0x4215c2
mov eax, dword [ecx]
pop edi
pop esi
pop ebp
ret 8