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

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e4f
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e3e
cmp dword [ebp + 0x14], 1
je 0x405e40
cmp dword [ebp + 0x14], 2
je 0x405e40
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x406222
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406246
xor eax, eax
test eax, eax
je 0x406258
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406258
xor ecx, ecx
jmp 0x40625b
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x43e2c4], 0
push esi
jne 0x40633c
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 0x406316
mov dword [ecx*4 + 0x43e2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406311
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40636d
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 + 0x43e2c0]
xor eax, esi
inc ecx
dec edx
jne 0x40634f
pop edi
not eax
pop esi
ret 0xc
Function at 0x40140b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
les edx, [eax]
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40143a
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040114c
test byte [ebx - 0x48], 7
lea eax, [ebp - 0x40]
push eax
call fcn.0040115c
push eax
push esi
push dword [ebp + 8]
call fcn.00401111
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0040114c
xchg esp, eax
ret

Function at 0x405a73
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405ac4
xor eax, eax
jmp 0x405aeb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405aeb
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405ac0
call esi
pop esi
leave
ret 4

Function at 0x405b25
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426750], 0x44
push eax
xor eax, eax
push 0x426750
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405b64
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b68
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405c06
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040600d
mov edi, eax
cmp edi, 0xffffffff
je 0x405c47
test byte [esp + 0x10], 1
push esi
je 0x405c29
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c2f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c38
xor eax, eax
inc eax
jmp 0x405c49
test byte [esp + 0x10], 4
jne 0x405c47
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x100256ab
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100256cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10025288
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x100256ee
test byte [esp + 8], 2
je 0x100256ee
call fcn.100252fb
mov dword [eax], 0xd
call fcn.10025304
mov dword [eax], 5
jmp 0x100256c7
xor eax, eax
ret

Function at 0x10ee25b0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10ee25ba
pushal
call 0x10ee25c0
pop ebp
sub ebp, 0x10
sub ebp, 0xee25b0
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10ee25e4
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10ee25ed
mov eax, 0xee25b0
add eax, ebp
add eax, 0x63
mov ecx, 0x5ac
mov edx, 0xf42e1751
xor byte [eax], dl
inc eax
dec ecx
jne 0x10ee2604
jmp 0x10ee2617
ficomp dword [edx + ebx*8 + 0x51516dd8]
push ecx
rcl byte [eax + 0x515151a9]
push edx
pushfd
jmp 0x623f7783
Function at 0x6dfc60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19f000]
push edi
jmp 0x6dfc7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6dfc81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6dfc70
mov eax, 1
add ebx, ebx
jne 0x6dfc93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6dfca4
jne 0x6dfcc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6dfcc3
dec eax
add ebx, ebx
jne 0x6dfcb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6dfc88
add ebx, ebx
jne 0x6dfcbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6dfd15
xor ecx, ecx
sub eax, 3
jb 0x6dfcdb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6dfd4a
sar eax, 1
mov ebp, eax
jmp 0x6dfce6
add ebx, ebx
jne 0x6dfce6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6dfcb4
inc ecx
add ebx, ebx
jne 0x6dfcf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6dfcb4
add ebx, ebx
jne 0x6dfd01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6dfcf6
jne 0x6dfd12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6dfcf6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6dfd34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6dfd26
jmp 0x6dfc76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6dfd34
add edi, ecx
jmp 0x6dfc76
pop esi
mov edi, esi
mov ecx, 0x8f59
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6dfd52
cmp byte [edi], 0x16
jne 0x6dfd52
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 0x6dfd57
lea edi, [esi + 0x2d3000]
mov eax, dword [edi]
or eax, eax
je 0x6dfdcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x38cbc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x38cde4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6dfd84
mov ecx, edi
jns 0x6dfdb3
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 + 0x38cdec]
or eax, eax
je 0x6dfdc9
mov dword [ebx], eax
add ebx, 4
jmp 0x6dfda1
call dword [esi + 0x38cde8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6dfe00
cmp al, 0xef
ja 0x6dfdf3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6dfdd5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6dfde2
mov ebp, dword [esi + 0x38cdf0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x267]
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 0x6dfe34
sub esp, 0xffffff80
jmp 0x4e2757
Function at 0x404520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4063d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x409008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x404556
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404606
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00404810
test al, al
je 0x4045af
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4045f2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4045e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4045e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040494f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040490e
mov esp, ebp
pop ebp
ret
Function at 0x503e90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd8000]
push edi
jmp 0x503eaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x503eb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503ea0
mov eax, 1
add ebx, ebx
jne 0x503ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x503ed4
jne 0x503ef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503ef3
dec eax
add ebx, ebx
jne 0x503ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x503eb8
add ebx, ebx
jne 0x503eef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x503f45
xor ecx, ecx
sub eax, 3
jb 0x503f0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x503f7a
sar eax, 1
mov ebp, eax
jmp 0x503f16
add ebx, ebx
jne 0x503f16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503ee4
inc ecx
add ebx, ebx
jne 0x503f24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503ee4
add ebx, ebx
jne 0x503f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x503f26
jne 0x503f42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x503f26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x503f64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x503f56
jmp 0x503ea6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x503f64
add edi, ecx
jmp 0x503ea6
pop esi
mov edi, esi
mov ecx, 0xe3e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x503f82
cmp byte [edi], 4
jne 0x503f82
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 0x503f87
lea edi, [esi + 0x101000]
mov eax, dword [edi]
or eax, eax
je 0x503fff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x104798]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1047d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x503fb4
mov ecx, edi
jns 0x503fe3
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 + 0x1047dc]
or eax, eax
je 0x503ff9
mov dword [ebx], eax
add ebx, 4
jmp 0x503fd1
call dword [esi + 0x1047d8]
mov ebp, dword [esi + 0x1047e0]
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 0x504033
sub esp, 0xffffff80
jmp 0x406b88
Function at 0x4062ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062ee
xor eax, eax
test eax, eax
je 0x406300
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406300
xor ecx, ecx
jmp 0x406303
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x42ce04], 0
push esi
jne 0x406426
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 0x406400
mov dword [ecx*4 + 0x42ce00], eax
inc ecx
cmp ecx, 0x100
jl 0x4063fb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406457
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 + 0x42ce00]
xor eax, esi
inc ecx
dec edx
jne 0x406439
pop edi
not eax
pop esi
ret 0xc

Function at 0x104e6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push 0x10352
mov dword [0x10a88], eax
mov eax, dword [ebp + 0xc]
push esi
push esi
mov dword [0x10a84], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [section..data], eax
push esi
lea eax, [ebp + 0xc]
push eax
mov dword [0x10a94], esi
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov edi, dword [sym.imp.HAL.dll_KeGetCurrentIrql]
call edi
test al, al
je 0x10533
xor cl, cl
call dword [sym.imp.HAL.dll_KfRaiseIrql]
call edi
test al, al
je 0x1053d
xor eax, eax
jmp 0x10567
push esi
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x1f03ff
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov eax, dword [0x10a94]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x402f50
Capabilities:
Query environment variable
Set environment variable

Disassembly:
sub esp, 0x21c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
call fcn.004080c0
push 0x4153ac
lea ecx, [esp + 0x10]
call fcn.00408c90
mov eax, dword [esi + 0x34]
test eax, eax
mov byte [esp + 0x1c], 0
je 0x402fc7
push 0x200
lea eax, [esp + 0x20]
push eax
push str.CLASSPATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00408c90
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
call fcn.00408340
lea ecx, [esp + 0x14]
call fcn.00407bb0
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00402db0
add esp, 8
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
call dword [edx + 4]
push eax
lea ecx, [esp + 8]
call fcn.004082a0
lea eax, [esp + 4]
push 0
push eax
call fcn.00402db0
add esp, 8
lea ecx, [esp + 0xc]
call fcn.00408080
push eax
lea ecx, [esp + 8]
call fcn.00408080
push eax
push str._1__2
lea ecx, [esi + 0x24]
call fcn.00407f60
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x4153ac
push str.CLASSPATH
call esi
push 0x4153ac
push 0x415538
call esi
lea ecx, [esp + 0xc]
call fcn.00407bb0
lea ecx, [esp + 4]
call fcn.00407bb0
mov ax, 1
pop esi
add esp, 0x21c
ret

Function at 0x4031f0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
lea esi, [edi + 0x2c]
push esi
mov dword [esp + 0xc], edi
call dword [eax]
test eax, eax
je 0x403227
mov ecx, esi
call fcn.00407f80
test eax, eax
jne 0x403231
mov ecx, edi
call fcn.00403050
mov ecx, esi
call fcn.00407f80
test eax, eax
jne 0x403231
pop edi
or ax, 0xffff
pop esi
add esp, 0x14
ret
mov al, byte [0x41c000]
test al, al
jne 0x403311
push ebx
push ebp
push 0
lea ecx, [esp + 0x18]
mov byte [0x41c000], 1
call fcn.004080c0
push 0x4155b4
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.00408430
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.00408340
lea ecx, [esp + 0x1c]
call fcn.00407bb0
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
push 0
push str.PATH
call ebp
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00407f80
lea ebx, [esi + eax + 1]
push ebx
call fcn.00408c60
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00408080
mov edx, esi
mov edi, edi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4032b0
mov edi, esi
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4032c0
mov dx, word [0x4152a8]
mov eax, esi
mov word [edi], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4032d7
sub eax, edx
sub ebx, eax
push ebx
add eax, esi
push eax
push str.PATH
call ebp
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call fcn.004079e0
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00407bb0
mov edi, dword [esp + 0x10]
pop ebp
pop ebx
mov ecx, edi
call fcn.00402f50
pop edi
pop esi
add esp, 0x14
ret
Function at 0x406880
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
mov ebx, 0x41b088
jmp 0x4068a0
mov ecx, 0xa
mov esi, str.SoftwareSybaseAdaptive_Server_Anywhere
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4068b6
mov ax, word [0x415718]
mov word [edi], ax
mov eax, dword [esp + 0xe4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068d0
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4068e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push eax
call ebp
test eax, eax
jne 0x40695a
mov edx, dword [esp + 0xec]
lea ecx, [esp + 0xf0]
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40695a
mov ecx, dword [esp + 0xf4]
cmp dword [esp + 0x14], ecx
je 0x406976
add ebx, 4
cmp ebx, 0x41b090
jl 0x4068a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret

Function at 0x407b50
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, str.Unknown_error
je 0x407b60
mov eax, esi
push 0
push str.SQLAnywhere_Fatal_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x407b7d
push esi
call fcn.0040b4a6
add esp, 4
push 1
call fcn.0040b95c
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x408350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41408f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
mov dword [esp + 0xc], 0
push 0x40
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x40
call fcn.00408c60
mov ecx, dword [0x41b0e0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 4
push ecx
push eax
mov dword [esp + 0x18], eax
call edi
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x14]
call fcn.00407c10
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 1
call fcn.00407c10
mov esi, dword [esp + 0x28]
push 0x40
mov ebp, eax
mov dword [esi], 0
mov dword [esi + 4], 0x40
call fcn.00408c60
mov ecx, dword [0x41b0e0]
add esp, 4
push ecx
push eax
mov dword [esi], eax
call edi
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.00407c10
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x10], 1
mov byte [esp + 0x24], 0
call fcn.004079e0
mov ecx, dword [esp + 0x1c]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret