joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41670b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4280b0
push 0x4280a8
push str.FlsSetValue
push 0x22
call fcn.004164b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416745
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x424148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4184bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408780
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414ea9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4184fd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418659
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422f90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x430920]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004194b8
mov ecx, dword [esi*4 + 0x430920]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x418652
cmp eax, dword [ecx + edi + 0x24]
jne 0x418652
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418652
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004194b8
add esp, 0x14
test edx, edx
jl 0x418652
jg 0x4185c8
test eax, eax
jb 0x418652
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418652
jl 0x4185e2
cmp dword [ebp - 0x1008], eax
ja 0x418652
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418600
test ebx, ebx
je 0x418639
cmp ecx, edi
jae 0x418639
mov al, byte [ecx]
cmp al, 0xd
jne 0x41861a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418626
cmp byte [ecx + 1], 0xa
jne 0x418626
inc ecx
jmp 0x418626
movzx eax, al
movsx eax, byte [eax + 0x42f300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418600
cmp edx, ebx
jne 0x418600
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418657
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407801
leave
ret
Function at 0x418950
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x430920]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418990
cmp byte [ebx], 0xa
jne 0x418990
or byte [edi + eax + 0x28], 4
jmp 0x418995
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x418a94
mov dl, byte [eax]
cmp dl, 0x1a
je 0x418a77
inc eax
cmp dl, 0xd
je 0x4189c1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4189e7
cmp eax, ecx
jae 0x4189f5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4189a9
jmp 0x418a94
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418a72
cmp dword [ebp - 0x10], 0
je 0x418a72
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x430920]
test byte [eax + edi + 0x28], 0x48
je 0x418a4c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418a37
mov byte [esi], dl
jmp 0x418a48
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x430920]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418a94
cmp byte [ebp - 1], 0xa
jne 0x418a5b
cmp esi, ebx
jne 0x418a5b
mov byte [esi], 0xa
jmp 0x418a93
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004194d6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418a94
mov byte [esi], 0xd
jmp 0x418a93
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x430920]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418a91
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418a94
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418a9d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x430920]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418ae3
cmp word [ebx], dx
jne 0x418ae3
or byte [eax + edi + 0x28], 4
jmp 0x418ae8
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x418c4b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x418c2b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x418b29
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418b5f
cmp eax, edx
jae 0x418b6d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x418b04
jmp 0x418c4b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418c26
cmp dword [ebp - 0x18], 0
je 0x418c26
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x430920]
test byte [eax + edi + 0x28], 0x48
je 0x418bfc
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x418bc0
mov word [esi], cx
jmp 0x418bf7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x430920]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x430920]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x430920]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x418c4b
pop eax
cmp word [ebp - 4], ax
jne 0x418c0c
cmp esi, ebx
jne 0x418c0c
mov word [esi], ax
jmp 0x418c48
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004194d6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418c4b
push 0xd
pop eax
jmp 0x418c07
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x430920]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x418c45
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x418c4b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b575
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41b612
push ebx
push esi
call fcn.0041b53e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041a230
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b5bf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b611
push edi
push eax
call fcn.00413fa9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b5df
call fcn.00413f6f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b610
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a230
add esp, 0x20
test eax, eax
jne 0x41b5fe
push edi
call fcn.00413f6f
jmp 0x41b606
push ebx
call fcn.00413f6f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41dc3f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041534a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41dcae
cmp esi, dword [ebp - 4]
je 0x41dca9
cmp dword [ebp + 0xc], 0
je 0x41dca9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41dc86
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041d791
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41dcb0
xor eax, eax
inc eax
jmp 0x41dcb0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41dd15
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041534a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041534a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41dd8c
cmp word [ecx], dx
je 0x41dd8c
mov eax, dword [0x428514]
push edi
dec eax
push eax
push 0x428400
call fcn.0041dcb4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41ddff
cmp word [eax], dx
je 0x41ddff
mov eax, dword [edi]
test eax, eax
je 0x41ddb0
cmp word [eax], dx
je 0x41ddb0
lea eax, [ebp - 0x10]
push eax
call fcn.0041d697
jmp 0x41ddb9
lea eax, [ebp - 0x10]
push eax
call fcn.0041d732
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41de29
mov eax, dword [0x4283fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4280f0
call fcn.0041dcb4
add esp, 0xc
test al, al
je 0x41de29
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41ddf4
cmp word [eax], di
je 0x41ddf4
lea eax, [ebp - 0x10]
push eax
call fcn.0041d697
pop ecx
jmp 0x41de2b
lea eax, [ebp - 0x10]
push eax
call fcn.0041d732
jmp 0x41ddf1
mov eax, dword [edi]
test eax, eax
je 0x41de16
cmp word [eax], dx
je 0x41de16
lea eax, [ebp - 0x10]
push eax
call fcn.0041d64c
pop ecx
jmp 0x41de29
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41def4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041db39
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41def4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41def4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41def4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41de81
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041684b
test ebx, ebx
je 0x41deef
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041684b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41def4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41def4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00421197
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41def6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407801
leave
ret
Function at 0x422e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x422ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x4207c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
or ebp, 0xffffffff
jmp 0x4207e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4207e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4207d8
mov eax, 1
add ebx, ebx
jne 0x4207fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4207f0
jne 0x42080c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4207f0
xor ecx, ecx
sub eax, 3
jb 0x420820
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x420892
mov ebp, eax
add ebx, ebx
jne 0x42082b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x420838
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42085c
inc ecx
add ebx, ebx
jne 0x420848
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42083d
jne 0x420859
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42083d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42087c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42086d
jmp 0x4207de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42087c
add edi, ecx
jmp 0x4207de
pop esi
mov edi, esi
mov ecx, 0x19b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42089a
cmp byte [edi], 4
jne 0x42089a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42089f
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x420917
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x208f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20930]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4208cc
mov ecx, edi
jns 0x4208fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20934]
or eax, eax
je 0x420911
mov dword [ebx], eax
add ebx, 4
jmp 0x4208e9
call dword [esi + 0x2093c]
mov ebp, dword [esi + 0x20938]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42094b
sub esp, 0xffffff80
jmp 0x4029f0
Function at 0x402f08
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x346b008], 0x8088405
inc edx
mov dword [ebx + 0x346b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407650
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4076e0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4076e0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x407693
test edx, 3
jne 0x407682
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40768d
jmp 0x407693
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x407693
cmp dword [ecx - 8], 1
je 0x40769d
mov edx, ebx
or edx, 3
call fcn.00404b78
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4076af
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004044ac

Function at 0x4076ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40777c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40777c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40772f
test edx, 3
jne 0x40771e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x407729
jmp 0x40772f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40772f
cmp dword [ecx - 8], 1
je 0x407739
mov edx, ebx
or edx, 3
call fcn.00404b78
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40774b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004044ac
Function at 0x41d738
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x41d757
add edx, 3
sar edx, 2
test edx, edx
jle 0x41d865
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x41d78c
je 0x41d7cf
sub ecx, 0x2b
je 0x41d7c5
sub ecx, 4
je 0x41d7ca
dec ecx
sub ecx, 0xa
jb 0x41d7b7
jmp 0x41d7d2
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x41d79e
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x41d7a9
jmp 0x41d7d2
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x41d7d2
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x41d7d2
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x41d7d2
mov byte [eax], 0x3e
jmp 0x41d7d2
mov byte [eax], 0x3f
jmp 0x41d7d2
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x41d76f
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x41d823
cmp byte [esp + 7], 0xff
jne 0x41d823
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x41d85a
cmp dl, 0xff
je 0x41d85a
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x41d766
add esp, 0x10
pop ebp
pop edi
pop esi
ret
Function at 0x4343b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x43445f
push esi
call fcn.004486e0
add esp, 4
test al, al
jne 0x43445f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4343d7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00451f00
add esp, 0xc
test eax, eax
je 0x43440b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00451f00
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x43440d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x43443e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.004440b0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x434420
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4422c0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4d0e14
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4422da
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x4e741c
push esi
call fcn.004afcd0
add esp, 8
test eax, eax
je 0x442322
test ebp, ebp
je 0x442313
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x442348
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x442348
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4423ff
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442365
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4423f5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4423f5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442397
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4423b0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4423c0
test ebp, ebp
je 0x4423ec
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4f2004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x4f2004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret