joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4cc53a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc541
ret
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4cd89f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x4ea348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x4ea348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x4e9178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd8a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x100322cd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003230c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003230c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003230c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003230c
cmp dword [ecx + 0x74], 0xe
jbe 0x1003230c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10034fbe
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 0x1003505b
push ebx
push esi
call fcn.10034f86
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.10034f1a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10035008
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003505a
push edi
push eax
call fcn.10032f5d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10035028
call fcn.10032fab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10035059
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10034f1a
add esp, 0x20
test eax, eax
jne 0x10035047
push edi
call fcn.10032fab
jmp 0x1003504f
push ebx
call fcn.10032fab
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 0x100352c8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003c668
push 0x1003c660
push str.FlsAlloc
push 0x1f
call fcn.100351e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100352fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b120]
call esi
jmp 0x10035302
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10035346
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003c678
push 0x1003c670
push str.FlsGetValue
push 0x21
call fcn.100351e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003537d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10035385
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003c680
push 0x1003c678
push str.FlsSetValue
push 0x22
call fcn.100351e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100353bf
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1003b120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1003a9f0
Capabilities:
Parse pe header

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

Disassembly:
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x77b865f1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7c0c410b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401443
pop dword [ebp - 0x50]
mov eax, 0x397cca5a
sub eax, 0x393cb617
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x19728989
sub dword [ebp - 0x60], 0xcb20443e
mov dword [ebp - 0x5c], 0x625471fd
sub dword [ebp - 0x5c], 0x302125b8
mov dword [ebp - 0x58], 0xd83315f
add dword [ebp - 0x58], 0x3ec912cf
mov dword [ebp - 0x54], 0xf5f7d00f
sub dword [ebp - 0x54], 0xf5f7d00f
lea eax, [ebp - 0x60]
push eax
mov eax, 0x539b77d5
sub eax, 0x535af6d1
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xd236642b
add dword [ebp - 0x60], 0xa23c052b
mov dword [ebp - 0x5c], 0xede2ff01
add dword [ebp - 0x5c], 0x53896274
mov dword [ebp - 0x58], 0xa4e60652
add dword [ebp - 0x58], 0xbe89661a
mov dword [ebp - 0x54], 0x36b60e37
sub dword [ebp - 0x54], 0x36b60e37
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x283a7e2c
sub eax, 0x27f9fd2c
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x36156
push 0
call eax
mov ecx, 0x6cf36aa7
add ecx, 0x930cd485
mov edx, eax
mov esi, 0x46e400
add esi, dword [ebp - 0x50]
mov ebx, 0xc16bf608
add ebx, 0x79a2eb31
xor dword [ebp - 0x10], ebx
mov edi, dword [esi]
sub dword [ebp - 0x30], 0xa4a054ed
sub edi, ebx
mov dword [ebp - 0x14], 0x81ba4b0e
mov dword [edx], edi
add dword [ebp - 0x24], 0x6b07e9dd
add edx, 0x3aea25cb
add edx, 0xc515da39
add esi, 0xd583f3c3
add esi, 0x2a7c0c41
loop 0x40155f
add eax, 0xef83
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x1001ecd
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100a9d0]
test eax, eax
je 0x1001ee9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [0x100a9d0], 0
push esi
mov esi, 0x3e8
push esi
push 0x40
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [0x100a9d0], eax
je 0x1002029
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
mov ebx, 0x100122c
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xea
jne 0x1001f72
push 0x42
push dword [ebp - 4]
push dword [0x100a9d0]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
jne 0x1001f5c
push dword [0x100a9d0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [0x100a9d0], 0
xor eax, eax
jmp 0x1002027
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [0x100a9d0], eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
test eax, eax
mov ebx, 0x1f4
je 0x1001f93
push ebx
push dword [0x100a9d0]
mov dword [ebp - 4], esi
push 9
push dword [0x100ac84]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x100a9d0]
cmp word [eax], 0
je 0x1002024
push esi
push 0x40
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
mov dword [ebp + 8], esi
je 0x1002024
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push esi
push dword [0x100a9d0]
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
ja 0x1001fd7
push esi
push dword [0x100a9d0]
jmp 0x1002015
push 0x42
add eax, eax
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalReAlloc]
call esi
test eax, eax
je 0x100201b
push dword [ebp - 4]
mov dword [ebp + 8], eax
push eax
push dword [0x100a9d0]
call edi
mov eax, dword [ebp - 4]
push 0x42
add eax, eax
push eax
push dword [0x100a9d0]
call esi
test eax, eax
je 0x100201b
push dword [ebp + 8]
mov dword [0x100a9d0], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x10024d4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x44c]
push eax
xor edi, edi
push 0x1001284
mov dword [ebp - 4], edi
mov word [ebp - 0x44c], di
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x44c], di
jne 0x1002513
push edi
call dword [sym.imp.KERNEL32.dll_ExitThread]
lea eax, [ebp - 0x44c]
push eax
call fcn.0100202e
push 0x100ac60
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x1002544
push edi
push edi
push 0x1009
push ebx
call esi
cmp word [0x100aca0], di
mov dword [0x100a9cc], edi
je 0x1002566
push 0x100aca0
lea eax, [ebp - 0x44c]
push eax
call fcn.010023ce
jmp 0x1002568
xor eax, eax
push eax
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x44c]
push eax
call fcn.01002078
test eax, eax
jne 0x1002587
push edi
push 1
push 0xb
push ebx
call esi
jmp 0x10025e9
mov eax, dword [0x100a9cc]
push 0x10023b0
push 1
push 0x1030
push ebx
mov dword [0x100a9c8], eax
call esi
push 3
pop eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
push edi
push 0x102b
push ebx
mov dword [ebp - 0x3c], 8
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call esi
cmp dword [0x100a9c8], 0x400
jae 0x10025db
mov dword [0x100a9c8], 1
jmp 0x10025e2
shr dword [0x100a9c8], 0xa
mov dword [ebp - 4], 1
push 0x100ac60
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10025fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
and word [ebp - 0x214], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1001320
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x1002664
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10012f8
push dword [ebp - 4]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [ebp - 0x41c], 0
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x10012a0
push edi
call esi
test eax, eax
jne 0x10026ae
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10012f8
push dword [ebp - 4]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp word [ebp - 0x214], di
mov word [0x100aca0], di
mov esi, 0x100aca0
je 0x10026df
lea eax, [ebp - 0x214]
push eax
call fcn.01002053
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [ebp - 0x41c], di
je 0x10026f6
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x10026fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001438
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002817
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x100140c
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x100280e
cmp dword [ebp - 0x10], ebx
je 0x100280e
lea eax, [ebp - 4]
push eax
push section..data
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10013ec
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x100a9c4
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10013c0
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x100a9d4
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10013ac
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
cmp dword [0x100a9d4], ebx
je 0x10027e9
lea eax, [ebp - 4]
push eax
push 0x100a048
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x100138c
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x10027e9
mov eax, 0x5a0
cmp dword [0x100a048], eax
jbe 0x10027e9
mov dword [0x100a048], eax
push dword [ebp - 8]
call fcn.01001ecd
test eax, eax
je 0x1002801
call fcn.010025fe
test eax, eax
je 0x100280e
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1002819
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10036b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x100a068]
je 0x10036d8
inc eax
cmp eax, 0x12
jb 0x10036c9
shl eax, 3
cmp edx, dword [eax + 0x100a068]
mov dword [ebp + 8], eax
jne 0x1003876
mov ecx, dword [0x100a9e8]
cmp ecx, 1
je 0x100384b
test ecx, ecx
jne 0x100370a
cmp dword [0x100a050], 1
je 0x100384b
cmp edx, 0xfc
je 0x1003876
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003745
push 5
pop ecx
mov esi, 0x1001894
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003754
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100378c
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100376c
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001890
push ebx
call fcn.01004f70
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003791
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100a06c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10037a8
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01004110
mov edx, esp
push 6
pop ecx
mov esi, 0x1001874
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10037d4
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10037e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10037f9
mov eax, dword [ebp + 8]
mov esi, 0x1001870
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100a06c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003814
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003820
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001848
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01004e6d
add esp, 0xc
jmp 0x1003876
mov ecx, dword [eax + 0x100a06c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003856
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret