joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef340
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcb000]
push edi
or ebp, 0xffffffff
jmp 0x4ef362
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ef369
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ef358
mov eax, 1
add ebx, ebx
jne 0x4ef37b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ef38c
jne 0x4ef3ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ef3ab
dec eax
add ebx, ebx
jne 0x4ef398
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ef370
add ebx, ebx
jne 0x4ef3a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ef3fd
xor ecx, ecx
sub eax, 3
jb 0x4ef3c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ef432
sar eax, 1
mov ebp, eax
jmp 0x4ef3ce
add ebx, ebx
jne 0x4ef3ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ef39c
inc ecx
add ebx, ebx
jne 0x4ef3dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ef39c
add ebx, ebx
jne 0x4ef3e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ef3de
jne 0x4ef3fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ef3de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ef41c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ef40e
jmp 0x4ef35e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ef41c
add edi, ecx
jmp 0x4ef35e
pop esi
mov edi, esi
mov ecx, 0xb19
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ef43a
cmp byte [edi], 6
jne 0x4ef43a
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 0x4ef43f
lea edi, [esi + 0xed000]
mov eax, dword [edi]
or eax, eax
je 0x4ef4ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf210c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf2150]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ef46c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf2158]
or eax, eax
je 0x4ef4a8
mov dword [ebx], eax
add ebx, 4
jmp 0x4ef489
call dword [esi + 0xf2154]
mov ebp, dword [esi + 0xf215c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x4ef4e2
sub esp, 0xffffff80
jmp 0x40b8d0
Function at 0x1001861e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1001862d
pop dword [ebp - 0x18]
mov eax, 0x45fe85c5
add eax, 0xca030068
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x42e7d
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x9687ed9c
add ecx, 0x697863e7
xor esi, esi
add esi, eax
mov edx, 0x77f3e93d
add edx, 0x980fd4c3
add edx, dword [ebp - 0x18]
mov ebx, 0x4e03ce31
add ebx, 0x72fd1ebe
xor dword [ebp - 0xc], ebx
mov edi, dword [edx]
sub dword [ebp - 4], 0x3cd003ae
sub edi, ebx
xor dword [ebp - 0x10], esi
mov dword [esi], edi
sub dword [ebp - 0xc], edx
add esi, 0xdb58f035
sub esi, 0xdb58f031
add edx, 0x5fc1c815
add edx, 0xa03e37ef
loop 0x10018689
add eax, 0x9774b5b1
add eax, 0x688c832e
xor ebx, ebx
add ebx, eax
add eax, 0x7a8f805b
add eax, 0x85707faa
mov ecx, 0x3599e65e
sub ecx, 0x2599e65e
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001861e
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001861e
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x100afac0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 8], 0x1505
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0xab8f978b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
sub eax, 0xab8f978b
je 0x100afb75
jmp 0x100afaff
mov eax, dword [ebp - 0x18]
sub eax, 0xb7523f36
je 0x100afbb8
jmp 0x100afb12
mov eax, dword [ebp - 0x18]
nop word cs:[eax + eax]
nop
sub eax, 0xe738b716
je 0x100afb90
jmp 0x100afb30
mov eax, dword [ebp - 0x18]
sub eax, 0x1272ecee
je 0x100afd2a
nop
jmp 0x100afb45
mov eax, dword [ebp - 0x18]
sub eax, 0x22384cfd
je 0x100afcc5
jmp 0x100afb58
mov eax, dword [ebp - 0x18]
nop dword [eax + eax]
sub eax, 0x5ad59626
je 0x100afbc5
jmp 0x100afb70
jmp 0x100afd33
mov edx, dword [ebp - 0x10]
mov eax, 0x1272ecee
mov ecx, 0xe738b716
cmp edx, dword [ebp + 0xc]
cmovb eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x100afd33
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov al, byte [eax + ecx]
mov byte [ebp - 9], al
movzx edx, byte [ebp - 9]
mov eax, 0x5ad59626
mov ecx, 0xb7523f36
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x100afd33
mov dword [ebp - 0x14], 0x1272ecee
nop
jmp 0x100afd33
mov edx, dword [ebp - 8]
shl edx, 5
mov eax, dword [ebp - 8]
xor esi, esi
sub esi, 0xf8ce4a34
add esi, 0
xor ecx, ecx
sub ecx, esi
add edx, ecx
xor ecx, ecx
sub ecx, edx
add ecx, 0
xor edx, edx
sub edx, 0x7a2c166d
sub edx, eax
add edx, 0x7a2c166d
xor eax, eax
sub eax, edx
sub ecx, eax
mov eax, 0xe3745068
add eax, 0
sub eax, ecx
sub eax, 0xe3745068
sub eax, 0xdb8161b
sub eax, 0xefd45eec
add eax, 0xdb8161b
add eax, 0xd64f5b04
sub eax, 0xf8ce4a34
sub eax, 0xd64f5b04
sub eax, 0x69ba3414
add eax, 0xefd45eec
add eax, 0x69ba3414
movzx edx, byte [ebp - 9]
xor ecx, ecx
sub ecx, 0xffe6b68a
add eax, ecx
xor ecx, ecx
sub ecx, 0x3db35079
add eax, ecx
add eax, 0x36101f2c
add eax, 0xffe6b68a
sub eax, 0x36101f2c
add eax, 0x14c630c3
sub eax, 0xbb41af24
sub eax, 0x14c630c3
xor ecx, ecx
sub ecx, edx
sub eax, ecx
sub eax, 0xe7bbf560
add eax, 0xbb41af24
add eax, 0xe7bbf560
mov ecx, 0xadb0120c
add ecx, 0
sub ecx, eax
sub ecx, 0xadb0120c
xor eax, eax
sub eax, 0x3db35079
add eax, 0
add ecx, 0xab23b13b
add ecx, eax
sub ecx, 0xab23b13b
xor eax, eax
sub eax, ecx
add eax, 0
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0x22384cfd
nop dword [eax]
jmp 0x100afd33
mov eax, dword [ebp - 0x10]
xor ecx, ecx
sub ecx, 0xc65672fe
add ecx, 0
add eax, 0x21e50336
sub eax, ecx
sub eax, 0x21e50336
xor ecx, ecx
sub ecx, 1
add ecx, 0
add eax, 0x6e09e137
sub eax, ecx
sub eax, 0x6e09e137
add eax, 0xce0a5f6e
sub eax, 0xc5ce1527
sub eax, 0xce0a5f6e
xor ecx, ecx
sub ecx, 0xc65672fe
add eax, ecx
add eax, 0x6ff77b75
add eax, 0xc5ce1527
sub eax, 0x6ff77b75
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xab8f978b
jmp 0x100afd33
mov eax, dword [ebp - 8]
add esp, 0x14
pop esi
pop ebp
ret
jmp 0x100afae9
Function at 0x1013716c
Capabilities:
Parse pe header

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

Function at 0x1013b550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1013b57d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1013b57d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1013b8a0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1014bd40
push 0x1014bd38
push str.FlsAlloc
push 0x1f
call fcn.1013bb83
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1013b8d4
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1013b8da
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1013b91e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1014bd50
push 0x1014bd48
push str.FlsGetValue
push 0x21
call fcn.1013bb83
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1013b955
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1013b95d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1014bd58
push 0x1014bd50
push str.FlsSetValue
push 0x22
call fcn.1013bb83
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1013b997
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1013fd40
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 0x1013fddd
push ebx
push esi
call fcn.1013fde0
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.1013fc44
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1013fd8a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1013fddc
push edi
push eax
call fcn.1013d872
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1013fdaa
call fcn.1013cd4d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1013fddb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1013fc44
add esp, 0x20
test eax, eax
jne 0x1013fdc9
push edi
call fcn.1013cd4d
jmp 0x1013fdd1
push ebx
call fcn.1013cd4d
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 0x10001180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
test byte [0x10004018], 8
jne 0x100011c0
mov dword [ebp + 0x10], edi
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x14], edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._F3DAudioCalculate
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str._p___p___p__0x_x___p_n
mov dword [esp + 8], str.X3DAudioCalculate
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jmp 0x100011a1

Function at 0x100025e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002638
cmp byte [esi + ebx - 1], 0xa
je 0x1000260c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10008084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10002be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x10008094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10002da0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x10008094]
movzx eax, al
bt eax, esi
jae 0x10002e00
mov ecx, dword [0x10008084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10002ca5
test byte [0x10004078], 8
jne 0x10002d40
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10004088], 8
jne 0x10002cf0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10002c74
cmp esi, 3
jbe 0x10002cb0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10006368]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10002c74
mov ecx, dword [0x10008094]
test ecx, ecx
je 0x10002de0
mov dword [esp], 0x10004088
call dword [0x10008094]
test al, 8
je 0x10002c4b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10002c4b
mov ebx, dword [0x10008094]
test ebx, ebx
je 0x10002dc0
mov dword [esp], 0x10004078
call dword [0x10008094]
test al, 8
je 0x10002c36
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10002c3e
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10008094
call sym._load_func.part.0
jmp 0x10002bfd
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10008094
call sym._load_func.part.0
jmp 0x10002d4a
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10008094
call sym._load_func.part.0
jmp 0x10002cfe
mov eax, 0xffffffff
jmp 0x10002ca5
Function at 0x465050
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5f000]
push edi
jmp 0x46506a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x465071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x465060
mov eax, 1
add ebx, ebx
jne 0x465083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x465078
jne 0x465094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465078
xor ecx, ecx
sub eax, 3
jb 0x4650a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46511a
mov ebp, eax
add ebx, ebx
jne 0x4650b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4650c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4650e4
inc ecx
add ebx, ebx
jne 0x4650d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4650c5
jne 0x4650e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4650c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465104
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4650f5
jmp 0x465066
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465104
add edi, ecx
jmp 0x465066
pop esi
mov edi, esi
mov ecx, 0x290
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465122
cmp byte [edi], 1
jne 0x465122
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 0x465127
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x46519f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x88284]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8833c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465154
mov ecx, edi
jns 0x465183
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 + 0x88344]
or eax, eax
je 0x465199
mov dword [ebx], eax
add ebx, 4
jmp 0x465171
call dword [esi + 0x88340]
mov ebp, dword [esi + 0x88348]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x4651d3
sub esp, 0xffffff80
jmp 0x403640
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40d02c], 0x8088405
inc edx
mov dword [0x40d02c], edx
mul edx
mov eax, edx
ret

Function at 0x407d44
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40d560
mov eax, esi
mov edx, 8
test al, 1
je 0x407d60
shr eax, 1
xor eax, 0xedb88320
jmp 0x407d62
shr eax, 1
dec edx
jne 0x407d53
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407d4c
pop esi
ret

Function at 0x407d8f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40d55c], 0
jne 0x407d9b
call fcn.00407d44
push 1
push 0x40d55c
call fcn.004043fc
mov eax, edi
test esi, esi
je 0x407dc6
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40d560]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407da1
mov eax, ebx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..data
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x66807204
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data_1
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7b2f5093
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40d7b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x40d7e5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40d85a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x40d847
dec ecx
je 0x40d832
sub ecx, 2
je 0x40d81f
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0040d420
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40d887
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x1001152
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e4
cmp eax, 1
jl 0x100121b
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011bb
cmp byte [esi], 0x3a
je 0x100119e
inc esi
cmp byte [esi], bl
jne 0x1001192
jmp 0x10011a1
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011bb
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011c1
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001219
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001219
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10