joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4203d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x50b618]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x364], 0x200
mov eax, 0x20019
cmp dword [ebp + 8], esi
je 0x4203ff
mov eax, 0x20119
mov ecx, 0x53
mov word [ebp - 0x5c], cx
mov ecx, 0x46
mov word [ebp - 0x58], cx
mov ecx, 0x57
mov word [ebp - 0x54], cx
mov ecx, 0x52
mov word [ebp - 0x50], cx
mov edx, 0x4f
mov word [ebp - 0x5a], dx
mov ecx, 0x5c
mov word [ebp - 0x4c], cx
mov edx, 0x54
mov word [ebp - 0x56], dx
mov ecx, 0x69
mov word [ebp - 0x48], cx
mov edx, 0x41
mov word [ebp - 0x52], dx
mov ecx, 0x72
mov word [ebp - 0x44], cx
mov edx, 0x45
mov word [ebp - 0x4e], dx
mov ecx, 0x73
mov word [ebp - 0x40], cx
mov edx, 0x4d
mov word [ebp - 0x4a], dx
mov ecx, 0x66
mov word [ebp - 0x3c], cx
mov edx, 0x63
mov word [ebp - 0x46], dx
mov edx, 0x6f
mov word [ebp - 0x42], dx
mov word [ebp - 0x3e], dx
mov ecx, 0x5c
mov word [ebp - 0x38], cx
mov ecx, 0x72
mov word [ebp - 0x34], cx
mov edx, 0x74
mov word [ebp - 0x3a], dx
mov ecx, 0x70
mov word [ebp - 0x30], cx
mov edx, 0x43
mov word [ebp - 0x36], dx
mov ecx, 0x6f
mov word [ebp - 0x2c], cx
mov edx, 0x79
mov word [ebp - 0x32], dx
mov ecx, 0x72
mov word [ebp - 0x28], cx
mov edx, 0x74
mov word [ebp - 0x2e], dx
mov ecx, 0x70
mov edx, 0x67
mov word [ebp - 0x2a], dx
mov word [ebp - 0x24], cx
mov ecx, 0x79
mov edx, 0x61
mov word [ebp - 0x26], dx
mov word [ebp - 0x20], cx
lea ecx, [ebp - 0x360]
push ecx
mov edx, 0x68
mov word [ebp - 0x22], dx
xor edx, edx
push eax
push edx
mov word [ebp - 0x1e], dx
lea edx, [ebp - 0x5c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420638
mov eax, 0x4d
mov word [ebp - 0x1c], ax
mov ecx, 0x61
mov word [ebp - 0x1a], cx
mov eax, 0x68
mov word [ebp - 0x16], ax
mov ecx, 0x69
mov word [ebp - 0x14], cx
mov eax, 0x65
mov word [ebp - 0x10], ax
mov edx, 0x63
mov word [ebp - 0x18], dx
mov ecx, 0x47
mov word [ebp - 0xe], cx
mov eax, 0x69
mov edx, 0x6e
mov word [ebp - 0x12], dx
mov word [ebp - 0xa], ax
mov ecx, 0x64
lea eax, [ebp - 0x364]
push eax
mov eax, dword [ebp - 0x360]
mov edx, 0x75
mov word [ebp - 8], cx
mov word [ebp - 0xc], dx
xor edx, edx
lea ecx, [ebp - 0x35c]
push ecx
push edx
push edx
mov word [ebp - 6], dx
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42062b
push 0xff
push eax
lea ecx, [ebp - 0x15b]
push ecx
mov byte [ebp - 0x15c], al
call fcn.004634b0
add esp, 0xc
push 0
push 0
push 0x100
lea edx, [ebp - 0x15c]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x35c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x15c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420610
lea ecx, [ebp - 0x15c]
push ecx
sub eax, edx
push edi
call fcn.00405400
mov esi, 1
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045d99c
mov esp, ebp
pop ebp
ret
Function at 0x42f4e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x50b618]
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 [0x514930]
push 0
push edx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x284], ecx
call edi
test eax, eax
je 0x42f731
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.004634b0
add esp, 0xc
push 0x140
lea ecx, [ebp - 0x274]
push 0
push ecx
call fcn.004634b0
add esp, 0xc
push esi
lea edx, [ebp - 0x114]
push 0x104
push edx
call fcn.00460fdb
add esp, 0xc
push str..
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00462d08
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 0x42f731
mov ecx, dword [0x514948]
sub ecx, dword [0x514944]
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 [0x514930]
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 0x42f72a
lea esp, [esp]
cmp byte [ebp - 0x248], 0x2e
je 0x42f701
test byte [ebp - 0x274], 0x10
jne 0x42f701
lea eax, [ebp - 0x248]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f633
sub eax, edx
cmp eax, 0x14
jae 0x42f701
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 0x42f669
cmp edi, 0xa00000
jbe 0x42f688
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 0x42f70f
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x248]
push edx
mov edx, ebx
call fcn.0042f400
add esp, 0xc
test eax, eax
je 0x42f6ca
mov eax, dword [eax + 0x18]
xor ecx, ecx
cmp esi, ecx
jb 0x42f6ca
ja 0x42f6ba
cmp edi, eax
jbe 0x42f6ca
mov eax, dword [ebp - 0x284]
cmp dword [eax], ecx
jne 0x42f6ca
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.00460fdb
mov eax, dword [ebp - 0x27c]
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
push eax
call fcn.00431900
mov esi, dword [ebp - 0x278]
lea ecx, [ebp - 0x274]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x42f72a
mov edx, dword [0x514930]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42f610
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.0045d99c
mov esp, ebp
pop ebp
ret
Function at 0x437930
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x506148
push 0x463810
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50b618]
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.00465860
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push edi
call ebx
jmp 0x4379a3
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 0x439610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
push edi
mov edi, ecx
test esi, esi
je 0x439626
cmp esi, 0x18
jbe 0x43962b
mov esi, 0x18
push 0xd0
call fcn.0043ac50
add esp, 4
mov eax, ebx
cmp ebx, esi
jae 0x439652
lea ecx, [edi + ebx*4 + 0x180]
mov dl, byte [ecx]
xor byte [eax + edi], dl
inc eax
add ecx, 4
cmp eax, esi
jb 0x439645
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x439660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x439672
cmp edi, 0x18
jbe 0x439677
mov edi, 0x18
cmp ecx, edi
jae 0x43968f
lea esi, [eax + ecx*4 + 0x180]
mov dl, byte [esi]
xor byte [ecx + eax], dl
inc ecx
add esi, 4
cmp ecx, edi
jb 0x439682
mov ecx, 0xcf
xor edi, edi
mov esi, eax
cmp ecx, edi
je 0x4396ae
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 0x439698
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4396c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x50b618]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 7
xor eax, eax
mov esi, ecx
call fcn.00439610
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, [esi + 8]
push eax
mov ecx, 0x10
mov byte [ebp - 0x14], 0
call fcn.004379c0
push 0x10
lea edi, [ebp - 0x14]
call fcn.0043ac50
lea ecx, [ebp - 0x120]
push ecx
lea eax, [esi + 8]
push 0x80
push eax
mov byte [ebp - 0x25], 0
call fcn.004cbd80
add esp, 0x18
test eax, eax
jge 0x439739
mov byte [ebp - 0x25], 1
push 0
mov ecx, 7
mov eax, esi
call fcn.00439660
add esp, 4
cmp byte [ebp - 0x25], 0
je 0x439763
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d99c
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov esi, edi
and esi, 0xf
jle 0x439786
mov edx, ebx
sub edx, esi
lea eax, [ebp - 0x24]
lea edx, [edx + edi - 0x10]
push eax
mov ecx, 0x10
call fcn.004379c0
add esp, 4
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x120]
push edx
mov eax, edi
sub eax, esi
push eax
push ebx
push ebx
call fcn.004cb470
add esp, 0x18
xor eax, eax
test esi, esi
jle 0x4397bc
sub ebx, esi
add ebx, edi
lea esp, [esp]
mov cl, byte [ebp + eax - 0x24]
xor byte [ebx], cl
inc eax
inc ebx
cmp eax, esi
jl 0x4397b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0045d99c
mov esp, ebp
pop ebp
ret
Function at 0x43acb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
call fcn.00461871
mov ebx, eax
shl ebx, 0x10
call fcn.00461871
or eax, ebx
ror edi, 0xd
mov dword [ebp + 8], edi
mov dword [esi + 8], eax
xor edi, edi
call fcn.00461871
mov ebx, eax
shl ebx, 0x10
call fcn.00461871
mov ecx, dword [esi + 4]
or eax, ebx
mov dword [edi + ecx], eax
call fcn.00461871
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 0x43acd4
pop edi
mov eax, esi
pop ebx
pop ebp
ret

Function at 0x43ad30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push 0x40
call fcn.004403a2
add esp, 4
mov dword [esi + 4], eax
call fcn.00461871
mov edi, eax
shl edi, 0x10
call fcn.00461871
or eax, edi
mov dword [esi + 8], eax
xor edi, edi
call fcn.00461871
mov ebx, eax
shl ebx, 0x10
call fcn.00461871
mov ecx, dword [esi + 4]
or eax, ebx
mov dword [edi + ecx], eax
call fcn.00461871
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 0x43ad55
pop edi
mov eax, esi
pop ebx
ret

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

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x43d36e
xor eax, eax
pop ebp
ret
push esi
not eax
cmp edx, 8
jb 0x43d444
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 + 0x4fdeb8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4fdeb8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4fdeb8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4fdeb8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4fdeb8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4fdeb8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4fdeb8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4fdeb8]
inc ecx
sub edx, 8
sub esi, 1
jne 0x43d380
pop edi
test edx, edx
je 0x43d46b
jmp 0x43d450
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4fdeb8]
inc ecx
sub edx, 1
jne 0x43d450
not eax
pop esi
pop ebp
ret

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

Function at 0x43d4c0
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 + 0x4fdeb8]
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 + 0x4fdeb8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x43dc10
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 0x43dc4b
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 0x43dc40
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 0x43dc5c
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.00465860
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 0x43de10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x43de57
cmp byte [esi + 1], 0
je 0x43de5f
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 0x43de72
cmp byte [esi + 1], 0
je 0x43de66
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 0x43de7a
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x43de31
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x43de7a
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 0x43de8c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0045de25
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43dea9
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 0x43dfbf
jmp 0x43dec9
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 0x43ded8
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 0x43deef
mov ebx, 0x404
cmp byte [esi], 0
je 0x43df14
cmp byte [esi + 1], 0
je 0x43dfbf
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 0x43df17
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x43df40
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 0x43df3b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x43df69
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x43df51
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.00465860
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x43dfbf
lea eax, [ebx - 3]
test eax, eax
jl 0x43dfad
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x43df9f
cmp byte [eax + ecx + 1], 0x4b
jne 0x43df9f
cmp byte [eax + ecx + 2], 5
jne 0x43df9f
cmp byte [eax + ecx + 3], 6
je 0x43dfa5
test eax, eax
jge 0x43df80
jmp 0x43dfad
mov ecx, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43dfbf
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x43dec0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045db8a
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43eba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x43ec3e
cmp dword [esi + 4], 0xffffffff
jne 0x43ec3e
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 0x43ebd0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x43ec09
cmp ax, 0x2f
je 0x43ec09
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x43ebf6
mov eax, dword [0x500488]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
call fcn.0043db70
add esp, 4
test eax, eax
jne 0x43ec24
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 4
call fcn.0043dfe0
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 0x43f2e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x50b618]
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 0x43f314
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43f314
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x43f3fe
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x43f333
cmp ax, 0x5c
jne 0x43f335
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x43f327
push edi
cmp ecx, ebx
je 0x43f376
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00465860
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push esi
mov word [ebp + edi - 0x414], cx
call fcn.0043f2e0
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x43f39f
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 0x43f390
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43f3a3
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 0x43f3c0
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 0x43f3fe
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.0045d99c
mov esp, ebp
pop ebp
ret
Function at 0x440060
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 0x44014b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x440097
cmp dword [esi + 0x40], edi
jae 0x440097
push eax
call fcn.004403d1
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x4400af
lea eax, [edi + edi]
push eax
call fcn.004403dc
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.00465860
add esp, 0xc
xor ebx, ebx
test edi, edi
jbe 0x440148
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 + 0x4fc6d8]
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 + 0x4fc6d8]
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 0x4400c7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x44018a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x44016f
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.00465860
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 0x4401ac
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