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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4017c9
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
pop esi
mov byte [ecx], 0
add esp, 8
ret

Function at 0x4017e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x138
mov dword [esp + 0x10], 0x104
push ebx
push esi
push edi
push ebp
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ebx, eax
mov esi, dword [esp + 0x154]
mov edi, dword [esp + 0x158]
cmp dword [esi], 0
jne 0x401853
mov eax, dword [esp + 0x150]
push esi
mov ecx, dword [esp + 0x150]
push 0x20019
push 0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
mov dword [edi], 0
push ecx
call ebp
mov ebp, eax
test ebp, ebp
je 0x401853
push ebx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x138
ret
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
push edx
lea edx, [esp + 0x38]
push eax
lea eax, [esp + 0x40]
push ecx
lea ecx, [esp + 0x48]
push edx
lea edx, [esp + 0x38]
push eax
lea eax, [esp + 0x60]
push ecx
push 0
mov ecx, dword [esi]
push edx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push eax
push ecx
call ebp
mov ebp, eax
test ebp, ebp
je 0x4018ac
push ebx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x138
ret
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push 0
push ebx
call ebp
mov dword [esp + 0x18], pe_nt_image_headers32
mov ebp, eax
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ebp
mov eax, dword [esp + 0x164]
push ecx
push 0
mov ecx, dword [edi]
push edx
push eax
push ecx
mov edx, dword [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40191c
push ebp
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x138
ret
mov edx, dword [esp + 0x164]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x40192d
mov edx, eax
mov edi, dword [esp + 0x160]
mov esi, ebp
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x138
ret
Function at 0x404c7c
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406e78
push 0x404e14
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov dword [0x405318], 0xffffffff
mov eax, dword [0x405318]
mov dword [0x40531c], eax
call dword [sym.imp.MSVCRT20.dll___p__fmode]
mov ecx, dword [0x407184]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT20.dll___p__commode]
mov ecx, dword [0x407180]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT20.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x405314], eax
call fcn.00404e13
call fcn.00404e00
push 0x407198
push 0x407194
call sub.MSVCRT20.dll__initterm
add esp, 8
mov eax, dword [0x40717c]
push eax
mov eax, dword [0x407178]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT20.dll___getmainargs]
add esp, 0x14
push 0x407190
push 0x407188
call sub.MSVCRT20.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT20.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x404d58
mov al, byte [ebp - 0x3c]
inc esi
mov al, byte [esi]
test al, al
je 0x404d50
cmp al, 0x22
jne 0x404d45
cmp byte [esi], 0x22
jne 0x404d62
inc esi
jmp 0x404d62
cmp al, 0x20
jbe 0x404d62
inc esi
cmp byte [esi], 0x20
ja 0x404d5c
cmp byte [esi], 0
je 0x404d72
cmp byte [esi], 0x20
ja 0x404d72
inc esi
cmp byte [esi], 0
jne 0x404d67
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
mov eax, 0xa
je 0x404d95
movzx eax, word [ebp - 0x54]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT20.dll_exit]
jmp 0x404dd3
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41adf0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push ebp
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
shr esi, 2
je 0x4507f1
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebx, dword [eax + esi*4]
mov ebp, dword [edx + esi*4]
mov dword [edi + esi*4], ebx
xor dword [eax + esi*4], ebp
inc esi
jne 0x4507e2
and ecx, 3
je 0x450809
mov bl, byte [ecx + eax - 1]
mov bh, byte [ecx + edx - 1]
mov byte [ecx + edi - 1], bl
xor byte [ecx + eax - 1], bh
dec ecx
jne 0x4507f6
pop ebp
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x450814
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push ebp
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
shr esi, 2
je 0x45084d
lea ecx, [ecx + esi*4]
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebp, dword [eax + esi*4]
mov ebx, dword [edi + esi*4]
xor ebx, dword [edx + esi*4]
mov dword [edx + esi*4], ebx
xor ebx, dword [ecx + esi*4]
mov dword [edi + esi*4], ebp
mov dword [eax + esi*4], ebx
inc esi
jne 0x450835
pop esi
and esi, 3
je 0x450872
mov bl, byte [esi + eax - 1]
mov bh, byte [esi + edx - 1]
xor bh, byte [esi + edi - 1]
mov byte [esi + edx - 1], bh
xor bh, byte [esi + ecx - 1]
mov byte [esi + edi - 1], bl
mov byte [esi + eax - 1], bh
dec esi
jne 0x450853
pop ebp
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x45087c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
shr esi, 2
je 0x4508a8
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebx, dword [edx + esi*4]
xor ebx, dword [eax + esi*4]
mov dword [edi + esi*4], ebx
mov dword [eax + esi*4], ebx
inc esi
jne 0x450899
and ecx, 3
je 0x4508c0
mov bl, byte [ecx + edx - 1]
xor bl, byte [ecx + eax - 1]
mov byte [ecx + edi - 1], bl
mov byte [ecx + eax - 1], bl
dec ecx
jne 0x4508ad
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4508c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
shr ecx, 1
lea edi, [eax + ecx*8]
lea edx, [edx + ecx*8]
neg ecx
mov ebx, dword [edx + ecx*8]
mov eax, dword [edx + ecx*8 + 4]
xor dword [edi + ecx*8], ebx
xor dword [edi + ecx*8 + 4], eax
inc ecx
jne 0x4508d4
pop edi
pop ebx
ret
Function at 0x4511f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call dword [eax + 0x20]
mov esi, eax
mov eax, esi
shr eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00450e48
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x45132f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
dec edi
test edi, edi
jl 0x45129e
inc edi
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.0042393c
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.004508c8
lea eax, [ebx + esi]
mov ebx, eax
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, esi
call fcn.0042393c
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.004508c8
lea eax, [ebx + esi]
mov ebx, eax
dec edi
jne 0x45124b
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, edx
cmp esi, edi
jg 0x4512ec
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.0042393c
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.004508c8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov ecx, esi
call fcn.0042393c
lea eax, [ebx + esi]
mov ebx, eax
sub edi, esi
test edi, edi
jle 0x451316
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
dec edi
test edi, edi
jl 0x451316
inc edi
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov dl, byte [edx + eax]
xor byte [ebx + eax], dl
inc eax
dec edi
jne 0x451306
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451336
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00450fe4
ret
Function at 0xdb48e0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdb48ea
pushal
call 0xdb48f0
pop ebp
sub ebp, 0x10
sub ebp, 0x9b48e0
jmp 0xdb4906
mov eax, 0x9b48e0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bb
mov edx, 0xb575b241
xor byte [eax], dl
inc eax
dec ecx
jne 0xdb491d
jmp 0xdb4930
mov ecx, ebp
mov ecx, dword [ecx + 0x3c]
add ecx, 0xf8
add ecx, ebp
mov eax, 3
mov edx, 0x28
mul edx
add ecx, eax
mov eax, dword [ecx + 0xc]
add eax, ebp
push eax
lea esp, [esp - 4]
mov dword [esp], eax
push 0x20d7b4
push 0x7a712c
add dword [esp], ebp
push 0x9f1ba7f1
call fcn.00db497a
jmp 0xdb49aa
mov ecx, dword [esp + 4]
push 0x20d7b4
push 0x7a712c
add dword [esp], ebp
lea esp, [esp - 4]
mov dword [esp], ecx
call fcn.00db49cf
jmp 0xdb4c14
pop edi
mov esi, dword [esp]
lea esp, [esp + 4]
jmp 0xdb4c25
mov eax, 0x9b48e0
add eax, ebp
add eax, 0x36b
mov ecx, 0x29c
mov edx, 0x7d161f1e
xor byte [eax], dl
inc eax
dec ecx
jne 0xdb4c3c
jmp 0xdb4c4f
xchg esi, edi
mov edi, dword [esi + 0x3c]
mov edi, dword [edi + esi + 0xa0]
add edi, esi
mov ebx, esi
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x34]
sub ebx, eax
mov edx, dword [edi]
mov ecx, dword [edi + 4]
cmp edx, 0
je 0xdb4cc3
add edx, esi
add edi, 8
sub ecx, 8
cmp ecx, 0
je 0xdb4c6b
mov ax, word [edi]
shr eax, 0xc
and eax, 0xf
cmp eax, 3
jne 0xdb4cb9
mov ax, word [edi]
and eax, 0xfff
add eax, edx
add dword [eax], ebx
dec ecx
dec ecx
add edi, 2
jmp 0xdb4c8b
jmp 0xdb4ccc
mov eax, 0x9b48e0
add eax, ebp
add eax, 0x412
mov ecx, 0x1f5
mov edx, 0xcaebaeff
xor byte [eax], dl
inc eax
dec ecx
jne 0xdb4ce3
jmp 0xdb4cf6
xchg edi, esi
mov esi, dword [edi + 0x3c]
xchg edi, esi
mov edi, dword [edi + esi + 0x80]
add edi, esi
cmp dword [edi + 0xc], 0
je 0xdb4dc7
mov eax, dword [edi + 0xc]
add eax, esi
push eax
call dword [ebp + 0x7a6cf8]
cmp eax, 0
jne 0xdb4d36
xchg edi, eax
mov edi, dword [eax + 0xc]
xchg edi, eax
add eax, esi
push eax
call dword [ebp + 0x7a6d04]
cmp dword [edi + 0xc], 0
je 0xdb4dc7
cmp dword [edi], 0
jne 0xdb4d54
cmp dword [edi + 0x10], 0
je 0xdb4db5
push ebp
mov edx, ebp
xchg ebp, edi
mov edi, dword [ebp + 0x10]
xchg ebp, edi
add ebp, esi
cmp dword [ebp], 0
je 0xdb4db5
mov ecx, dword [ebp]
lea esp, [esp - 4]
mov dword [esp], eax
lea esp, [esp - 4]
mov dword [esp], edx
or ecx, ecx
jns 0xdb4d8f
lea esp, [esp - 4]
mov dword [esp], ecx
jmp 0xdb4d98
add ecx, esi
add ecx, 2
push ecx
lea esp, [esp - 4]
mov dword [esp], eax
call dword [edx + 0x7a6cfc]
pop edx
mov dword [ebp], eax
pop eax
add ebp, 4
jmp 0xdb4d60
mov ebp, dword [esp]
lea esp, [esp + 4]
add edi, 0x14
jmp 0xdb4d06
push esp
push dword fs:[0]
push 0x9b4ee8
push ebp
lea esp, [esp - 4]
mov dword [esp], esi
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x28]
add eax, esi
jmp eax

Function at 0xdb497a
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 4]
mov dword [esp], ebp
lea ebp, [esp]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
shr ecx, 2
xor dword [edx], eax
add edx, 4
dec ecx
jne 0xdb499a
pop ebp
ret 0xc
Function at 0xdb4a55
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebp
mov esi, dword [ebp + 0xc]
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 0xdb4a86
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdb4a64
add dl, dl
jne 0xdb4a99
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdb4b09
xor eax, eax
add dl, dl
jne 0xdb4aae
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdb4bde
add dl, dl
jne 0xdb4ac1
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdb4ad0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdb4adf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdb4aee
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xdb4afc
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xdb4a79
mov eax, 1
add dl, dl
jne 0xdb4b1b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdb4b2a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdb4b0e
sub eax, ebx
mov ebx, 1
jne 0xdb4b71
mov ecx, 1
add dl, dl
jne 0xdb4b4f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdb4b5e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdb4b42
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdb4a79
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xdb4b8c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdb4b9b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdb4b7f
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 0xdb4a79
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xdb4c06
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 0xdb4a79
pop ebp
sub edi, dword [ebp + 8]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x402900
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
mov al, 0x20
mov cl, byte [edi]
inc edi
cmp cl, 0x22
jne 0x40291a
mov al, cl
mov dl, byte [edi]
inc edi
cmp dl, al
je 0x402928
mov cl, byte [edi]
inc edi
cmp cl, al
jne 0x402921
cmp al, 0x20
je 0x402932
cmp byte [edi], 0x20
jne 0x402932
inc edi
lea ecx, [esp + 0xc]
call fcn.00403730
mov dword [esp + 0xc], 0x416470
mov al, byte [edi]
test al, al
je 0x4029f6
mov esi, dword [esp + 0x28]
cmp al, 0x22
jne 0x40299e
mov al, byte [edi + 1]
inc edi
test al, al
mov esi, edi
je 0x402979
mov al, byte [esi]
cmp al, 0x22
je 0x402979
test al, al
jge 0x402971
mov al, byte [esi + 1]
test al, al
je 0x402979
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40295f
mov edx, esi
sub edx, edi
push edx
push edi
call fcn.00403be0
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.004039c0
mov al, byte [esi]
mov edi, esi
test al, al
je 0x4029ec
lea edi, [esi + 1]
jmp 0x4029ec
cmp al, 0x20
jg 0x4029aa
cmp byte [esi], 0
jl 0x4029aa
inc edi
jmp 0x4029ec
test al, al
mov esi, edi
je 0x4029d2
mov al, byte [esi]
cmp al, 0x22
je 0x4029d2
cmp al, 0x20
jg 0x4029be
test al, al
jge 0x4029d2
test al, al
jge 0x4029ca
mov al, byte [esi + 1]
test al, al
je 0x4029d2
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4029b0
mov eax, esi
sub eax, edi
push eax
push edi
call fcn.00403be0
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.004039c0
mov edi, esi
mov al, byte [edi]
test al, al
jne 0x402951
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x402a09
push eax
call fcn.00403b80
add esp, 4
mov edi, dword [esp + 0x1c]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.00402760
mov dword [eax], 1
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [ebx], eax
mov dword [esp + 0xc], 0x41646c
call fcn.00403930
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x402b70
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x402c02
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x402bf4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x402bec
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x402bb5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x402c20
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0040ee34
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x402c8a
push esi
lea edi, [eax + 0x400]
call fcn.0040ee5d
push edi
call fcn.0040ee34
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x402c5a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402ca6
push ecx
push esi
call fcn.00403be0
add esp, 8
mov ebx, eax
push esi
call fcn.0040ee5d
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402cd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x402d11.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x402d11.2
jmp dword [eax*4 + 0x402d9c]
mov word [esp + 0x48], di
jmp 0x402d4a
mov word [esp + 0x48], 2
jmp 0x402d4a
mov word [esp + 0x48], 3
jmp 0x402d4a
mov word [esp + 0x48], 4
jmp 0x402d4a
mov word [esp + 0x48], 7
jmp 0x402d4a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x402d94
cmp dword [esp + 0x70], edi
je 0x402d80
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x41425c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41428a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4142a8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004141c2
jmp 0x4142a8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4142a8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004141c2
test edi, edi
mov eax, edi
jne 0x414292
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406784
xor eax, eax
test eax, eax
je 0x406797
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406797
xor ecx, ecx
jmp 0x40679a
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4068f4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068ce
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406925
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406907
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0xc672d05
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x4c732bf1
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219