joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42128f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4212b0
jl 0x4212a7
test edi, edi
jne 0x4212b0
xor eax, eax
xor edx, edx
jmp 0x421371
cmp dword [ebx + 0x38], 0
je 0x4212c5
push eax
push edi
push dword [ebp + 8]
call fcn.00417175
jmp 0x421371
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42130c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x42130c
cmp eax, edi
jb 0x4212e6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00423a10
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x421312
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x421366
mov ecx, ebx
call fcn.00420bfa
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x421351
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0042afd5
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x421366
jmp 0x421324
test edx, edx
je 0x421366
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0042afd5
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4236d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x423712
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423712
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423712
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x423712
cmp dword [ecx + 0x74], 0xe
jbe 0x423712
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432824
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x446000
push 0x445ff8
push str.FlsAlloc
push 0x1f
call fcn.004326ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x432858
push dword [ebp + 8]
mov ecx, esi
call dword [0x4401c4]
call esi
jmp 0x43285e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4328a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x446010
push 0x446008
push str.FlsGetValue
push 0x21
call fcn.004326ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4328d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4401c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4328e1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x446018
push 0x446010
push str.FlsSetValue
push 0x22
call fcn.004326ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43291b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4401c4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x434f62
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00422bf0
mov eax, dword [0x48c840]
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.00430e87
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x434fa4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x435100
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043e3e0
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 + 0x48f858]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043613a
mov ecx, dword [esi*4 + 0x48f858]
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 0x4350f9
cmp eax, dword [ecx + edi + 0x24]
jne 0x4350f9
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 0x4350f9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043613a
add esp, 0x14
test edx, edx
jl 0x4350f9
jg 0x43506f
test eax, eax
jb 0x4350f9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4350f9
jl 0x435089
cmp dword [ebp - 0x1008], eax
ja 0x4350f9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4350a7
test ebx, ebx
je 0x4350e0
cmp ecx, edi
jae 0x4350e0
mov al, byte [ecx]
cmp al, 0xd
jne 0x4350c1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4350cd
cmp byte [ecx + 1], 0xa
jne 0x4350cd
inc ecx
jmp 0x4350cd
movzx eax, al
movsx eax, byte [eax + 0x48cb08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4350a7
cmp edx, ebx
jne 0x4350a7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4350fe
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004230da
leave
ret
Function at 0x4355d0
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 + 0x48f858]
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 0x435610
cmp byte [ebx], 0xa
jne 0x435610
or byte [edi + eax + 0x28], 4
jmp 0x435615
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 0x435714
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4356f7
inc eax
cmp dl, 0xd
je 0x435641
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x435667
cmp eax, ecx
jae 0x435675
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 0x435629
jmp 0x435714
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 0x4356f2
cmp dword [ebp - 0x10], 0
je 0x4356f2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x48f858]
test byte [eax + edi + 0x28], 0x48
je 0x4356cc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4356b7
mov byte [esi], dl
jmp 0x4356c8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48f858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x435714
cmp byte [ebp - 1], 0xa
jne 0x4356db
cmp esi, ebx
jne 0x4356db
mov byte [esi], 0xa
jmp 0x435713
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00436158
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x435714
mov byte [esi], 0xd
jmp 0x435713
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x48f858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x435711
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x435714
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43571d
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 + 0x48f858]
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 0x435763
cmp word [ebx], dx
jne 0x435763
or byte [eax + edi + 0x28], 4
jmp 0x435768
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 0x4358cb
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 0x4358ab
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4357a9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4357df
cmp eax, edx
jae 0x4357ed
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 0x435784
jmp 0x4358cb
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 0x4358a6
cmp dword [ebp - 0x18], 0
je 0x4358a6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x48f858]
test byte [eax + edi + 0x28], 0x48
je 0x43587c
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 0x435840
mov word [esi], cx
jmp 0x435877
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x48f858]
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 + 0x48f858]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x48f858]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4358cb
pop eax
cmp word [ebp - 4], ax
jne 0x43588c
cmp esi, ebx
jne 0x43588c
mov word [esi], ax
jmp 0x4358c8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00436158
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4358cb
push 0xd
pop eax
jmp 0x435887
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x48f858]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4358c5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4358cb
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 0x437aaa
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 0x437b47
push ebx
push esi
call fcn.00437a73
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.0043674c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x437af4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x437b46
push edi
push eax
call fcn.0042ff15
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x437b14
call fcn.0042fedb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x437b45
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043674c
add esp, 0x20
test eax, eax
jne 0x437b33
push edi
call fcn.0042fedb
jmp 0x437b3b
push ebx
call fcn.0042fedb
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 0x439d9e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042fbf0
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 0x439e0d
cmp esi, dword [ebp - 4]
je 0x439e08
cmp dword [ebp + 0xc], 0
je 0x439e08
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x439de5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004398f0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x439e0f
xor eax, eax
inc eax
jmp 0x439e0f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x439e74
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48c840]
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.0042fbf0
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.0042fbf0
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 0x439eeb
cmp word [ecx], dx
je 0x439eeb
mov eax, dword [0x44647c]
push edi
dec eax
push eax
push 0x446368
call fcn.00439e13
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x439f5e
cmp word [eax], dx
je 0x439f5e
mov eax, dword [edi]
test eax, eax
je 0x439f0f
cmp word [eax], dx
je 0x439f0f
lea eax, [ebp - 0x10]
push eax
call fcn.004397f6
jmp 0x439f18
lea eax, [ebp - 0x10]
push eax
call fcn.00439891
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x439f88
mov eax, dword [0x446364]
push dword [ebp - 0x14]
dec eax
push eax
push 0x446058
call fcn.00439e13
add esp, 0xc
test al, al
je 0x439f88
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x439f53
cmp word [eax], di
je 0x439f53
lea eax, [ebp - 0x10]
push eax
call fcn.004397f6
pop ecx
jmp 0x439f8a
lea eax, [ebp - 0x10]
push eax
call fcn.00439891
jmp 0x439f50
mov eax, dword [edi]
test eax, eax
je 0x439f75
cmp word [eax], dx
je 0x439f75
lea eax, [ebp - 0x10]
push eax
call fcn.004397ab
pop ecx
jmp 0x439f88
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 0x43a053
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00439c98
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43a053
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43a053
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43a053
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x439fe0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00432a21
test ebx, ebx
je 0x43a04e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00432a21
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43a053
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 0x43a053
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043cea1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43a055
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004230da
leave
ret
Function at 0x43e320
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x4175f4
Capabilities:
Query environment variable
Set environment variable

Disassembly:
add edx, dword [esi]
push esp
push eax
jb 0x417669
arpl word [ebp + 0x73], sp
jae 0x41766e
jb 0x417642
jb 0x417666
push 0x63657469
je 0x41767f
jb 0x417671
add dword [eax], eax
add byte [eax], al
add byte [ebx], al
add byte [eax], al
add al, dh
jne 0x417659
add byte [ecx], cl
jo 0x41767d
push ebp
outsb dx, byte [esi]
imul ebp, dword [esi + 0x6f], 0x77
outsb dx, byte [esi]
pop es
jo 0x417687
js 0x417660
xor esi, dword ss:[edx]
pop es
jo 0x41768f
js 0x417668
xor al, 6
jo 0x417697
dec ecx
inc ecx
xor al, 0xa
dec edx
arpl word [ebx + edx*2 + 0x79], bp
jae 0x41768b
outsb dx, byte [esi]
outsw dx, word [esi]
lea eax, [eax]
dec esp
jbe 0x41768c
add byte [ebx], al
andps xmm2, xmmword [esp + ecx*2 + 0x42]
add byte [eax], al
add dword [eax], eax
add byte [eax], al
dec eax
jbe 0x4176aa
popal
imul esi, dword [esi + 0x69], 0x4a0a7974
arpl word [ebx + edx*2 + 0x79], bp
jae 0x4176d5
add byte [eax], al
add eax, dword [eax]
add byte [eax], al
nop
jbe sym.P_Interface.bpl___xp_23Jclsysinfo_TCacheFamily
add byte [edx], cl
imul esp, dword [ecx + 0x74], 0x74697669
jns 0x4176e4
or cl, byte [edx + 0x63]

Function at 0x417c48
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x417d40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__Classes_TStrings_BeginUpdate_qqrv
xor eax, eax
push ebp
push 0x417d23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x417cc4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.P_Interface.bpl__Jclstrings_MultiSzToStrings_qqrpx16Classes_TStringspxc
mov byte [ebp - 6], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417ccb
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsA
ret
Function at 0x418048
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x4180fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x4180e2
cmp dword [ebp - 8], 0
jne 0x4180a2
mov ecx, dword [ebp - 4]
mov edx, 0x418110
mov eax, 0x80000001
call sym.P_Interface.bpl__Jclregistry_RegDeleteEntry_qqrxuix17System_AnsiStringt2
push 0
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
jmp 0x4180cf
mov eax, dword [ebp - 8]
push eax
mov edx, 0x418110
mov ecx, dword [ebp - 4]
mov eax, 0x80000001
call sym.P_Interface.bpl__Jclregistry_RegWriteString_qqrxuix17System_AnsiStringt2t2
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x41811c
push 0
push 0x1a
push 0xffff
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418104
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x418590
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x14], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4186e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call sub.rtl70.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x14]
mov ecx, 0x418700
mov edx, esi
call sub.rtl70.bpl__System__LStrCat3_qqrv
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4186ba
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x10
lea eax, [ebp - 0x129]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x105
lea eax, [ebp - 0x119]
push eax
mov eax, dword [ebp - 0x14]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4186a3
sub bl, 1
jb 0x418639
je 0x418648
dec bl
je 0x418696
jmp 0x4186a3
mov edx, edi
lea eax, [ebp - 0x119]
call sub.rtl70.bpl__Sysutils_StrPas_qqrpxc
jmp 0x4186a3
mov eax, dword [ebp - 4]
call fcn.004021b4
movzx eax, ax
lea ecx, [ebp - 0x130]
mov edx, 4
call sub.rtl70.bpl__Sysutils_IntToHex_qqrii
push dword [ebp - 0x130]
push 0x41870c
lea ecx, [ebp - 0x134]
movzx eax, word [ebp - 4]
mov edx, 4
call sub.rtl70.bpl__Sysutils_IntToHex_qqrii
push dword [ebp - 0x134]
mov eax, edi
mov edx, 3
call sub.rtl70.bpl__System__LStrCatN_qqrv
jmp 0x4186a3
mov edx, edi
lea eax, [ebp - 0x129]
call sub.rtl70.bpl__Sysutils_StrPas_qqrpxc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4186c1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x41874c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4187e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
lea edx, [ebp - 0xc]
mov eax, ebx
call sym.P_Interface.bpl__Jclfileutils_PathAddSeparator_qqrx17System_AnsiString
mov eax, dword [ebp - 0xc]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x4187a7
call sub.rtl70.bpl__Sysutils_RaiseLastOSError_qqrv
mov di, word [0x4187f8]
xor ebx, ebx
mov esi, 0x6d2710
mov eax, dword [ebp - 8]
and eax, dword [esi]
je 0x4187c8
mov eax, ebx
cmp al, 0xf
ja 0x4187c8
and eax, 0x7f
bts edi, eax
inc ebx
add esi, 4
cmp bl, 0xe
jne 0x4187b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4187ee
lea eax, [ebp - 0xc]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret