joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473740
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea edx, [ecx + 4]
mov esi, 0x28
nop dword [eax + eax]
mov bl, byte [edx]
lea edx, [edx + 1]
mov eax, dword [ecx]
xor al, bl
mov byte [edx - 1], al
sub esi, 1
jne 0x473750
pop edi
pop esi
mov byte [ecx + 0x2c], 0
lea eax, [ecx + 4]
pop ebx
ret

Function at 0x496726
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004966a2
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x49689e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x49689e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x49684d
jg 0x49677f
test eax, eax
je 0x496843
push 1
push 0x1000
call fcn.004a29c8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4967a5
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x49683a
push 0x8000
push ebx
call fcn.004a08d9
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4967d1
jg 0x4967cc
cmp ecx, 0x1000
jb 0x4967d1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00497e68
add esp, 0x10
cmp eax, 0xffffffff
je 0x496816
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4967cc
jl 0x4967fd
test ecx, ecx
jne 0x4967be
push dword [ebp - 0xc]
push ebx
call fcn.004a08d9
push esi
call fcn.004a2a25
add esp, 0xc
xor edi, edi
jmp 0x4968af
cmp byte [edi + 0x24], 0
je 0x49682d
cmp dword [edi + 0x20], 5
jne 0x49682d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x496838
mov edi, dword [edi + 0x18]
jmp 0x49683a
xor edi, edi
push esi
call fcn.004a2a25
pop ecx
jmp 0x4968af
test ecx, ecx
jg 0x49680f
jl 0x49684d
test eax, eax
jae 0x49680f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049826f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x496870
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x49680f
jmp 0x4968a7
push ebx
call fcn.004a6cd7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x49680f
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4968af
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4968ac
mov edi, dword [edi + 0x18]
jmp 0x4968af
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0049826f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x496c1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4e45b8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x496c5c
cmp byte [ebx], 0xa
jne 0x496c5c
or byte [eax + edi + 0x28], 4
jmp 0x496c61
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x496d5f
mov al, byte [edx]
cmp al, 0x1a
je 0x496d41
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x496c90
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x496cb5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x496cbf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x496c72
jmp 0x496d5f
push 0
lea eax, [ebp - 0xc]
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 0x496d3c
cmp dword [ebp - 0xc], 0
je 0x496d3c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e45b8]
test byte [eax + edi + 0x28], 0x48
je 0x496d16
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x496d01
mov byte [esi], dl
jmp 0x496d12
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e45b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x496d5f
cmp byte [ebp - 1], 0xa
jne 0x496d25
cmp esi, ebx
jne 0x496d25
mov byte [esi], 0xa
jmp 0x496d5e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049826f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x496d5f
mov byte [esi], 0xd
jmp 0x496d5e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e45b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496d5b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496d5f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x496d68
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4e45b8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x496dab
cmp word [esi], dx
jne 0x496dab
or byte [edi + eax + 0x28], 4
jmp 0x496db0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x496ee9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x496ec9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x496df2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x496e28
cmp eax, edx
jae 0x496e34
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x496dca
jmp 0x496ee9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496ec5
cmp dword [ebp - 0x14], 0
je 0x496ec5
mov eax, dword [ebx*4 + 0x4e45b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x496e9d
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x496ee3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e45b8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4e45b8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e45b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x496ee6
pop ebx
cmp word [ebp - 4], bx
jne 0x496eae
cmp esi, dword [ebp + 0xc]
jne 0x496eae
mov word [esi], bx
jmp 0x496ee6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0049826f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x496ee9
push 0xd
jmp 0x496ee2
mov ecx, dword [ebx*4 + 0x4e45b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496ee0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496ee9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2ed3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c1634
push 0x4c162c
push str.FlsAlloc
push 0x1e
call fcn.004a2d00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a2f07
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b82ec]
call esi
jmp 0x4a2f0d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a2f51
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c1644
push 0x4c163c
push str.FlsGetValue
push 0x20
call fcn.004a2d00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a2f88
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b82ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4a5f90
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a5e01
Function at 0x4a638a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0048b040
mov eax, dword [0x4e1654]
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.004a3b7e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a63cc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a6528
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0048af10
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 + 0x4e45b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00498251
mov ecx, dword [esi*4 + 0x4e45b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a6521
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a6521
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a6521
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00498251
add esp, 0x14
test edx, edx
jl 0x4a6521
jg 0x4a6497
test eax, eax
jb 0x4a6521
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a6521
jl 0x4a64b1
cmp dword [ebp - 0x1008], eax
ja 0x4a6521
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a64cf
test ebx, ebx
je 0x4a6508
cmp ecx, edi
jae 0x4a6508
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a64e9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a64f5
cmp byte [ecx + 1], 0xa
jne 0x4a64f5
inc ecx
jmp 0x4a64f5
movzx eax, al
movsx eax, byte [eax + 0x4e17a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a64cf
cmp edx, ebx
jne 0x4a64cf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a6526
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0048af00
leave
ret
Function at 0x4a95d3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e1654]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a961e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a9772
test al, al
jne 0x4a9618
sub edx, 2
cmp edx, edi
jne 0x4a95fe
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a9640
lea eax, [edi + 2]
cmp edx, eax
je 0x4a9640
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a951f
add esp, 0x10
jmp 0x4a973a
push esi
lea ecx, [ebp - 0x255]
call fcn.004a9772
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a9683
push dword [ebp - 0x25c]
jmp 0x4a9630
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a96c0
cmp word [ebp - 0x226], 0
je 0x4a96e1
cmp word [ebp - 0x226], ax
jne 0x4a96c0
cmp word [ebp - 0x224], 0
je 0x4a96e1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a951f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a972d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a969a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a9715
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a973a
push 0x4a934f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004982f0
add esp, 0x10
jmp 0x4a970a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048af00
leave
ret

Function at 0x4aa045
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4aa056
pop esi
ret
push ebx
push edi
push esi
call fcn.004aa00e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004a3f22
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4aa07e
push ebx
push esi
push edi
call fcn.0048c760
add esp, 0xc
push 0
call fcn.004a2a25
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4aa442
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004aa093
Function at 0x1002da6
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10051b4]
push esi
xor esi, esi
push 0x1c
mov dword [ebp - 8], esi
push dword [eax + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.01002c10
cmp dword [ebp + 8], esi
je 0x1002e91
push 0x104
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 8]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x1001388
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002e76
cmp dword [ebp - 4], esi
je 0x1002e16
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push ebx
push edi
add eax, eax
push eax
push dword [ebp - 4]
push 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1001378
push dword [ebp - 8]
call esi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
mov ebx, str.http:__www.microsoft.com
push ebx
call edi
pop ecx
shl eax, 1
push eax
push ebx
push 1
push 0
push 0x1001370
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x210]
push eax
call edi
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x1001364
push dword [ebp - 8]
call esi
pop edi
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10012e8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x1002ea1
push 0x1001388
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop esi
leave
ret 4
Function at 0x1003906
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x10053c4], esi
jne 0x100397c
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x1002b68
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], esi
mov dword [0x10053c4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100397c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x1002b54
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003973
cmp dword [ebp - 8], esi
setne al
mov dword [0x10053c0], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10053c0]
pop esi
leave
ret

Function at 0x1003984
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfa0
call fcn.01003906
test eax, eax
je 0x10039cc
lea eax, [ebp - 0xfa0]
push 0x1002bd8
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xf96]
push eax
call dword [sym.imp.msvcrt.dll_vswprintf]
add esp, 0x14
lea eax, [ebp - 0xfa0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
inc eax
leave
ret
Function at 0x10039d1
Capabilities:
Packed with generic packer
Parse pe header

Disassembly:
push 0x70
push 0x1002be8
call fcn.01003c00
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1003a0e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003a0e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003a26
cmp eax, 0x20b
je 0x1003a13
mov dword [ebp - 0x1c], ebx
jmp 0x1003a3a
cmp dword [ecx + 0x84], 0xe
jbe 0x1003a0e
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1003a34
cmp dword [ecx + 0x74], 0xe
jbe 0x1003a0e
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10053d8], 0xffffffff
or dword [0x10053dc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10053d4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10053d0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10053e0], eax
call fcn.01003bfc
cmp dword [0x10050f0], ebx
jne 0x1003a95
push fcn.01003bfc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003bea
push 0x1001104
push 0x1001100
call sub.msvcrt.dll__initterm
mov eax, dword [0x10053cc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10053c8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10010fc
push 0x10010f8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x1003b2b
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1003aff
cmp al, 0x22
jne 0x1003af1
cmp byte [esi], 0x22
jne 0x1003b08
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1003b12
cmp al, 0x20
jbe 0x1003b04
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
jmp 0x10041b2
cmp byte [esi], 0x20
jbe 0x1003b08
inc esi
mov dword [ebp - 0x34], esi
jmp 0x1003b2b
and dh, 0xe8
dec edx
mov ecx, ebx
add ecx, edx
dec edx
sub word [eax + 0x100adfe], 0xd70e
xor cl, 0xc3
jmp 0x10041f8
mov dl, bh
dec dl
mov edx, ebp
inc edx
cmc
cmp ecx, 0xffffffc4
mov eax, 0x4e84
jmp 0x1004198
not edx
mov ch, ah
wait
lea ecx, [esi + ebx]
xchg ch, ch
mov cl, dl
cld
lea ecx, [ecx + ebx]
wait
not dl
wait
xchg dl, ch
nop
jg 0x1004198
dec ecx
mov ch, 4
dec edx
jmp 0x100af12
add dl, dl
lea ecx, [eax + 0x1a]
cld
nop
sub eax, 2
jmp 0x10041c7
inc edx
jmp 0x10041e9
Function at 0x40d8ee
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x5d0b46c6
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0xfd90ff0
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d330
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 0x41d361
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d349
add dl, dl
jne 0x41d36c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d3bd
xor eax, eax
add dl, dl
jne 0x41d379
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d45a
add dl, dl
jne 0x41d388
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d393
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d39e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3a9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d3b3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d358
mov eax, 1
add dl, dl
jne 0x41d3cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3d6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3c2
sub eax, ebx
mov ebx, 1
jne 0x41d409
mov ecx, 1
add dl, dl
jne 0x41d3ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3e6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d420
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d42b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d417
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 0x41d358
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d47b
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 0x41d358
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