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

Disassembly:
push 0x18
mov eax, 0x42ef57
call fcn.00416517
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x40400b
push dword [ebp + 8]
call fcn.0040428c
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40409e
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x403ff4
push ecx
call fcn.0040204e
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403ff4
xor edi, edi
inc edi
jmp 0x403ffe
push dword [ebx]
call fcn.00402049
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.00403e88
jmp 0x40409c
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x430480]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x404094
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.0040204e
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x40408e
mov esi, dword [ebp + 0x10]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403e65
lea ecx, [edi + edi]
push ecx
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.00403e65
mov ecx, dword [esi]
add al, bl
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x18], ecx
cmp edi, dword [eax]
jb 0x404058
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.004018b0
mov eax, edi
call fcn.004164e5
ret 0x10

Function at 0x4040a6
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4040f9
push esi
push dword [ebp + 8]
call fcn.0040428c
mov edi, eax
test edi, edi
je 0x4040f4
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4040f4
mov eax, dword [ebp - 8]
jmp 0x40410b
mov eax, dword [ebp + 0x10]
jmp 0x40410b
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x404111
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ef84
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.004166c0
mov eax, dword [0x43f394]
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 edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x40423f
push ebx
push edx
call fcn.0040428c
mov ebx, eax
test ebx, ebx
jne 0x404179
push esi
jmp 0x404267
lea ecx, [ebp - 0x1014]
call fcn.004018d0
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x4041fe
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.00401690
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.004043c8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x40422c
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.00402b1f
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.004018b0
jmp 0x40426e
push esi
mov ecx, edi
call fcn.0040219d
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x404225
test esi, esi
jne 0x404248
mov esi, 0x432729
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.0040219d
mov eax, edi
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.00415e30
leave
ret 0x10
Function at 0x40dd5e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x40ddd5
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40dd9b
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x40dd9b
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x40ddc8
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40ddcb
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40ddc1
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x430480]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x40dd7e
test eax, eax
je 0x40de1c
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.0040e04d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x430480]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40e0a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x42f54e
call fcn.00416580
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x40e197
cmp edi, dword [ebx + 0xc]
jge 0x40e197
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x40e0f7
cmp edi, dword [esi + 8]
jl 0x40e185
cmp dword [ebp + 0xc], 0
je 0x40e185
xor edi, edi
jmp 0x40e129
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.0040db5d
mov esi, eax
test esi, esi
je 0x40e111
mov dword [esi], vtable.CThreadData.0
jmp 0x40e113
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.004068fe
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x40e145
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x40e151
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x40e1be
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.00417b90
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40e197
cmp edi, dword [esi + 8]
jge 0x40e197
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004164e5
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00406da6
int3
Function at 0x416dcb
Capabilities:
Parse pe header

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

Function at 0x42465e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436d38
push 0x436d30
push str.FlsAlloc
push 0x1f
call fcn.0042451d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424692
push dword [ebp + 8]
mov ecx, esi
call dword [0x430480]
call esi
jmp 0x424698
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4246dc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436d48
push 0x436d40
push str.FlsGetValue
push 0x21
call fcn.0042451d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424713
push dword [ebp + 8]
mov ecx, esi
call dword [0x430480]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42471b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436d50
push 0x436d48
push str.FlsSetValue
push 0x22
call fcn.0042451d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424755
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x430480]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x427076
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 0x427113
push ebx
push esi
call fcn.0042703f
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.00425d89
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4270c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427112
push edi
push eax
call fcn.004230c1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4270e0
call fcn.00423087
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427111
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00425d89
add esp, 0x20
test eax, eax
jne 0x4270ff
push edi
call fcn.00423087
jmp 0x427107
push ebx
call fcn.00423087
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 0x427116
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x427127
pop esi
ret
push ebx
push edi
push esi
call fcn.0042703f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004230c1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42714f
push ebx
push esi
push edi
call fcn.00417610
add esp, 0xc
push 0
call fcn.00423087
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42751f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427164
Function at 0x42e440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e46d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e46d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x14d0fa20
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], ebx
call dword [0x14d12308]
test eax, eax
je 0x14d0fb0e
cmp dword [ebp - 0xc], 0xc8
jne 0x14d0fb0e
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [0x14d12160]
mov esi, eax
cmp esi, 0xffffffff
je 0x14d0fb0e
mov byte [ebp - 1], bl
push ebx
push dword [ebp + 0x10]
call dword [0x14d12158]
test eax, eax
je 0x14d0fab4
lea eax, [ebp - 8]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [0x14d122f4]
test eax, eax
jne 0x14d0fab8
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
je 0x14d0fae8
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [0x14d12198]
test eax, eax
je 0x14d0fadf
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x14d0fae3
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
je 0x14d0fa89
push esi
call dword [0x14d121a8]
push esi
call dword [0x14d12148]
cmp byte [ebp - 1], bl
je 0x14d0fb04
push dword [ebp + 0xc]
call fcn.14d0eaae
pop ecx
xor eax, eax
cmp byte [ebp - 1], bl
sete al
jmp 0x14d0fb10
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41e030
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41e698
call fcn.0041e330
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41e090
cmp eax, 0xffffffff
je 0x41e090
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41e089
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41e089
cmp edx, 0x10000000
jae 0x41e089
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41e086
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e110
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41e14e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41e146
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41e150
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41e136
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41e230
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x41e261
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41e261
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x41e261
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x10093418
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x10093420
bswap edx
inc cx
jo 0x10093402
jno 0x10093402
lea esp, [esp + 4]
inc edi
cmc
jb 0x10093458
btr edx, ecx
lea edx, [esi*4]
not ax
jmp 0x1009345d
btr edx, ecx
jmp 0x10093442
bswap edx
clc
jmp 0x10093466

Function at 0x100956fb
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x10095702
lea esp, [esp + 4]
xor cl, 0x41
xchg edx, eax
bsf eax, ebx
jg 0x100956c7
jle 0x100956c7
or byte [eax + 0x7a88791e], cl
cmpsb byte [esi], byte es:[edi]
and eax, 0xd22fdcb5
aam 0x47
out dx, al
mov edx, 0x3f00132b
jmp 0x100956dd
inc cl
mov eax, 0xd387e42c
xchg edx, eax
not eax
sub eax, 0x5f5584e5
jmp 0x1009588c
xor cl, 0xcd
rdtsc
bsf edx, ebx
jle 0x100957d0
jg 0x10095765
cmp edx, dword [edx]
lea ebx, [edi + ebp*2]
jbe 0x1009573e
lcall 0x27fe, 0xd1eab8c2
ret 0x66f9
mov eax, 0xd45673c6
mov dh, byte [esp]
stc
jmp 0x1009574f
mov eax, 0xd45673c6
mov dh, byte [esp]
stc
mov edx, 0xad02e7a6
lea eax, [ecx + esi]
jmp 0x10095787
js 0x10095718
jns 0x10095718

Function at 0x100aad4e
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 4]
jmp 0x100885ec

Function at 0x100d7037
Capabilities:
Encrypt data using aes

Disassembly:
jmp 0x100d7074
and edi, esi
mov ebp, esi
push esi
mov esi, edi
jmp 0x100d705b

Function at 0x100d7219
Capabilities:
Encrypt data using aes

Disassembly:
pop word [esp]
add esp, 1
jmp 0x100d7250
lea esp, [esp + 1]
and edi, esi
mov edi, dword [edi*4 + reloc.USER32.dll_GetTopWindow]
jmp 0x100d89d3
and edx, esi
mov edx, dword [edx*4 + reloc.USER32.dll_GetTopWindow]
call 0x100d7327
and dword [ebp - 4], 0
mov bx, word [esp]
bsf bx, si
jmp 0x100d7462
pushal
xchg edi, ebp
mov dword [esp + 0x10], eax
call fcn.100d74b6
pop edx
invalid
lea esp, [esp + 0x18]
and edi, 0xff000000
xor ecx, edi
mov edi, edx
jmp 0x100d7429
lea esp, [esp + 0xc]
and ecx, 0xff0000
sub esp, 0x19
lea esp, [esp + 1]
jmp 0x100d76a9

Function at 0x100d76e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea esp, [esp + 4]
cmp eax, 1
jle 0x10087082
mov dl, 0xf8
setle bl
jmp 0x100d76f8
jmp 0x100d76bc
pushal
jmp 0x100d773b
lea ecx, [eax - 1]
mov dword [ebp - 4], ecx
mov ebx, dword [esp]
mov cx, 0x1bd6
jmp 0x100d76e2
mov ecx, 0xff
lea esp, [esp + 0x20]
jmp 0x100870ae

Function at 0x100d7a79
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
call fcn.100d7aa1
and ah, byte [edx + edi + 0x5449ac5d]
rol dword [ecx + 0x20], 1
shl dword [eax - 0x2a], cl
push edx
shl byte [edi + 0x2153e052], 0xcb

Function at 0x100d7aa1
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x100d7ae4
and ebx, ecx
call fcn.100d7ace
Function at 0x100d7bea
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
and ebx, ecx
lea esp, [esp + 4]
xor edi, dword [ebx*4 + reloc.USER32.dll_GetTopWindow]
jmp 0x100d7832

Function at 0x100d9b9f
Capabilities:
Hash data with md5

Disassembly:
lea esp, [esp + 0x18]
and dword [eax], 0
mov dword [eax + 8], 0x67452301
jmp 0x100d99b4
lea esp, [esp + 4]
mov dword [eax + 0x14], 0x10325476
ret
mov dword [eax + 0xc], reloc.USER32.dll_GetTopWindow
mov dword [eax + 0x10], 0x98badcfe
pushfd
jmp 0x100d999d
call fcn.100d9c04
loop 0x100d99f8
call 0x60eb3c08
mov bh, byte [ecx + 0x5641bc2c]
inc edi
loope 0x100d9a32
aas
push es
lea esp, [esp + 4]
and dword [eax + 4], 0
sub esp, 0x16
push word [esp + 1]
jmp 0x100d996e
invalid
lea esp, [esp + 2]
lea esp, [esp + 4]
jl 0x100d99f1
mov eax, esi
jmp 0x100d9bdb
push 0x78
mov al, byte [esp]
lea eax, [ebp + ebp]
lea eax, reloc.USER32.dll_GetTopWindow
jmp 0x100d9bfe
mov al, 0x91
mov ax, word [esp]
mov ax, word [esp]
jmp 0x100d9bc5
pop eax
jmp 0x100d99f1
Function at 0x402e7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c7c
test esi, esi
jne 0x402eb2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404d6c
jmp 0x402ed0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402d90
mov edi, eax
test esi, esi
je 0x402ed0
cmp dword [ebx], 0
je 0x402ed0
dec esi
jmp 0x402eb9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40359c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4035b8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x965008], 0x8088405
inc edx
mov dword [ebx + 0x965008], edx
fld qword [ebx + 0x965058]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403c9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x965010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d34
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d14
xor eax, eax
push ebp
push 0x403d0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403d50
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d14
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x965010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x965010], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a5c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x98b04c], 0
je 0x404abd
cmp word [0x98b220], 0xd7b2
jne 0x404a85
cmp dword [0x98b228], 0
jbe 0x404a85
mov eax, 0x98b21c
call dword [0x98b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x965060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404ae4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x965020], 0
jne 0x404ad9
push 0
push 0x965080
push 0x965060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ab4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x98b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bf8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc