joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cff4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45c290]
cmp byte [eax + 0xc], 0
je 0x43d161
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43d15a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45db68], 0
jne 0x43d048
push 0x43d168
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43d170
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db68], eax
cmp dword [0x45bb10], 0
jne 0x43d143
push 0x43d180
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45bb10], eax
cmp dword [0x45bb10], 0
je 0x43d143
push 0x43d18c
mov eax, dword [0x45bb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db6c], eax
push 0x43d19c
mov eax, dword [0x45bb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db70], eax
push 0x43d1b0
mov eax, dword [0x45bb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db74], eax
push 0x43d1c8
mov eax, dword [0x45bb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db78], eax
push 0x43d1e0
mov eax, dword [0x45bb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db7c], eax
push 0x43d1f4
mov eax, dword [0x45bb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db80], eax
push 0x43d20c
mov eax, dword [0x45bb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db84], eax
push 0x43d224
mov eax, dword [0x45bb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db88], eax
push 0x43d240
mov eax, dword [0x45bb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db8c], eax
push 0x43d24c
mov eax, dword [0x45bb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d161
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x440fec
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404294
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44103b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404504
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44888c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4488dc]
test si, 4
je 0x4488a0
or bl, 1
test si, 8
je 0x4488aa
or bl, 4
test si, 1
je 0x4488b4
or bl, 8
test si, 2
je 0x4488be
or bl, 0x10
test si, 0x10
je 0x4488c8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4488d7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4488e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x448918]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4488f9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448908
or bl, 4
test esi, 0x20000000
je 0x448913
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44efdc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44efee
add esp, 0xfffffff0
call fcn.00403840
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d0c8
mov eax, dword [0x45bf2c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f380
mov eax, dword [0x45bf38]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f38c
mov eax, ebx
call fcn.0044f398
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4153c0]
call fcn.004034d8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4153c0]
call fcn.004034d8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4153c0]
call fcn.004034d8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4153c0]
call fcn.004034d8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4153c0]
call fcn.004034d8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44b7b0
push eax
push 0
push 0
mov eax, dword [0x45c088]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41eb1c]
call fcn.0042027c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41eb1c]
call fcn.0042027c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41eb1c]
call fcn.0042027c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044f7e8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f6b0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f6b0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f6b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f12b
call fcn.00403898
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44f494
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44f63f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f620
mov dl, 1
mov eax, dword [0x4157dc]
call fcn.004034d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404294
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f60f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d354
test al, al
je 0x44f602
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44f650
lea eax, [ebp - 0x254]
call fcn.00409138
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f602
xor eax, eax
push ebp
push 0x44f5fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44f688
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f5e4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404504
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44f5e4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404504
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f602
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f505
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004192b8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f646
lea eax, [ebp - 0x260]
call fcn.00404294
ret

Function at 0x44ff88
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45dbb4]
cmp byte [eax + 0xa5], 0
jne 0x44fff9
cmp dword [0x45dbcc], 0
jne 0x44ffba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44ff44
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45dbcc], eax
cmp dword [0x45dbc8], 0
jne 0x44ffd5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45dbc8], eax
cmp dword [0x45dbd0], 0
jne 0x44fff9
push esp
push 0
push 0
push 0x44fee8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45dbd0], eax
pop edx
ret
Function at 0x45068c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45dbb4]
cmp dword [eax + 0x30], 0
je 0x450736
cmp dword [ebx + 0x94], 0
jne 0x450730
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45061c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450730
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4506f6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450730
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417728
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450705
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451294
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4512c9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404384
jmp 0x4512d6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042e8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452478
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4524b9
mov eax, esi
call fcn.00438b5c
test al, al
je 0x4524b9
mov eax, dword [ebx + 0x84]
call fcn.00438884
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4524b9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438884
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45319c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4149bc]
call fcn.00404c04
xor eax, eax
push ebp
push 0x4532e0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45bd44], 0
jne 0x4531ef
mov ecx, dword [0x45be70]
mov dl, 1
mov eax, dword [0x4074ac]
call fcn.0040bb9c
call fcn.00403ca8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402f18
mov eax, ebx
call fcn.00404ad0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4532f0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405c44
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404ae0
test eax, eax
jle 0x453287
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x453280
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040451c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404504
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004082f0
test eax, eax
jne 0x453280
mov ebx, 0x15
jmp 0x45328c
mov ebx, 0x10
jmp 0x45328c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x45bd44]
call fcn.004530f4
mov eax, dword [ebp - 8]
call fcn.004530f4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405c5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4532e7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004042b8
lea eax, [ebp - 0x10]
mov edx, dword [0x4149bc]
call fcn.00404cd4
ret
Function at 0x1000e453
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100111ac
push ebx
push esi
call fcn.100110d8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001106c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011159
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100111ab
push edi
push eax
call fcn.100120ca
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011179
call fcn.1000fbb4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100111aa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001106c
add esp, 0x20
test eax, eax
jne 0x10011198
push edi
call fcn.1000fbb4
jmp 0x100111a0
push ebx
call fcn.1000fbb4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10011419
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018888
push 0x10018880
push str.FlsAlloc
push 0x1f
call fcn.10011335
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001144d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017150]
call esi
jmp 0x10011453
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011497
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018898
push 0x10018890
push str.FlsGetValue
push 0x21
call fcn.10011335
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100114ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100114d6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100188a0
push 0x10018898
push str.FlsSetValue
push 0x22
call fcn.10011335
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011510
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10017150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10016b90
Capabilities:
Parse pe header

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

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x159f306
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
bts si, bp
sub esp, 4
xchg esi, ecx
mov dword [ebp - 4], 0
cld
jmp 0x15bdc02
loop 0x15b95d4
jmp 0x15dddcc
jmp 0x15bdc3d
sub edx, edx
sbb ecx, eax
xor cx, dx
xadd ch, cl
mov edx, dword fs:[edx + 0x30]
btc ecx, edx
bsf si, sp
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
stc
sar si, 0x3b
mov esi, esp
mov esi, dword [edx + 0x28]
xchg cl, cl
cmovbe ecx, ebp
sal cl, cl
push 0x18
shl cx, 0xfa
pop ecx
cmp di, dx
xor edi, edi
test sp, di
sub eax, eax
mov al, 0xf9
lodsb al, byte [esi]
cmc
jmp 0x15d7a59
mov ebx, dword [edx + 0x10]
jmp 0x15d2db3
mov edx, dword [edx]
jne 0x15bdc24
mov eax, ebx
jmp 0x15f8298
cmp al, 0x61
jmp 0x160f6da
cmp edi, 0x6a4abc5b
bswap bx
jmp 0x15c9786
mov dword [ebp - 4], eax
cbw
movzx ax, bh
mov eax, dword [ebp - 4]
jmp 0x1618773
jl 0x160f6e3
sub al, 0x20
clc
ror edi, 0xd
test sp, di
add edi, eax
jmp 0x15b95cd
jmp 0x159b65f
Function at 0x9fa058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009fa1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9fa07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9fa06a
add dl, dl
jne 0x9fa089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9fa0dc
xor eax, eax
add dl, dl
jne 0x9fa096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9fa17d
add dl, dl
jne 0x9fa0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9fa0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9fa0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9fa0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9fa0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9fa075
mov eax, 1
add dl, dl
jne 0x9fa0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9fa0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9fa0e1
sub eax, ebx
mov ebx, 1
jne 0x9fa128
mov ecx, 1
add dl, dl
jne 0x9fa10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9fa119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9fa105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9fa075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9fa13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9fa14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9fa136
cmp eax, 0x7d00
jae 0x9fa16d
cmp eax, 0x500
jb 0x9fa168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9fa075
cmp eax, 0x7f
ja 0x9fa170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9fa075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9fa19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9fa075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401569
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
je 0x4015ee
push 0x55d658
push dword [ebp + 8]
call dword [sym.imp.MSVCR90.dll_fopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4015ee
push esi
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push edi
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCR90.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
mov ecx, dword [ebp + 0xc]
add esp, 0x20
mov dword [ecx], eax
test eax, eax
je 0x4015d0
push ebx
push 1
push edi
push eax
call dword [sym.imp.MSVCR90.dll_fread]
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov dword [eax], edi
jmp 0x4015d6
mov eax, dword [ebp + 0x10]
and dword [eax], 0
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
push dword [ebp + 8]
call dword [sym.imp.MSVCR90.dll_remove]
pop ecx
pop ecx
pop edi
xor eax, eax
pop esi
jmp 0x4015f1
or eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x407d58
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x798]
sub esp, 0x818
mov eax, dword [0x58b7c8]
xor eax, ebp
mov dword [ebp + 0x794], eax
and dword [ebp - 0x74], 0
push 0
push 0x58c1a0
call dword [sym.imp.MSVCR90.dll__open]
pop ecx
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x407e3e
push ebx
push esi
push edi
push 2
push 0xfffff800
push eax
call dword [sym.imp.MSVCR90.dll__lseek]
mov esi, dword [sym.imp.MSVCR90.dll__read]
mov edi, dword [sym.imp.MSVCR90.dll_strtok]
add esp, 0xc
mov ebx, 0x55d6b4
push 1
lea eax, [ebp - 0x6d]
push eax
push dword [ebp - 0x78]
mov byte [ebp - 0x6c], 0
call esi
add esp, 0xc
jmp 0x407def
cmp byte [ebp - 0x6d], 0xa
je 0x407df6
push 1
lea eax, [ebp - 0x6d]
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.MSVCR90.dll_strncat]
push 1
lea eax, [ebp - 0x6d]
push eax
push dword [ebp - 0x78]
call esi
add esp, 0x18
mov dword [ebp - 0x7c], eax
test eax, eax
jg 0x407dcb
lea eax, [ebp - 0x6c]
push ebx
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x407e2b
push ebx
push 0
mov dword [ebp - 0x80], eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x407e03
cmp dword [ebp - 0x80], eax
je 0x407e2b
lea eax, [ebp - 0x74]
push eax
push str.CheckSum_X
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
cmp dword [ebp - 0x7c], 0
jg 0x407db7
push dword [ebp - 0x78]
call dword [sym.imp.MSVCR90.dll__close]
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x794]
mov eax, dword [ebp - 0x74]
xor ecx, ebp
call fcn.00472edc
add ebp, 0x798
leave
ret