joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cbe0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x504628]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, edx
mov edx, dword [0x50ff08]
push 0
push edx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x284], ecx
call edi
test eax, eax
je 0x42ce31
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.0045f850
add esp, 0xc
push 0x140
lea ecx, [ebp - 0x274]
push 0
push ecx
call fcn.0045f850
add esp, 0xc
push esi
lea edx, [ebp - 0x114]
push 0x104
push edx
call fcn.0045d7db
add esp, 0xc
push str..
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0045f100
add esp, 0xc
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x278], esi
cmp esi, 0xffffffff
je 0x42ce31
mov ecx, dword [0x50ff20]
sub ecx, dword [0x50ff1c]
xor eax, eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x280], eax
mov eax, 0x92492493
imul ecx
mov eax, dword [0x50ff08]
add edx, ecx
sar edx, 4
mov ebx, edx
push 0
shr ebx, 0x1f
push eax
add ebx, edx
call edi
test eax, eax
je 0x42ce2a
lea esp, [esp]
cmp byte [ebp - 0x248], 0x2e
je 0x42ce01
test byte [ebp - 0x274], 0x10
jne 0x42ce01
lea eax, [ebp - 0x248]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42cd33
sub eax, edx
cmp eax, 0x14
jae 0x42ce01
mov edx, dword [ebp - 0x254]
mov esi, dword [ebp - 0x258]
xor edi, edi
xor eax, eax
or edi, edx
or esi, eax
add edi, 0xfffffffc
adc esi, 0xffffffff
jne 0x42cd69
cmp edi, 0xa00000
jbe 0x42cd88
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x274]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, dword [ebp - 0x278]
jmp 0x42ce0f
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x248]
push edx
mov edx, ebx
call fcn.0042cb00
add esp, 0xc
test eax, eax
je 0x42cdca
mov eax, dword [eax + 0x18]
xor ecx, ecx
cmp esi, ecx
jb 0x42cdca
ja 0x42cdba
cmp edi, eax
jbe 0x42cdca
mov eax, dword [ebp - 0x284]
cmp dword [eax], ecx
jne 0x42cdca
mov dword [eax], 1
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x12c]
push 0x14
push ecx
mov dword [ebp - 0x118], edi
call fcn.0045d7db
mov eax, dword [ebp - 0x27c]
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
push eax
call fcn.0042edf0
mov esi, dword [ebp - 0x278]
lea ecx, [ebp - 0x274]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x42ce2a
mov edx, dword [0x50ff08]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42cd10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
Function at 0x42e6a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x504628]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push 0x409460
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
call fcn.0042f170
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x2c]
push eax
push 0x28
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x48], 0x10
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42e730
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x78
sete cl
mov eax, ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
mov edx, 0x53
mov word [ebp - 0x28], dx
mov eax, 0x65
mov edx, eax
mov word [ebp - 0x26], ax
mov word [ebp - 0x22], dx
mov ecx, 0x44
mov word [ebp - 0x24], cx
mov eax, 0x62
mov word [ebp - 0x20], ax
mov ecx, 0x75
mov word [ebp - 0x1e], cx
mov edx, 0x67
mov word [ebp - 0x1c], dx
mov eax, 0x50
mov word [ebp - 0x1a], ax
mov ecx, 0x72
mov word [ebp - 0x18], cx
mov edx, 0x69
mov ecx, edx
mov word [ebp - 0x16], dx
mov eax, 0x76
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], cx
mov edx, 0x6c
mov eax, 0x65
mov word [ebp - 0x10], dx
mov ecx, 0x67
mov edx, eax
mov word [ebp - 0xc], cx
lea ecx, [ebp - 0x34]
mov word [ebp - 0xa], dx
push ecx
lea edx, [ebp - 0x28]
mov word [ebp - 0xe], ax
push edx
xor eax, eax
push esi
mov word [ebp - 8], ax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x42e7ec
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x5c]
push ecx
push 0x10
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x44]
push edx
push esi
push eax
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x42e83f
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
Function at 0x433470
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4fe748
push 0x45fbb0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x504628]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0x40
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
push esi
mov ecx, dword [ebp + 8]
push ecx
push edi
call fcn.00461c00
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push edi
call ebx
jmp 0x4334e3
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x435150
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
push 0xd0
call fcn.00436890
add esp, 4
mov eax, 7
lea ecx, [edi + 0x19c]
jmp 0x435170
mov dl, byte [ecx]
xor byte [eax + edi], dl
inc eax
add ecx, 4
cmp eax, 0x18
jb 0x435170
pop edi
ret

Function at 0x435180
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ecx, 7
lea esi, [eax + 0x19c]
mov edi, edi
mov dl, byte [esi]
xor byte [ecx + eax], dl
inc ecx
add esi, 4
cmp ecx, 0x18
jb 0x435190
mov ecx, 0xcf
xor edi, edi
mov esi, eax
cmp ecx, edi
je 0x4351bd
mov bl, byte [esi]
mov dl, byte [ecx + eax]
mov byte [ecx + eax], bl
mov byte [esi], dl
inc edi
dec ecx
inc esi
cmp edi, 0x68
jl 0x4351a7
pop edi
pop esi
pop ebx
ret
Function at 0x4351d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x504628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, ebx
mov esi, ecx
call fcn.00435150
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
lea eax, [ebp - 0x14]
lea edx, [ebx + 8]
push eax
mov ecx, 0x10
mov byte [ebp - 0x14], 0
call fcn.00433500
push 0x10
lea edi, [ebp - 0x14]
call fcn.00436890
lea ecx, [ebp - 0x120]
push ecx
lea eax, [ebx + 8]
push 0x80
push eax
mov byte [ebp - 0x25], 0
call fcn.004c4380
add esp, 0x14
test eax, eax
jge 0x435247
mov byte [ebp - 0x25], 1
mov eax, ebx
call fcn.00435180
cmp byte [ebp - 0x25], 0
je 0x435267
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov edi, ebx
and edi, 0xf
jle 0x43528a
mov edx, esi
sub edx, edi
lea eax, [ebp - 0x24]
lea edx, [edx + ebx - 0x10]
push eax
mov ecx, 0x10
call fcn.00433500
add esp, 4
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x120]
push edx
mov eax, ebx
sub eax, edi
push eax
push esi
push esi
call fcn.004c3a70
add esp, 0x18
xor eax, eax
test edi, edi
jle 0x4352bc
sub esi, edi
add esi, ebx
mov cl, byte [ebp + eax - 0x24]
xor byte [esi], cl
inc eax
inc esi
cmp eax, edi
jl 0x4352b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
Function at 0x4368f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
call fcn.0045e071
mov ebx, eax
shl ebx, 0x10
call fcn.0045e071
or eax, ebx
ror edi, 0xd
mov dword [ebp + 8], edi
mov dword [esi + 8], eax
xor edi, edi
call fcn.0045e071
mov ebx, eax
shl ebx, 0x10
call fcn.0045e071
mov ecx, dword [esi + 4]
or eax, ebx
mov dword [edi + ecx], eax
call fcn.0045e071
mov ecx, dword [esi + 4]
shl eax, 4
cdq
and edx, 0x7fff
add eax, edx
mov edx, dword [esi + 8]
xor edx, dword [ebp + 8]
sar eax, 0xf
mov dword [esi], eax
mov dword [ecx + eax*4], edx
xor dword [esi], 0xd0036751
add edi, 4
cmp edi, 0x40
jl 0x436914
pop edi
mov eax, esi
pop ebx
pop ebp
ret

Function at 0x436970
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push 0x40
call fcn.0043c9d2
add esp, 4
mov dword [esi + 4], eax
call fcn.0045e071
mov edi, eax
shl edi, 0x10
call fcn.0045e071
or eax, edi
mov dword [esi + 8], eax
xor edi, edi
call fcn.0045e071
mov ebx, eax
shl ebx, 0x10
call fcn.0045e071
mov ecx, dword [esi + 4]
or eax, ebx
mov dword [edi + ecx], eax
call fcn.0045e071
mov ecx, dword [esi + 8]
shl eax, 4
cdq
and edx, 0x7fff
add eax, edx
mov edx, dword [esi + 4]
sar eax, 0xf
mov dword [esi], eax
mov dword [edx + eax*4], ecx
xor dword [esi], 0xd0036751
add edi, 4
cmp edi, 0x40
jl 0x436995
pop edi
mov eax, esi
pop ebx
ret

Function at 0x4369e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x436a0f
push ebx
push edi
jmp 0x4369f0
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x506a38]
inc ecx
cmp ecx, edx
jb 0x4369f0
pop edi
pop ebx
not eax
ret
Function at 0x439970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x43997e
xor eax, eax
pop ebp
ret
push esi
not eax
cmp edx, 8
jb 0x439a54
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f6c88]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4f6c88]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4f6c88]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f6c88]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f6c88]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f6c88]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f6c88]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4f6c88]
inc ecx
sub edx, 8
sub esi, 1
jne 0x439990
pop edi
test edx, edx
je 0x439a7b
jmp 0x439a60
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4f6c88]
inc ecx
sub edx, 1
jne 0x439a60
not eax
pop esi
pop ebp
ret

Function at 0x439a80
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 + 0x4f6c88]
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 + 0x4f6c88]
mov dword [edx + 8], ecx
ret

Function at 0x439ad0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4f6c88]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4f6c88]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x43a240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x43a27b
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 0x43a270
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x43a28c
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.00461c00
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x43a440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x43a487
cmp byte [esi + 1], 0
je 0x43a48f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x43a4a2
cmp byte [esi + 1], 0
je 0x43a496
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x43a4aa
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x43a461
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x43a4aa
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x43a4bc
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0045a52b
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43a4d9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x43a5ef
jmp 0x43a4f9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x43a508
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x43a51f
mov ebx, 0x404
cmp byte [esi], 0
je 0x43a544
cmp byte [esi + 1], 0
je 0x43a5ef
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43a547
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x43a570
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43a56b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x43a599
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x43a581
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.00461c00
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x43a5ef
lea eax, [ebx - 3]
test eax, eax
jl 0x43a5dd
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x43a5cf
cmp byte [eax + ecx + 1], 0x4b
jne 0x43a5cf
cmp byte [eax + ecx + 2], 5
jne 0x43a5cf
cmp byte [eax + ecx + 3], 6
je 0x43a5d5
test eax, eax
jge 0x43a5b0
jmp 0x43a5dd
mov ecx, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43a5ef
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x43a4f0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045a290
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b1d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x43b26e
cmp dword [esi + 4], 0xffffffff
jne 0x43b26e
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b200
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x43b239
cmp ax, 0x2f
je 0x43b239
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x43b226
mov eax, dword [0x4f8b98]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
call fcn.0043a1a0
add esp, 4
test eax, eax
jne 0x43b254
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 4
call fcn.0043a610
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 4
mov eax, 0x1000000
pop edi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x504628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43b944
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43b944
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x43ba2e
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x43b963
cmp ax, 0x5c
jne 0x43b965
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x43b957
push edi
cmp ecx, ebx
je 0x43b9a6
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00461c00
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push esi
mov word [ebp + edi - 0x414], cx
call fcn.0043b910
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x43b9cf
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x43b9c0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b9d3
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x43b9f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x43ba2e
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
Function at 0x43c690
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x43c77b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x43c6c7
cmp dword [esi + 0x40], edi
jae 0x43c6c7
push eax
call fcn.0043ca01
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x43c6df
lea eax, [edi + edi]
push eax
call fcn.0043ca0c
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.00461c00
add esp, 0xc
xor ebx, ebx
test edi, edi
jbe 0x43c778
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4f54a8]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4f54a8]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x43c6f7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x43c7ba
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x43c79f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.00461c00
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43c7dc
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8