joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da548
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50d080]
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
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x1c
push str.url.dll_FileProtocolHandler
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.00410170
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x41c8bd
mov edx, dword [esi]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
sub eax, ebx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
ja 0x41c8f6
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x28]
lea edi, [ebx + ecx]
push eax
push edx
mov dword [ebp - 0x18], edi
lea eax, [esi + ebx*2]
push eax
call fcn.0047ee00
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x41c908
push ecx
push edx
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040a8f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push str.rundll32.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41c960
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c956
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c97c
push edx
push ecx
call fcn.0047cf71
add esp, 8
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.0047cf84
mov esp, ebp
pop ebp
ret
call fcn.004896ff
int3

Function at 0x41e5c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x41e6b5
cmp dword [edi + 8], 0x70b
jne 0x41e6b5
mov edx, dword [edi + 0xc]
cmp edx, 0x201
je 0x41e5fa
cmp edx, 0x203
jne 0x41e6b5
push ebx
push esi
push 0x27da
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xb0
push esi
mov dword [ebp - 4], 0
call ebx
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 0xb1
push esi
call ebx
mov esi, dword [edi + 0x1c]
xor ecx, ecx
sub esi, dword [edi + 0x18]
mov edx, 2
inc esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d896
lea ecx, [esi + esi]
mov edi, eax
push ecx
push 0
push edi
call fcn.0047f380
mov esi, dword [ebp - 0xc]
add esp, 0x10
push edi
push 0
push 0x43e
push esi
call ebx
push 1
push 0
push 0
push edi
push str.open
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call fcn.0047cf7f
add esp, 4
push dword [ebp - 4]
push dword [ebp - 8]
push 0xb1
push esi
call ebx
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41fcc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x45c
mov eax, dword [0x50d080]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
xor ecx, ecx
mov dword [esp + 0xc], esi
push edi
test ebx, ebx
mov eax, 5
cmovne eax, ecx
push eax
push 0x27e4
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x208
lea eax, [esp + 0x54]
push 0
push eax
call fcn.0047f380
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x5c]
add esp, 0xc
push 0x104
push eax
mov eax, ebx
neg eax
sbb eax, eax
add eax, 0x2782
push eax
push dword [0x510a78]
call edi
lea eax, [esp + 0x50]
push eax
push 0x27f5
push esi
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
call esi
push 0x208
lea eax, [esp + 0x25c]
push 0
push eax
call fcn.0047f380
add esp, 0xc
lea eax, [esp + 0x258]
push 0x104
push eax
mov eax, ebx
neg eax
sbb eax, eax
add eax, 0x2784
push eax
push dword [0x510a78]
call edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x258]
push eax
push 0x27f6
push edi
call esi
push 0x27e0
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x27e6
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test ebx, ebx
je 0x41fe07
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
jmp 0x41fe37
lea eax, [esp + 0x40]
push eax
push 0x27e4
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
add eax, 0xfffffffd
add eax, ecx
push 1
push dword [esp + 0x20]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
xor eax, eax
test ebx, ebx
push 0
sete al
push eax
push 0xcf
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and eax, 0xfffffff7
or ecx, 8
test ebx, ebx
cmove eax, ecx
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x27
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
test ebx, ebx
je 0x41fea1
mov eax, 0x4f4708
jmp 0x41feb4
cmp dword [0x50db0c], 8
mov eax, 0x50daf8
cmovae eax, dword [0x50daf8]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
test ebx, ebx
je 0x41fec7
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047cf84
mov esp, ebp
pop ebp
ret
Function at 0x4205f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x4fadd8
push dword [ebp + 8]
xor bl, bl
call fcn.0048bdec
mov esi, eax
add esp, 8
test esi, esi
je 0x420637
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x420628
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.004ab063
add esp, 0x10
push esi
call fcn.004aacfc
add esp, 4
mov al, 1
pop esi
pop ebx
pop ebp
ret
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x422fb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4daa70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x50d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00423630
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.00405a50
mov dword [esi + 0x28], 0
mov eax, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x423e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x38]
mov edi, ecx
push eax
push edi
mov esi, edx
xor bl, bl
call fcn.004af26b
add esp, 8
test eax, eax
jne 0x423ec1
push 0x4fae50
push edi
call fcn.0048bdec
mov edi, eax
add esp, 8
test edi, edi
je 0x423ec1
mov ebx, dword [ebp - 0x24]
mov ecx, esi
push esi
push ebx
call fcn.00417a50
test ebx, ebx
je 0x423ea5
push edi
push ebx
push 1
push dword [esi]
call fcn.004af7f7
add esp, 0x10
mov ecx, esi
push esi
push eax
call fcn.00417a50
push edi
call fcn.004aacfc
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cf84
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cf84
mov esp, ebp
pop ebp
ret
Function at 0x429250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x510a74]
push ebx
mov ebx, dword [ebp + 8]
inc eax
push esi
push eax
push ecx
mov dword [0x510a74], eax
lea eax, [ebp - 0x204]
push str._ld_ld
push eax
call fcn.0041bbe0
add esp, 0x10
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x204]
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4292a0
push edi
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4292b1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebx, 0xfffffffe
rep movsb byte es:[edi], byte [esi]
pop edi
nop
mov ax, word [ebx + 2]
lea ebx, [ebx + 2]
test ax, ax
jne 0x4292d0
mov eax, dword [str..dat]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
xor ecx, ebp
mov eax, dword [0x4fb0e0]
mov dword [ebx + 4], eax
mov ax, word [0x4fb0e4]
pop esi
mov word [ebx + 8], ax
pop ebx
call fcn.0047cf84
mov esp, ebp
pop ebp
ret 4
Function at 0x429640
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x210], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ecx
test eax, eax
je 0x4297bf
cmp dword [ebp + 0xc], ebx
je 0x4297bf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
je 0x4296a6
push esi
call edi
mov ecx, eax
test ecx, ecx
je 0x4297aa
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.00429250
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
je 0x4296e2
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, eax
test ecx, ecx
je 0x42978f
lea eax, [ebp - 0x20c]
push 0x4fadd8
push eax
call fcn.0048bdec
mov esi, eax
add esp, 8
test esi, esi
je 0x42978f
push esi
push dword [ebp + 0xc]
push 1
push dword [ebp - 0x214]
call fcn.004ab063
push esi
call fcn.004aacfc
push dword [ebp - 0x218]
xor edx, edx
lea ecx, [ebp - 0x20c]
push 2
xor ebx, ebx
call fcn.00446aa0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x42978f
mov eax, dword [esi]
cmp eax, 1
je 0x429757
mov dword [0x510a80], 0x80000
mov ecx, 0x80000
jmp 0x429775
mov ecx, dword [esi + 4]
push 2
push 0
push dword [ebp - 0x21c]
push 0
call fcn.00446380
mov ecx, eax
mov eax, dword [esi]
mov dword [0x510a80], ecx
xor ebx, ebx
test ecx, ecx
mov ecx, esi
sete bl
cmp eax, 1
jne 0x42978a
call fcn.00446fc0
jmp 0x42978f
call fcn.00441340
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4297aa
lea eax, [ebp - 0x20c]
push eax
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cf84
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cf84
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42a080
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db419
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x50d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x48]
mov dword [ebp - 0x10], 1
cmp ecx, 0xffffffff
jne 0x42a16b
lea ebx, [esi + 0x30]
cmp ebx, esi
je 0x42a0f7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42a0ec
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00410170
push ebx
call fcn.00416880
add esp, 4
lea ecx, [esi + 0x18]
cmp dword [esi + 0x2c], 8
jb 0x42a10c
mov ecx, dword [esi + 0x18]
push dword [esi + 0x28]
push ecx
mov ecx, ebx
call fcn.00409280
cmp dword [ebx + 0x14], 8
jb 0x42a11f
mov ebx, dword [ebx]
lea eax, [esi + 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 0x48], eax
cmp eax, 0xffffffff
je 0x42a1bc
mov ecx, 0x2e
cmp cx, word [esi + 0x78]
jne 0x42a17a
lea ebx, [esi + 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42a1bc
mov eax, 0x2e
cmp ax, word [esi + 0x78]
jne 0x42a1bc
push ebx
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42a17a
jmp 0x42a1bc
lea eax, [esi + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42a1bc
cmp edi, esi
je 0x42a193
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42a188
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.00410170
push edi
call fcn.00416880
add esp, 4
add esi, 0x78
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a1a4
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00409280
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 0x42a3a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
xor esi, esi
call fcn.0042a300
test eax, eax
je 0x42a439
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x42a424
push ebx
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 8]
mov ebx, eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42a423
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x42a423
test ebx, ebx
je 0x42a423
mov esi, dword [ebp + 0xc]
mov ecx, esi
push esi
push ebx
call fcn.00417a50
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x42a41e
push ebx
push dword [ebp + 8]
push eax
call fcn.0047e880
add esp, 0xc
mov esi, 1
pop ebx
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x42a439
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x18], 0
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x42a4f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db499
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50d080]
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 ecx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov ecx, esi
push eax
mov dword [ebp - 0x2c], 0
call fcn.0042a300
test eax, eax
je 0x42a626
push 0x4fb160
push 0x74
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42a56f
push 0x4fb160
push 0x6a
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42a611
push edi
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [esi + 0x18]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42a611
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42a611
cmp dword [ebp - 0x2c], ebx
je 0x42a611
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
mov ecx, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], 1
call fcn.00424cc0
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
call fcn.0040e350
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42a60c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a602
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a646
push edx
push ecx
call fcn.0047cf71
add esp, 8
mov ebx, 1
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x42a626
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x18], 0
mov eax, ebx
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.0047cf84
mov esp, ebp
pop ebp
ret 8
call fcn.004896ff
int3
Function at 0x42b1e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x64], 0xffffffff
jne 0x42b345
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 0x64], 0
call fcn.0042b130
test eax, eax
jne 0x42b345
mov ecx, closesocket
call fcn.0042b130
test eax, eax
je 0x42b245
cmp eax, 2
jne 0x42b345
push 1
push closesocket
push str.LockXLSRuntime.Connect
lea ecx, [ebp - 0x70]
call fcn.0040ea80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x42b336
push 1
push closesocket
push str.CLSID36CFCB02_788B_41D9_A9A6_FCBCEC7FF987InprocServer32
lea ecx, [ebp - 0x4c]
call fcn.0040ea80
mov eax, 7
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x4c], ecx
je 0x42b2d9
lea eax, [ebp - 0x28]
push eax
push 0x4f4708
lea ecx, [ebp - 0x4c]
call fcn.0040e900
test eax, eax
je 0x42b2d6
cmp dword [ebp - 0x18], 0
je 0x42b2d6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42b2d6
mov dword [esi + 0x64], 1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x42b310
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42b306
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b368
push edx
push ecx
call fcn.0047cf71
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x42b333
push eax
call dword [ebp - 0x40]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 4], 4
test eax, eax
je 0x42b345
push eax
call dword [ebp - 0x64]
xor eax, eax
cmp dword [esi + 0x64], 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cf84
mov esp, ebp
pop ebp
ret
call fcn.004896ff
int3
Function at 0x42c190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], esi
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x214], esi
jb 0x42c1bf
mov ebx, dword [ebx]
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x42c277
cmp word [ebx], ax
je 0x42c277
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x20c], 0
je 0x42c236
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c200
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x42c236
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x42c223
mov eax, dword [0x4f4828]
mov dword [edi], eax
mov esi, ebx
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x42c240
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42c256
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x210]
pop edi
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c293
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00410170
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cf84
mov esp, ebp
pop ebp
ret
Function at 0x43e8f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x43e8fb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x43e9b7
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 + 0x4f8050]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8050]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8050]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8050]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8050]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8050]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8050]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8050]
sub edi, 1
jne 0x43e910
pop edi
test esi, esi
je 0x43e9da
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 + 0x4f8050]
sub esi, 1
jne 0x43e9c0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x43e9f0
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 + 0x4f8050]
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 + 0x4f8050]
mov dword [edi + 8], ecx
pop edi
pop esi
ret