joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4171a0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x627429
mov eax, dword fs:[0]
push eax
mov eax, 0x1708
call fcn.00554810
mov eax, dword [0x6aab00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0xfe
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.00551e50
push 0x3ff
lea ecx, [ebp - 0x70f]
push ebx
push ecx
mov byte [ebp - 0x710], bl
call fcn.00551e50
push 0xfe
lea edx, [ebp - 0x20f]
push ebx
push edx
mov byte [ebp - 0x210], bl
call fcn.00551e50
push 0xfe
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.00551e50
mov eax, dword [edi + 0x68]
push 0xff
lea ecx, [ebp - 0x310]
push ecx
push 0xff
lea edx, [ebp - 0x210]
push edx
push 0x400
lea ecx, [ebp - 0x710]
push ecx
push 0xff
lea edx, [ebp - 0x110]
push edx
push eax
call fcn.00550a79
lea eax, [ebp - 0x210]
add esp, 0x54
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417278
sub eax, edx
push eax
lea eax, [ebp - 0x210]
push eax
mov ecx, 0x6b9888
call fcn.00401a60
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4172a0
sub eax, edx
push eax
lea ecx, [ebp - 0x110]
push ecx
mov ecx, 0x6b9884
call fcn.00401a60
lea eax, [ebp - 0x710]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4172c4
sub eax, edx
push eax
lea edx, [ebp - 0x710]
push edx
mov ecx, 0x6b9884
call fcn.00403160
mov eax, dword [0x6b9884]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x6b9884
mov ecx, 0x6b9884
call fcn.004017f0
push 0x1000
lea ecx, [ebp - 0x1710]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
or esi, 0xffffffff
test byte [0x6babb4], 1
jne 0x417344
or dword [0x6babb4], 1
lea edx, [ebp - 0x1710]
push edx
mov ecx, 0x6babb0
mov dword [ebp - 4], ebx
call fcn.004016c0
push 0x62a9e0
call fcn.0054d902
add esp, 4
mov dword [ebp - 4], esi
mov eax, dword [0x6babb0]
push 0x2e
push eax
call fcn.0054dca1
add esp, 8
cmp eax, ebx
jne 0x41735c
mov eax, esi
jmp 0x417362
sub eax, dword [0x6babb0]
push eax
lea ecx, [ebp - 0x1714]
push ecx
mov ecx, 0x6babb0
call fcn.00406530
push eax
mov ecx, 0x6babb0
mov dword [ebp - 4], 1
call fcn.004017f0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x1714]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x4173a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 4
push str..ini
mov ecx, 0x6babb0
call fcn.00403160
mov ecx, dword [edi + 0x6c]
push ecx
call fcn.0054d5eb
mov edx, dword [0x6babb0]
push edx
call fcn.00550a27
add esp, 8
mov dword [edi + 0x6c], eax
cmp eax, ebx
jne 0x4173dc
xor ecx, ecx
jmp 0x4173ea
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4173e1
sub ecx, esi
push ecx
push eax
mov ecx, 0x6ba8ec
call fcn.00401a60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054cec4
mov esp, ebp
pop ebp
ret
Function at 0x417420
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6273f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
push 0x66b5f4
push eax
call fcn.004013d0
mov edi, eax
lea esi, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.004046d0
push edi
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 1
call fcn.00402d70
add esp, 0x14
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41749c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4174bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4175b4
call fcn.0044ce39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4174ec
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x85
lea ecx, [ebp - 0x10]
push 0x66b610
push ecx
mov byte [ebp - 4], 5
call fcn.00405900
add esp, 0xc
call fcn.0045168a
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + 0x44]
push str.EXTERNAL
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call fcn.0045168a
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x44]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.0045168a
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x44]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test edi, edi
je 0x417591
mov eax, dword [ebp - 0x14]
push 0x663e80
push eax
call fcn.0054cf8f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x417591
push ebx
push 1
push esi
push edi
call fcn.0054d490
push ebx
call fcn.0054d577
add esp, 0x14
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4175b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4175da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417880
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
jmp 0x41789b
lea eax, [ebp - 4]
push eax
call fcn.00416ae0
mov ebx, dword [ebp - 4]
add esp, 4
push ebx
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0xbc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x417940
mov ecx, dword [esi + 0xbc]
push 4
push 0
push 0
push 0xf001f
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x41790b
mov edx, dword [edi]
push 0x201
push 0
push 0x464
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417934
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp 0x417952
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41796e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419540
Capabilities:
Inspect load icon resource
Read .ini file
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62896b
mov eax, dword fs:[0]
push eax
mov eax, 0x400c
call fcn.00554810
mov eax, dword [0x6aab00]
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
jmp 0x419586
test esi, esi
jne 0x41958e
xor edi, edi
jmp 0x419591
mov edi, dword [esi + 0x20]
call fcn.0045168a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xbc]
push 4
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4195be
push eax
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x3fff
lea ecx, [ebp - 0x400f]
push 0
push ecx
mov byte [ebp - 0x4010], 0
call fcn.00551e50
add esp, 0xc
lea edx, [esi + 0x20c]
push edx
lea ecx, [esi + 0x204]
call fcn.004017f0
mov edi, dword [esi + 0x204]
mov ecx, dword [0x6b9888]
push edi
push 0x4000
lea eax, [ebp - 0x4010]
push eax
push ecx
push str.MainWndTitle
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x4010]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419620
sub eax, edx
mov ecx, esi
jne 0x419636
mov edx, dword [0x6b9888]
push edx
jmp 0x41963d
lea eax, [ebp - 0x4010]
push eax
call fcn.00459256
call fcn.0044ce39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41965c
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4014], eax
lea ecx, [ebp - 0x4014]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0045706c
mov edx, dword [esi + 0x20]
mov ebx, dword [ebp - 0x4014]
lea edi, [esi + 0x240]
mov dword [edi], 0x1fc
mov dword [esi + 0x248], 1
mov dword [esi + 0x24c], 7
mov dword [esi + 0x244], edx
mov dword [esi + 0x250], 0x464
call fcn.0045168a
call fcn.0045168a
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x40
mov dword [esi + 0x254], eax
lea eax, [esi + 0x258]
push ebx
push eax
call fcn.00550c80
add esp, 0xc
push edi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
call fcn.00419ac0
test eax, eax
je 0x41973e
push esi
call fcn.00419fa0
test eax, eax
je 0x41973e
mov ecx, esi
call fcn.0041a340
test eax, eax
je 0x41973e
mov edi, esi
call fcn.00419b30
test eax, eax
je 0x41973e
mov ecx, esi
call fcn.0041aa20
mov ecx, esi
call fcn.0041b2e0
push esi
call fcn.0041a800
mov esi, dword [esi + 0x20]
call fcn.00416160
mov dword [eax + 8], esi
jmp 0x419750
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4014]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419779
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 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.0054cec4
mov esp, ebp
pop ebp
ret
Function at 0x419990
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x617118
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
or dword [esi + 0x24c], 4
call fcn.0045168a
call fcn.0045168a
mov eax, dword [eax + 0xc]
xor ecx, ecx
test edi, edi
setne cl
lea ecx, [ecx + ecx + 0x95]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esi + 0x254], eax
test ebx, ebx
je 0x419a08
test edi, edi
je 0x419a08
push 0x100
lea edx, [esi + 0x258]
push ebx
push edx
call fcn.00550e76
add esp, 0xc
jmp 0x419a96
call fcn.0044ce39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x419a22
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0045706c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x419a5b
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.004018c0
mov eax, dword [ebp - 0x10]
push 0x100
push eax
lea eax, [esi + 0x258]
push eax
call fcn.00550e76
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419a96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0x240
push esi
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a800
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62880a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x204]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0xffffffffffffffff
push str.AutoRunTime
push str.AutoRun
call esi
mov dword [ebp - 0x18], eax
test eax, eax
js 0x41a987
mov eax, dword [edi + 0x204]
push eax
push 0
push str.PrimaryMacro
push str.AutoRun
call esi
mov esi, eax
call fcn.00416160
mov edi, eax
mov ebx, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
sub ecx, ebx
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x41a987
mov eax, esi
imul eax, eax, 0x54
mov eax, dword [eax + ebx + 0x3c]
sub eax, 0x10
push eax
call fcn.00401780
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jle 0x41a9a2
test esi, esi
jns 0x41a8c3
xor esi, esi
push 0x1f0
call fcn.0044cd98
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x41a910
mov ecx, dword [ebp + 8]
imul esi, esi, 0x54
mov eax, dword [ecx + 0x20]
add esi, dword [edi + 0x18]
push eax
mov eax, dword [esi + 0x38]
push ecx
sub eax, 0x10
mov dword [ebp - 0x1c], esp
mov edi, esp
push eax
call fcn.00401780
mov edx, dword [ebp - 0x18]
add esp, 4
push ebx
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.0040d390
mov esi, eax
jmp 0x41a912
xor esi, esi
mov byte [ebp - 4], 0
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], esi
call fcn.0041d770
mov byte [ebp - 4], 2
test esi, esi
je 0x41a93f
lea edi, [esi + 0x98]
test edi, edi
je 0x41a93f
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00417ac0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x170]
call eax
cmp eax, 2
mov byte [ebp - 4], 0
lea eax, [ebp - 0x20]
jne 0x41a99d
call fcn.0040e510
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a987
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0040e510
mov ecx, dword [ebp + 8]
push 6
call fcn.00459321
mov esi, dword [ebp - 0x14]
push ecx
add esi, 0xfffffff0
mov dword [ebp + 8], esp
mov edi, esp
push esi
call fcn.00401780
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 4
call fcn.00416160
push eax
mov byte [ebp - 4], 0
call fcn.00411de0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a9fb
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x422c40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6249f8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x6aab00]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00423090
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.004230f0
add esp, 0x10
push 0x69c130
lea eax, [esp + 0x30]
push eax
call fcn.00551b4a
int3
Function at 0x424400
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6694f0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x6694f0]
mov dword [edx + 8], ecx
ret

Function at 0x424490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [esi + 0x2d], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, eax
je 0x42450d
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4244bc
cmp dword [esi + 0x40], ebx
jae 0x4244bc
push eax
call fcn.0044cdc7
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x4244d4
lea eax, [ebx + ebx]
push eax
call fcn.0044cd98
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
mov ecx, dword [esi + 0x3c]
push ebx
push edi
push ecx
call fcn.005544a0
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x42450a
lea edx, [esi + 0x30]
jmp 0x4244f0
mov eax, dword [esi + 0x3c]
mov bl, byte [edi + eax]
call fcn.00424450
mov ecx, dword [esi + 0x3c]
mov byte [edi + ecx], al
inc edi
cmp edi, dword [ebp + 8]
jb 0x4244f0
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x424546
mov ecx, dword [esi + 0x24]
lea edi, [ecx + ebx]
cmp edi, dword [esi + 0x28]
jb 0x42452e
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop ebx
pop ebp
ret 4
push ebx
push eax
add ecx, edx
push ecx
call fcn.005544a0
add esp, 0xc
add dword [esi + 0x24], ebx
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x424565
push 0
lea edx, [ebp + 8]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop ebx
pop ebp
ret 4
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x4260f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4260f7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4261cd
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6694f0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6694f0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6694f0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6694f0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6694f0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6694f0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6694f0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6694f0]
add ecx, 8
sub edx, 8
dec esi
jne 0x426110
pop edi
test edx, edx
je 0x4261ea
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6694f0]
inc ecx
dec edx
jne 0x4261d1
not eax
pop esi
ret

Function at 0x426ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x426ae6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426adc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x426af7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.005544a0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret

Function at 0x427b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x427bdc
cmp dword [esi + 4], 0xffffffff
jne 0x427bdc
lea edi, [esi + 0x13c]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427b50
sub eax, edx
mov al, byte [eax + esi + 0x13b]
cmp al, 0x5c
je 0x427b81
cmp al, 0x2f
je 0x427b81
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x427b70
mov ax, word [0x6642b4]
mov word [edi], ax
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x427ba4
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x427ba4
mov eax, 0x2000000
pop edi
pop ebp
ret 8
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edi
push edx
push ebx
call fcn.00426890
add esp, 0x10
test eax, eax
jne 0x427bc2
mov eax, dword [ebp + 0xc]
pop edi
pop ebp
ret 8
call fcn.00426e30
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ebp
ret 8
Function at 0x4281c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6aab00]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
push ebx
mov ebx, dword [ebp + 8]
test al, al
je 0x428289
push esi
push edi
mov edi, ecx
mov edx, ecx
lea ebx, [ebx]
cmp al, 0x2f
je 0x4281f8
cmp al, 0x5c
jne 0x4281fa
mov edi, edx
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x4281f0
mov eax, edi
cmp edi, ecx
je 0x428235
mov esi, edi
sub esi, ecx
push esi
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.005544a0
lea ecx, [ebp - 0x108]
push ecx
push ebx
mov byte [ebp + esi - 0x108], 0
call fcn.004281c0
add esp, 0x14
lea eax, [edi + 1]
lea esi, [ebp - 0x20c]
mov ecx, ebx
sub esi, ebx
nop
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x428240
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428250
lea edi, [ebp - 0x20c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x428260
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [ebp - 0x20c]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0054cec4
mov esp, ebp
pop ebp
ret
Function at 0x428c70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6249a2
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x38]
call fcn.00401bf0
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0x3c]
call fcn.00401bf0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x40]
call fcn.00401bf0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x44]
call fcn.00401bf0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x48]
call fcn.00401bf0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x4c]
call fcn.00401bf0
mov byte [ebp - 4], 5
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x50], edi
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4