joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425020
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x46d0c4]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp + 0x10], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x1c], eax
push 0x457d24
mov eax, dword [ebp + 8]
push eax
push 0x46d058
mov ecx, 0x46e2a4
call fcn.004286b0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x46e2d4], eax
mov ecx, dword [0x457c20]
mov dword [ebp - 0xc], ecx
mov dx, word [0x457c24]
mov word [ebp - 8], dx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004254e0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x425138
push str.UnregServer
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4250e3
push 0
push 0
push 0x64
push 0x46e2a4
call fcn.0042b710
push 0
push 1
mov ecx, 0x46e2a4
call fcn.0042ae20
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
jmp 0x425138
push str.RegServer
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x425120
push 0
push 1
push 0x64
push 0x46e2a4
call fcn.0042b710
push 0
push 1
mov ecx, 0x46e2a4
call fcn.00429a30
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
jmp 0x425138
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004254e0
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x42509c
cmp dword [ebp - 0x14], 0
je 0x42519a
mov eax, dword [ebp + 8]
push eax
call fcn.00425430
add esp, 4
mov ecx, 0x46e2a4
call fcn.00425380
push 1
push 4
mov ecx, 0x46e2a4
call fcn.00429670
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x425185
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x425165
mov ecx, 0x46e2a4
call fcn.0042a910
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x46e2a4
call fcn.0042acf0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fca3
mov esp, ebp
pop ebp
ret 0x10

Function at 0x425380
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x34], 0
jne 0x4253aa
xor al, al
jmp 0x4253df
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x4253f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4253d5
mov dword [ebp - 8], 1
jmp 0x4253dc
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x425430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x425410
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], str.__HiddenWndClassName__
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x46e2a0], eax
push 0
mov ecx, dword [0x46e2a0]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x4290b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x46d0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], ecx
push 0
lea ecx, [ebp - 0x21c]
call fcn.0040c510
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0040e3f0
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x42912f
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x220], edx
lea ecx, [ebp - 0x21c]
call fcn.0040c830
mov eax, dword [ebp - 0x220]
jmp 0x4291e4
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4291b3
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004290b0
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x4291a7
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x21c]
call fcn.0040c830
mov eax, dword [ebp - 0x224]
jmp 0x4291e4
mov dword [ebp - 0x210], 0x100
jmp 0x429139
lea ecx, [ebp - 0x21c]
call fcn.0040d2f0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20c]
call fcn.00428120
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x21c]
call fcn.0040c830
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fca3
mov esp, ebp
pop ebp
ret 4

Function at 0x4292c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x42931f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4292ec
mov eax, 1
jmp 0x42933d
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42931d
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x42933d
jmp 0x429338
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x429338
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x42933d
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x42a9b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
xor eax, eax
jne 0x42a9b9
cmp dword [ebp + 0xc], 0
je 0x42a9cc
mov dword [ebp - 0x10], 1
jmp 0x42a9d3
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x42a9e6
mov eax, 0xd
jmp 0x42aa43
xor edx, edx
jne 0x42a9bd
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004357f6
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx*2]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 1
jne 0x42a9f7
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x42aa50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x42aa59
cmp dword [ebp + 0xc], 0
je 0x42aa6c
mov dword [ebp - 4], 1
jmp 0x42aa73
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x42aa86
mov eax, 0xd
jmp 0x42aab5
xor edx, edx
jne 0x42aa5d
mov eax, dword [ebp + 0xc]
push eax
call fcn.004357f6
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xc275166
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4a9f78a4
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4021d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0x67a7
mov byte [esp + 0x77], 0x25
mov dword [esp + 0x70], 0x1e3
mov byte [esp + 0x33], 0xeb
mov dl, 0xeb
mov dword [esp + 0x6c], eax
movzx eax, word [esp + 0x7e]
mov si, ax
and eax, 0x713
mov di, ax
mov word [esp + 0x7e], di
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
add ecx, 0xffffefc0
adc ebx, 0xffffffff
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x7e], 0x703e
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
imul eax, eax, 0x2b03
add ecx, 0xfffffe2b
mov dword [esp + 0x78], eax
mov eax, esp
mov dword [eax + 8], ecx
lea ecx, [esp + 0x44]
mov dword [eax], ecx
mov dword [eax + 4], 0x4010c3
mov byte [esp + 0x2b], dl
mov word [esp + 0x28], si
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
call fcn.00401e70
sub esp, 0xc
xor eax, eax
mov ecx, 0x1806
mov edi, dword [esp + 0x20]
sub ecx, edi
mov edi, dword [esp + 0x24]
sbb eax, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jb 0x4022bc
jmp 0x4022bc
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [ecx], eax
call fcn.00402590
sub esp, 4
mov dl, byte [esp + 0x77]
xor dl, 0xa1
mov dword [esp + 0x34], eax
mov dh, byte [esp + 0x2b]
cmp dh, dl
jne 0x4022df
mov eax, dword [esp + 0x70]
mov dx, word [esp + 0x28]
mov cx, dx
mov esi, ecx
add esi, 0x206a
mov di, si
mov word [esp + 0x7e], di
add eax, 0x83e1d
mov esi, dword [esp + 0x34]
mov ebx, esp
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], 0x40
mov dword [ebx + 8], 0x1000
mov dword [ebx], 0
mov dword [esp + 0x14], ecx
call esi
sub esp, 0x10
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x70]
mov esi, 0x4001e3
sub esi, ecx
mov ecx, dword [esp + 0x6c]
mov ebx, esp
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov dword [esp + 0x10], esi
call fcn.004023b0
sub esp, 8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov esi, dword [esp + 0x14]
not esi
mov dx, si
mov word [esp + 0x7e], dx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x68]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
mov dword [eax + 0x58], esi
mov eax, dword [esp + 0x14]
or eax, 0x5b2b
mov dx, ax
mov eax, dword [esp + 0x2c]
add eax, 0x2860
mov word [esp + 0x7e], dx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x585e5d71
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x526659ae
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x403cd0
Capabilities:
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x834
cmp dword [0x283d638], 0x400
push ebx
push esi
push edi
jne 0x403dc1
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
lea eax, [esp + 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DrawStateA]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
call fcn.004043f0
add esp, 4
push 0
push 0
call fcn.0040487f
push 0
push 0
call fcn.004043b0
push 0
push 0
call fcn.004046b6
push 0
call fcn.00404bee
add esp, 0x1c
push 0
push 0
push 0
call fcn.00404b05
fldz
push ecx
fst qword [esp + 8]
fstp qword [esp]
call fcn.00404050
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00404090
fstp st(0)
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00404590
fstp st(0)
push 0
call fcn.00404c62
add esp, 0xc
push 0
push 0
call fcn.00404340
push 0
call fcn.0040492c
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
lea esp, [esp]
push 0
push 0
push 0
push 0
call edi
cmp esi, 0x4f4d0c6
jg 0x403deb
inc esi
cmp esi, 0x34476d9
jl 0x403dd0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
call edi
call ebx
cmp esi, 0x12e82fe
jg 0x403e15
inc esi
cmp esi, 0x3011b
jl 0x403e00
mov ecx, dword [0x444c54]
mov dword [0x283d638], ecx
call fcn.004039e0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, 0x2ec37
cmp dword [0x283d638], 0x51f
jne 0x403e46
lea edx, [esp + 0x40]
push edx
push 0
call esi
dec edi
jne 0x403e31
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406e20
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4417c4]
jne 0x406e2a
repz ret
jmp fcn.0040bafc
Function at 0x40d7e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4417c4]
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.0040582e
and dword [ebp - 0x14], 0
cmp dword [0x4597ec], 0
mov dword [ebp - 0x18], eax
jne 0x40d896
push 0x403444
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d93e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403438
push ebx
call edi
test eax, eax
je 0x40d93e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403428
push ebx
mov dword [0x4597ec], eax
call edi
push eax
call esi
push 0x403414
push ebx
mov dword [0x4597f0], eax
call edi
push eax
call esi
push 0x4033f8
push ebx
mov dword [0x4597f4], eax
call edi
push eax
call esi
mov dword [0x4597fc], eax
test eax, eax
je 0x40d896
push 0x4033e0
push ebx
call edi
push eax
call esi
mov dword [0x4597f8], eax
mov eax, dword [0x4597f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d8ef
cmp dword [0x4597fc], ecx
je 0x40d8ef
push eax
call esi
push dword [0x4597fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d8ef
test ebx, ebx
je 0x40d8ef
call edi
test eax, eax
je 0x40d8e6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d8e6
test byte [ebp - 8], 1
jne 0x40d8ef
or dword [ebp + 0x10], 0x200000
jmp 0x40d922
mov eax, dword [0x4597f0]
cmp eax, dword [ebp - 0x18]
je 0x40d922
push eax
call esi
test eax, eax
je 0x40d922
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d922
mov eax, dword [0x4597f4]
cmp eax, dword [ebp - 0x18]
je 0x40d922
push eax
call esi
test eax, eax
je 0x40d922
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4597ec]
call esi
test eax, eax
je 0x40d93e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d940
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e20
leave
ret
Function at 0x401150
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push edi
test cl, 3
jne 0x401288
cmp ecx, 3
jbe 0x40127f
mov edi, 3
nop word [eax + eax]
xor edx, edx
add eax, edi
mov al, byte [eax + edx - 3]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x401194
sub al, 0x41
jmp 0x4011c9
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x4011a0
sub al, 0x47
jmp 0x4011c9
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x4011ac
add al, 4
jmp 0x4011c9
cmp al, 0x2b
jne 0x4011b7
mov byte [ebp + edx - 8], 0x3e
jmp 0x4011d5
cmp al, 0x2f
jne 0x4011c2
mov byte [ebp + edx - 8], 0x3f
jmp 0x4011d5
cmp al, 0x3d
setne al
add al, 0x40
mov byte [ebp + edx - 8], al
cmp al, 0x40
ja 0x401288
mov eax, dword [ebp - 0xc]
inc edx
cmp edx, 4
jb 0x401182
mov eax, dword [ebp - 8]
mov dl, ah
shr dl, 4
mov cl, al
shl cl, 2
and dl, 3
or dl, cl
mov ecx, dword [esi + 4]
mov byte [ebp - 1], dl
cmp ecx, dword [esi + 8]
je 0x401202
mov byte [ecx], dl
inc dword [esi + 4]
jmp 0x401211
lea eax, [ebp - 1]
push eax
push ecx
mov ecx, esi
call fcn.00402450
mov eax, dword [ebp - 8]
mov bl, byte [ebp - 6]
cmp bl, 0x40
jae 0x401270
mov cl, bl
shl ah, 4
shr cl, 2
and cl, 0xf
or cl, ah
mov eax, dword [esi + 4]
mov byte [ebp - 1], cl
cmp eax, dword [esi + 8]
je 0x401238
mov byte [eax], cl
inc dword [esi + 4]
jmp 0x401244
lea ecx, [ebp - 1]
push ecx
push eax
mov ecx, esi
call fcn.00402450
mov al, byte [ebp - 5]
cmp al, 0x40
jae 0x401270
mov ecx, dword [esi + 4]
and al, 0x3f
shl bl, 6
or al, bl
mov byte [ebp - 1], al
cmp ecx, dword [esi + 8]
je 0x401264
mov byte [ecx], al
inc dword [esi + 4]
jmp 0x401270
lea eax, [ebp - 1]
push eax
push ecx
mov ecx, esi
call fcn.00402450
mov eax, dword [ebp - 0xc]
add edi, 4
cmp edi, dword [ebp + 8]
jb 0x401180
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 0x404470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
push 0xa
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push 1
push eax
mov dword [ebp - 0x18], edx
call fcn.0041198e
add esp, 0x10
cmp eax, 0xa
jne 0x40462c
lea ecx, [ebp - 0x10]
mov eax, dword [ecx]
cmp eax, dword [str.Pssc_r_n]
jne 0x40462c
mov eax, dword [ecx + 4]
cmp eax, dword [0x4328f4]
jne 0x40462c
push ebx
push 1
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.0041198e
add esp, 0x10
cmp eax, 1
jne 0x40462c
push ebx
push eax
push 2
push esi
call fcn.0041198e
add esp, 0x10
cmp eax, 1
jne 0x40462c
push ebx
push eax
push 2
push edi
call fcn.0041198e
add esp, 0x10
cmp eax, 1
jne 0x40462c
push ebx
push eax
push 4
push dword [ebp - 0x20]
call fcn.0041198e
add esp, 0x10
cmp eax, 1
jne 0x40462c
push ebx
push eax
push 4
push dword [ebp - 0x1c]
call fcn.0041198e
add esp, 0x10
cmp eax, 1
jne 0x40462c
push ebx
push eax
push 4
push dword [ebp - 0x24]
call fcn.0041198e
add esp, 0x10
cmp eax, 1
jne 0x40462c
push ebx
push 4
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041198e
add esp, 0x10
cmp eax, 4
jne 0x40462c
movzx ecx, word [edi]
cmp cx, word [esi]
jb 0x40462c
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax]
cmp eax, dword [edx]
jb 0x40462c
mov eax, 0xf000
cmp cx, ax
ja 0x40462c
mov ecx, dword [ebp - 0x18]
movzx esi, word [ebp - 0x14]
mov edi, dword [ecx + 4]
mov edx, edi
mov eax, dword [ecx]
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x4045c7
lea edi, [eax + esi*4]
jmp 0x4045fa
jbe 0x4045fd
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
sar eax, 2
cmp esi, eax
jbe 0x4045e4
push ecx
push esi
call fcn.00404bc0
mov ecx, dword [ebp - 0x18]
mov edi, dword [ecx + 4]
jmp 0x4045fd
sub esi, edx
shl esi, 2
push esi
push 0
push edi
call fcn.0040e700
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add edi, esi
mov dword [ecx + 4], edi
mov eax, dword [ecx]
cmp eax, edi
je 0x404619
sub edi, eax
push ebx
sar edi, 2
push edi
push 4
push eax
call fcn.0041198e
add esp, 0x10
cmp eax, edi
jne 0x40462c
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cda1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cda1
mov esp, ebp
pop ebp
ret