joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410f50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x46400c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x410f99
xorps xmm0, xmm0
or esi, 0xffffffff
movlpd qword [esp + 0x10], xmm0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jmp 0x410fd5
cmp esi, 0xffffffff
jne 0x410fb1
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jmp 0x410fd5
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp esi, 0xffffffff
je 0x410fe5
test esi, esi
je 0x410fe5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
mov edx, edi
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret

Function at 0x411000
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c728
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp byte [ebp + 8], 0
je 0x4110d1
push 0x20019
push str.HKLM64SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.0040d4c0
push esi
push str.ProgramFilesDir
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0040d660
mov ecx, esi
call fcn.0040ae70
test al, al
je 0x41107f
push 1
push str.C:Program_Files
mov ecx, esi
call fcn.0040ac90
push 0
push 0x104
mov ecx, edi
call fcn.0040afa0
push eax
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4110c7
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.__x86_
mov ecx, esi
call fcn.0040ad30
push eax
mov ecx, edi
call fcn.0040acd0
lea ecx, [ebp - 0x14]
call fcn.0040d530
jmp 0x4110fd
push 0
push 0x104
call fcn.0040afa0
push eax
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 1
mov ecx, esi
call fcn.0040ad30
push eax
mov ecx, edi
call fcn.0040ac90
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 4
Function at 0x413730
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0xc]
movq qword [ebp - 0xc], xmm0
call fcn.0040ab20
lea ecx, [ebp - 0xc]
call fcn.0040ac70
test eax, eax
jne 0x41376b
xor edi, edi
jmp 0x4137f9
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x413782
or esi, 0xffffffff
xor edi, edi
jmp 0x4137e9
cmp esi, 0xffffffff
jne 0x41378b
xor edi, edi
jmp 0x4137e9
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4137e9
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040abe0
test al, al
jne 0x4137db
mov ecx, dword [ebp - 0x238]
call fcn.00413540
movzx eax, al
push 0xa
add edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x240]
push eax
push esi
call ebx
test eax, eax
jne 0x4137b0
cmp esi, 0xffffffff
je 0x4137f9
test esi, esi
je 0x4137f9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc]
call fcn.0040ac10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret
Function at 0x414760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c298
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1ec]
test eax, eax
jne 0x41479e
xor al, al
jmp 0x4148eb
cmp byte [esi + 0x201], 2
jae 0x4147b0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
call fcn.0040aae0
push 0x104
push 0
push 0x104
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040afa0
push eax
push dword [esi + 0x1ec]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jne 0x4147f5
push eax
lea ecx, [ebp - 0x18]
call fcn.0040abd0
cmp dword [esi], 0
je 0x41480b
mov eax, dword [esi + 4]
test eax, eax
je 0x41480b
push ecx
push eax
push ecx
mov ecx, esi
call fcn.00417880
mov eax, dword [esi + 0x1f4]
mov ebx, dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x41481e
push eax
call ebx
mov eax, dword [esi + 0x1f8]
test eax, eax
je 0x41482b
push eax
call ebx
mov eax, dword [esi + 0x1bc]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x41483e
push eax
call edi
mov eax, dword [esi + 0x1c0]
test eax, eax
je 0x41484b
push eax
call edi
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x414858
push eax
call edi
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x414869
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x214]
test eax, eax
je 0x41487a
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
push esi
push 0x413bb0
push dword [esi + 0x1ec]
call dword [sym.imp.COMCTL32.dll_RemoveWindowSubclass]
cmp byte [esi + 0x201], 2
jae 0x4148c7
push dword [esi + 0x1ec]
call ebx
cmp byte [esi + 0x201], 0
jne 0x4148c7
lea ecx, [ebp - 0x18]
call fcn.0040ac70
test eax, eax
je 0x4148c7
push dword [esi + 0xdc]
lea ecx, [ebp - 0x18]
call fcn.0040ad30
push eax
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, dword [esi + 0x1fc]
test eax, eax
je 0x4148d8
push eax
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
push 0
mov ecx, esi
call fcn.00418ac0
lea ecx, [ebp - 0x18]
call fcn.0040ac10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret
Function at 0x417030
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cae1
mov eax, dword fs:[0]
push eax
mov eax, 0x11e8
call fcn.0044afc0
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xffffffffffffffff
push str.HKCUSoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
call fcn.0040d4c0
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.0040d520
test eax, eax
jne 0x4170a3
xor bl, bl
jmp 0x41726b
cmp dword [ebp - 0x220], 0
jne 0x417231
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 0x2af9
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
sub esp, 0x1c
lea eax, [ebp - 0x21c]
xorps xmm0, xmm0
lea ecx, [ebp - 0x234]
movq qword [ebp - 0x234], xmm0
push 0
push 0
push 0
push str.Internet_exploreriexplore.exe
push eax
call fcn.0040ab50
push 0xfbc
lea eax, [ebp - 0x11f4]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00431b40
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.0040ad30
push eax
lea ecx, [ebp - 0x11f4]
call fcn.0040e9c0
sub esp, 0xc
mov byte [ebp - 4], 2
xorps xmm0, xmm0
lea ecx, [ebp - 0x11f4]
movq qword [ebp - 0x22c], xmm0
call fcn.0040ea40
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040ab20
push 2
push 1
push 1
push 1
push 0x4598d8
lea ecx, [ebp - 0x22c]
call fcn.0040b6c0
test eax, eax
je 0x41717c
mov dword [ebp - 0x220], 0x22b8
jmp 0x4171fa
push 2
push 1
push 1
push 1
push 0x4598e0
lea ecx, [ebp - 0x22c]
call fcn.0040b6c0
test eax, eax
je 0x4171a4
mov dword [ebp - 0x220], 0x270f
jmp 0x4171fa
push 3
push 1
push 1
push 1
push 0x4598e8
lea ecx, [ebp - 0x22c]
call fcn.0040b6c0
test eax, eax
je 0x4171cc
mov dword [ebp - 0x220], 0x2711
jmp 0x4171fa
push 3
push 1
push 1
push 1
push 0x4598f0
lea ecx, [ebp - 0x22c]
call fcn.0040b6c0
mov ecx, dword [ebp - 0x220]
test eax, eax
mov edx, 0x2ee1
cmovne ecx, edx
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x22c]
call fcn.0040ac10
lea ecx, [ebp - 0x240]
call fcn.0040ac10
lea ecx, [ebp - 0x248]
call fcn.0040ac10
lea ecx, [ebp - 0x250]
call fcn.0040ac10
lea ecx, [ebp - 0x234]
call fcn.0040ac10
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
push 0
lea eax, [ebp - 0x220]
push eax
push 4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040d9a0
mov bl, al
lea ecx, [ebp - 0x224]
call fcn.0040d530
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 4
Function at 0x417fa0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x3c], eax
cmp edi, 0xffffffff
jne 0x417fc6
mov edi, dword [esi + 4]
push edi
call fcn.004182f0
test al, al
jne 0x417fe5
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x1f4], 0
jne 0x417ff7
call fcn.00418800
test al, al
je 0x417fd0
push 0x30
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00431b40
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [edi + edi*8]
shl ecx, 3
add esp, 0xc
mov dword [ebp - 0x38], ecx
add ecx, dword [esi]
mov dword [ebp - 0x34], 0x30
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
cmp dword [ecx], 0x1c
jne 0x418065
push 0
push edi
push 0x419
mov dword [ebp - 0x30], 0x10
push dword [ecx + 4]
call ebx
cmp eax, 0xffffffff
je 0x417fd0
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x38]
push eax
mov eax, dword [esi]
push 0x41d
push dword [eax + ecx + 4]
call ebx
test eax, eax
je 0x417fd0
mov dword [ebp - 0x28], edi
jmp 0x418072
mov dword [ebp - 0x30], 0x11
mov eax, dword [ecx + 4]
mov dword [ebp - 0x28], eax
push 0x186a0
push 0
push 0x418
push dword [esi + 0x1f4]
call ebx
mov eax, dword [esi + 0xdc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x432
push dword [esi + 0x1f4]
call ebx
mov ecx, dword [ebp - 4]
cmp eax, 1
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 0x10

Function at 0x418e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 2
push 0
push 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418ed4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp - 8]
push ebx
push edi
call fcn.00418c60
test eax, eax
je 0x418f0a
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x418f0a
push 0
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4190d0
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x50
mov edi, edx
mov esi, ecx
call fcn.0042cf6f
add esp, 4
mov dword [ebp - 8], eax
mov ecx, eax
call fcn.00418f30
push 0x50
mov ebx, eax
push 0
push ebx
call fcn.00431b40
add esp, 0xc
lea ecx, [ebx + 0x30]
push esi
call fcn.0040ab90
push edi
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x1c], 3
call fcn.0040ab90
push str.http:__www.carifred.com
lea ecx, [ebx + 0x38]
call fcn.0040ab90
lea ecx, [ebx + 0x40]
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_44.0.2403.125_Safari_537.36
call fcn.0040ab90
push 0
lea ecx, [ebx + 0x28]
call fcn.0040ac00
movzx eax, word [eax]
cmp eax, 0x22
je 0x41917f
cmp eax, 0x5c
je 0x41917f
push 2
push 2
push 1
push 1
push 0x458f58
lea ecx, [ebx + 0x28]
call fcn.0040b6c0
test eax, eax
je 0x41917f
sub esp, 0x28
lea ecx, [ebx + 0x28]
push 0
push 0x458f48
call fcn.0040bc80
push 0
push 0
push ebx
push 0x419240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x48], eax
test eax, eax
jne 0x4191e2
lea ecx, [ebx + 0x40]
call fcn.0040ac10
lea ecx, [ebx + 0x38]
call fcn.0040ac10
lea ecx, [ebx + 0x30]
call fcn.0040ac10
lea ecx, [ebx + 0x28]
call fcn.0040ac10
lea ecx, [ebx + 0x20]
call fcn.0040ac10
push 0x50
push ebx
call fcn.0042d7f2
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea ecx, [ebp - 8]
push ecx
push eax
call esi
test eax, eax
je 0x41921f
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
cmp dword [ebp - 8], 0x103
jne 0x41921f
call fcn.0040c7b0
push 0xa
call edi
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x48]
call esi
test eax, eax
jne 0x419200
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419720
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x3c
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00431b40
add esp, 0xc
mov ecx, esi
push 0
push 0x400
call fcn.0040afa0
push 0
push 0x400
mov ecx, ebx
call fcn.0040afa0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
call fcn.0040aae0
push 0
push 0x400
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040afa0
mov ecx, esi
mov dword [ebp - 0x54], 0x3c
call fcn.0040ad30
mov ecx, ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x400
call fcn.0040ad30
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x400
call fcn.0040ad30
mov dword [ebp - 0x20], eax
mov ecx, edi
lea eax, [ebp - 0x54]
mov dword [ebp - 0x1c], 0x400
push eax
push 0
call fcn.0040c840
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov byte [ebp - 0x55], al
test al, al
je 0x419826
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.0040ad30
push eax
mov ecx, ebx
call fcn.0040b970
mov ecx, dword [ebp - 0x5c]
mov ax, word [ebp - 0x3c]
mov word [ecx], ax
lea ecx, [ebp - 0x18]
call fcn.0040ac10
mov al, byte [ebp - 0x55]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 8
Function at 0x419e40
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4576d0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4576d0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x419ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x419f7c
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x419f2d
cmp dword [esi + 0x40], edi
jae 0x419f2d
push eax
call fcn.0042cfa2
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x419f45
lea eax, [edi + edi]
push eax
call fcn.0042cfa7
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.00431ce0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x419f79
lea ecx, [esi + 0x30]
nop dword [eax + eax]
mov eax, dword [esi + 0x3c]
mov dl, byte [ebx + eax]
call fcn.00419eb0
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x419f60
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x419fbc
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x419f97
mov dword [esi + 0x14], 0x30000
jmp 0x419fef
push edi
add ecx, edx
push ebx
push ecx
call fcn.00431ce0
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x419fe8
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 8
Function at 0x41bba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41bbab
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x41bc67
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4576d0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4576d0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4576d0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4576d0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4576d0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4576d0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4576d0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4576d0]
sub edi, 1
jne 0x41bbc0
pop edi
test esi, esi
je 0x41bc8a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4576d0]
sub esi, 1
jne 0x41bc70
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x41c4d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x41c516
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c511
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x41c53e
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x41c527
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.00431ce0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret
Function at 0x41d4c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x41d564
cmp dword [esi + 4], 0xffffffff
jne 0x41d564
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d4f2
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x41d526
cmp eax, 0x2f
je 0x41d526
push 0x45876c
push 0x104
push edi
call fcn.00439c54
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041c320
add esp, 8
test eax, eax
jne 0x41d545
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.0041c880
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41dc30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x41dc62
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41dc62
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x41dd23
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x41dc7f
cmp ax, 0x5c
jne 0x41dc81
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41dc73
cmp esi, ebx
je 0x41dcca
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.00431ce0
add esp, 0xc
cmp esi, 0x208
jae 0x41dd33
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.0041dc30
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x41dced
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00439d23
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00439c54
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41dd23
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret
call fcn.0042d64d
int3