joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401451
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x32000
mov esi, ecx
cmp eax, ecx
ja 0x40146e
mov esi, eax
push 2
push 0
mov eax, esi
neg eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4014a9
push 0
lea eax, [ebp - 4]
push eax
push esi
push 0xb522d0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4014a9
push dword [ebp - 4]
call fcn.004013d9
pop ecx
jmp 0x4014ab
xor al, al
pop esi
leave
ret

Function at 0x4014ae
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 2
xor ebx, ebx
push ebx
mov esi, 0x9311d0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, ebx
je 0x40155e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x22
pop eax
push esi
mov word [0x92c1d0], ax
xor eax, eax
mov esi, 0x92c1d0
push esi
mov word [0x92c1d2], ax
call edi
push 0x403280
push esi
call edi
cmp word [0x8f0028], bx
je 0x401510
push 0x8f0028
push esi
call edi
xor eax, eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x40155e
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov al, 1
jmp 0x401560
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x401aca
Capabilities:
Create thread

Disassembly:
push esi
push 0x190
push 0x404008
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov eax, dword [esp + 8]
xor esi, esi
push esi
mov dword [0x8ff030], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
push esi
push 0x401aa0
push esi
push esi
mov dword [0x404020], eax
mov dword [0x8ff02c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x401bca
Capabilities:
Read http header

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, 0x2800
push edi
mov dword [esp + 0x10], ebx
cmp eax, ebp
je 0x401be4
mov dword [eax], ebp
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push ebp
lea eax, [esp + 0x14]
push eax
mov esi, 0x918108
push esi
push ebp
push 0x2a
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x401cbd
push ebp
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push 0x35
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
call edi
test eax, eax
je 0x401cbd
mov ax, word [0x918108]
cmp ax, bp
je 0x401c47
movzx eax, ax
cmp ax, 0x30
jb 0x401c3d
cmp ax, 0x39
jbe 0x401c47
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bp
jne 0x401c31
push esi
mov esi, 0x913108
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, esi
cmp word [0x913108], bp
je 0x401c75
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x401c75
cmp cx, 0x39
ja 0x401c75
inc eax
inc eax
cmp word [eax], bp
jne 0x401c5f
mov ebx, dword [esp + 0x1c]
mov edi, dword [sym.imp.SHLWAPI.dll_StrToIntW]
xor ecx, ecx
mov word [eax], cx
cmp ebx, ebp
je 0x401cb8
jmp 0x401c96
cmp cx, 0x30
jb 0x401caf
cmp cx, 0x39
ja 0x401ca0
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bp
jne 0x401c8a
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x401caf
cmp cx, 0x39
jbe 0x401cb3
inc eax
inc eax
jmp 0x401ca0
push eax
call edi
mov dword [ebx], eax
push esi
call edi
jmp 0x401cbf
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401db6
Capabilities:
Get file size
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0x40000000
push 0x9311d0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x401eb6
push edi
push dword [ebp + 8]
call fcn.00401bca
pop ecx
pop ecx
cmp eax, edi
je 0x401e05
push edi
push edi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 0xc], edi
mov esi, 0x404008
lea eax, [ebp - 0xc]
push eax
push 0x2800
push 0x945298
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x401e91
cmp dword [ebp - 0xc], edi
jbe 0x401e88
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push 0x945298
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401e91
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x401e91
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
push dword [ebp - 8]
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
push esi
mov dword [0x8ff034], eax
mov dword [0x8ff038], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
jmp 0x401e8c
mov byte [ebp - 1], 1
cmp dword [ebp - 0xc], edi
ja 0x401e15
cmp byte [ebp - 1], 0
je 0x401eab
cmp dword [ebp + 0xc], edi
je 0x401eab
push edi
push dword [ebp - 8]
call ebx
cmp eax, dword [ebp + 0xc]
je 0x401eab
mov byte [ebp - 1], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x40230a
Capabilities:
Create directory
Delete directory
Delete file
Get common file path
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
and dword [esp + 4], 0
cmp dword [0x8ff028], 0
push ebx
push esi
push edi
jl 0x40240d
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x9592d0
mov edi, 0x9311d0
push esi
push 0x2800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push dword [esp + 0x14]
push 0x4033d0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
push eax
push eax
push eax
push eax
push str.Preloader
mov byte [esp + 0x23], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4023ef
and dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x8fa028
cmp byte [esp + 0xf], 0
jne 0x4023de
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4023de
cmp word [eax], 0
je 0x4023de
push dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push eax
push dword [esp + 0x28]
call fcn.00402027
add esp, 0x10
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x64
mov byte [esp + 0xf], al
jl 0x4023a5
push dword [esp + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp byte [esp + 0xf], 0
jne 0x402416
push edi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [0x8ff028]
jle 0x402338
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
jmp 0x40240f
Function at 0x402586
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 8
mov dword [ebp - 0xc], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0xa28
mov esi, 0xb84338
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402671
push esi
call fcn.00401451
pop ecx
push esi
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], bl
je 0x402671
cmp word [0x409028], bx
je 0x402605
mov eax, 0x409028
call fcn.0040158b
call fcn.0040241a
call fcn.004024cb
mov esi, eax
push esi
call fcn.00401aca
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], ebx
call fcn.0040230a
add esp, 0xc
test al, al
je 0x402657
cmp dword [ebp - 8], ebx
je 0x402639
push 1
push ebx
push ebx
push dword [ebp - 8]
jmp 0x402669
call fcn.004014ae
test al, al
je 0x402671
cmp word [0x5fd028], bx
je 0x402671
mov eax, 0x5fd028
call fcn.0040158b
jmp 0x402671
cmp word [0x8f5028], bx
je 0x402671
push 1
push ebx
push ebx
push 0x8f5028
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp word [0x404028], bx
je 0x402685
push 0x404028
call fcn.00401564
pop ecx
call fcn.004015ad
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14d0fa28
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], ebx
call dword [0x14d12300]
test eax, eax
je 0x14d0fb16
cmp dword [ebp - 0xc], 0xc8
jne 0x14d0fb16
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [0x14d12158]
mov esi, eax
cmp esi, 0xffffffff
je 0x14d0fb16
mov byte [ebp - 1], bl
push ebx
push dword [ebp + 0x10]
call dword [0x14d12150]
test eax, eax
je 0x14d0fabc
lea eax, [ebp - 8]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [0x14d122ec]
test eax, eax
jne 0x14d0fac0
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
je 0x14d0faf0
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [0x14d12190]
test eax, eax
je 0x14d0fae7
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x14d0faeb
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
je 0x14d0fa91
push esi
call dword [0x14d121a0]
push esi
call dword [0x14d12140]
cmp byte [ebp - 1], bl
je 0x14d0fb0c
push dword [ebp + 0xc]
call fcn.14d0eab6
pop ecx
xor eax, eax
cmp byte [ebp - 1], bl
sete al
jmp 0x14d0fb18
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0xd1873e9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x4f223157
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x418136
Capabilities:
Encode data using xor

Disassembly:
adc byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
inc ebx
push esi
and byte [eax], ah
sub byte [0xfe505e20], ah
sub ecx, esp
iretd
push 0xffffffffffffff8a
add al, 0x2f
adc ch, bl
sub ch, byte [esi + ebp*2 + 0x35]
jbe 0x41810d
int 0x96
inc edi
pop esp
push eax
test eax, 0x7a9dc7ca
popfd
jp 0x418155
cmpsd dword [esi], dword es:[edi]
popfd
jp 0x418155
cmpsd dword [esi], dword es:[edi]
into
jmp 0x418122
out dx, eax
std
or bl, byte [ecx + 0x3e]
mov ecx, 0xdedf0883
fisttp word [ecx + 0x48]
jmp 0x418197
jno 0x418213
sub eax, 0xc47c7664
add esp, 0x36
fist dword [edx]
inc eax
and byte [edi], dl
sub dword [edi - 0x13], esp
and eax, ebp
neg byte [ecx + 0xb]
xor al, 0x9a
leave
fidivr dword [eax - 0x3e]
cmp al, byte [ebp - 0x37881bdd]
invalid
in eax, 0x61
call 0xac3bde5a
xchg ecx, eax
fisubr word [edx + 0x1a29592a]
xchg edi, eax
out 0x80, al
sbb dword [edi + 0x2b], edx
aaa
sub dword [eax + 0x155bdae9], 0xd2fa2ce6
push eax
out 0x2c, al
mov al, byte [0x78fa1c77]
inc ebp
shl ebp, 1
pop esp
add eax, 0xc73d0fae
mov ebp, 0x42505b36
mov ebp, 0x2e85fc31
mov ebp, 0xf90b224e
or ebx, dword [ecx + 0x67]
push cs
jmp 0x41821d
sal ebx, cl
lahf
xor dword [edx + 0x534b63d6], edi
pushfd
jne 0x4181bc
add byte [edi - 0x316f9b1c], 0xed
movsd dword es:[edi], dword [esi]
inc ebx
ret

Function at 0x4bb7bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33c0
cmp edx, dword [eax]
je 0x4bb7df
add eax, 8
inc ecx
cmp eax, 0x4c3450
jl 0x4bb7d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33c0]
jne 0x4bb90d
mov eax, dword [0x4c8df0]
cmp eax, 1
je 0x4bb8e7
test eax, eax
jne 0x4bb810
cmp dword [0x4c32ec], 1
je 0x4bb8e7
cmp edx, 0xfc
je 0x4bb90d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb847
lea eax, [ebp - 0x1a4]
push 0x4c09e0
push eax
call fcn.004bc1a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc630
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb88a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc630
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c09dc
push edi
call fcn.004be500
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c09c0
push eax
call fcn.004bc1a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc1b0
lea eax, [ebp - 0xa0]
push 0x4c09bc
push eax
call fcn.004bc1b0
push dword [esi + 0x4c33c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc1b0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0994
push eax
call fcn.004be474
add esp, 0x2c
pop edi
jmp 0x4bb90d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33c4]
push 0
push eax
push dword [esi]
call fcn.004bc630
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0xd66160
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd662b0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd66186
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd66172
add dl, dl
jne 0xd66191
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd661e4
xor eax, eax
add dl, dl
jne 0xd6619e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd66285
add dl, dl
jne 0xd661ad
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd661b8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd661c3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd661ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd661da
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd6617d
mov eax, 1
add dl, dl
jne 0xd661f2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd661fd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd661e9
sub eax, ebx
mov ebx, 1
jne 0xd66230
mov ecx, 1
add dl, dl
jne 0xd66216
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd66221
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd6620d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd6617d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd66247
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd66252
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd6623e
cmp eax, 0x7d00
jae 0xd66275
cmp eax, 0x500
jb 0xd66270
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd6617d
cmp eax, 0x7f
ja 0xd66278
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd6617d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd662a6
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 0xd6617d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x40894b
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
and edx, edx
add edx, edi
call fcn.00408975
sub edx, 0xc62c14ff
add edi, 1
xor dword [esi], eax
inc esi
add edx, 1
cmp esi, ecx
jne fcn.0040894b
ret
Function at 0x68281607
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x234
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0x18
mov eax, dword [ebp - 0x34]
mov eax, dword fs:[eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x14
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x236]
mov ecx, 0x1fe
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
jmp 0x68281711
sub dword [ebp - 0xc], 8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 0x2c
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.682814b0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0
jmp 0x682816dc
mov eax, dword [ebp - 0x10]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2c]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
mov dword [esp], eax
call fcn.682815eb
movsx dx, al
mov eax, dword [ebp - 0x10]
mov word [ebp + eax*2 - 0x236], dx
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x30]
jle 0x682816b0
lea eax, [ebp - 0x236]
mov dword [esp], eax
call fcn.6828151c
cmp dword [ebp + 8], eax
jne 0x68281705
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x68281720
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x20]
jne 0x68281683
mov eax, dword [ebp - 0x14]
add esp, 0x234
pop ebx
pop edi
pop ebp
ret
Function at 0x6828172a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x682817d9
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [esp], eax
call fcn.682814db
cmp dword [ebp + 0xc], eax
jne 0x682817d5
mov eax, dword [ebp - 8]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x20]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x682817e4
add dword [ebp - 8], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 8], eax
jb 0x6828178e
cmp dword [ebp - 4], 0
je 0x682817f4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, edx
jmp 0x682817f9
mov eax, 0
leave
ret

Function at 0x685f3760
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.685f42a0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.685f42a0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]