joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002cc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100101bd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1003a004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
push 0x210
mov ebx, 0xc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.1000456f
mov edx, eax
mov dword [ebp - 0x18], 0x104
xor eax, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], 0x107
mov ecx, 0x82
mov edi, edx
add esp, 4
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, 0x10089208
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp dword [0x1008921c], 8
push ecx
cmovae eax, dword [0x10089208]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x18]
cmp eax, esi
jbe 0x10002e0a
lea ecx, [eax + 1]
cmp ecx, esi
ja 0x10002d8e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x10002dda
mov edi, dword [ebp - 0x14]
mov edx, ecx
mov eax, edi
sub edx, esi
sub eax, esi
cmp edx, eax
ja 0x10002dcc
cmp edi, 8
mov dword [ebp - 0x18], ecx
lea ebx, [ebp - 0x28]
cmovae ebx, dword [ebp - 0x28]
lea edi, [ebx + esi*2]
test edx, edx
je 0x10002dbe
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor ecx, ecx
lea eax, [esi + edx]
mov word [ebx + eax*2], cx
lea ebx, [ecx + 0xc]
jmp 0x10002dda
push ecx
push edx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push edx
call fcn.10003f20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov eax, 0x10089208
cmp dword [0x1008921c], 8
push ecx
cmovae eax, dword [0x10089208]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x18]
cmp eax, esi
ja 0x10002e25
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x10002e23
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10003dc0
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x10002e5b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002e51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002e79
push ecx
push edx
call fcn.100045a4
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000443f
mov esp, ebp
pop ebp
ret
call fcn.1000779c
int3
Function at 0x10003910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1003a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, 0x1a
test ecx, ecx
je 0x10003ab2
cmp dword [0x10089020], 8
lea edx, [ebp - 0xc]
push 0
push edx
push 0
push 6
push 0
push 0
mov eax, 0x1008900c
mov dword [ebp - 8], 0
cmovae eax, dword [0x1008900c]
push 0
push eax
push ecx
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10003a91
cmp dword [ebp - 0xc], eax
je 0x10003a91
mov ecx, dword [esi + 0x10]
add ecx, ecx
cmp dword [esi + 0x14], 8
jb 0x1000398c
mov esi, dword [esi]
cmp dword [0x100891bc], 8
mov eax, 0x100891a8
push ecx
cmovae eax, dword [0x100891a8]
push esi
push 1
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10003a96
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100039d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x10089234], 8
lea ecx, [ebp - 8]
push 0
push ecx
push 0
push 2
push 0
push 0
mov eax, 0x10089220
cmovae eax, dword [0x10089220]
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10003a96
mov eax, dword [ebp - 8]
test eax, eax
je 0x10003aa4
mov ecx, dword [0x10089140]
mov edx, 0x10089130
cmp dword [0x10089144], 8
cmovae edx, dword [0x10089130]
cmp dword [0x10089008], 8
lea esi, [ecx + ecx]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 0x10088ff4
cmovae ecx, dword [0x10088ff4]
push edx
push 1
push 0
push ecx
push eax
call esi
test eax, eax
jne 0x10003a96
mov ecx, dword [ebx + 0x10]
add ecx, ecx
cmp dword [ebx + 0x14], 8
jb 0x10003a69
mov ebx, dword [ebx]
cmp dword [0x100891ec], 8
mov eax, 0x100891d8
push ecx
cmovae eax, dword [0x100891d8]
push ebx
push 1
push 0
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x10003a96
lea edi, [eax + 6]
jmp 0x10003a96
mov edi, 0x1b
mov eax, dword [ebp - 8]
test eax, eax
je 0x10003aa4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x10003ab2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000443f
mov esp, ebp
pop ebp
ret
Function at 0x1000fec0
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x2c4326c7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x41890af8
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x440130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.tJrdyPER
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x440152
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x440159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x440148
mov eax, 1
add ebx, ebx
jne 0x44016b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x440160
jne 0x44017c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x440160
xor ecx, ecx
sub eax, 3
jb 0x440190
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x440202
mov ebp, eax
add ebx, ebx
jne 0x44019b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4401a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4401cc
inc ecx
add ebx, ebx
jne 0x4401b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4401ad
jne 0x4401c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4401ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4401ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4401dd
jmp 0x44014e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4401ec
add edi, ecx
jmp 0x44014e
pop esi
lea edi, [esi + 0x3e000]
mov eax, dword [edi]
or eax, eax
je 0x440254
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4020c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x402b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x440209
mov ecx, edi
jns 0x440238
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 + 0x402bc]
or eax, eax
je 0x44024e
mov dword [ebx], eax
add ebx, 4
jmp 0x440226
call dword [esi + 0x402b8]
mov ebp, dword [esi + 0x402c0]
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 0x440288
sub esp, 0xffffff80
jmp section.NDltoTPW

Function at 0x4deea8
Capabilities:
Encode data using xor

Disassembly:
and al, byte [eax + ecx*8]
adc esi, 0x5d2952c3
pop ds
out dx, al
mov eax, dword [0xc5b1dd65]
mov ebx, dword [eax]
in eax, dx
dec edx
sub al, 0x4f
sub ch, al
jnp 0x4deea4
lodsb al, byte [esi]
adc edi, 0x8138a1ee
test eax, 0xa65b6d8c
cmpsb byte [esi], byte es:[edi]
or ecx, eax
xchg ebp, eax
fcompi st(5)
or dword [eax - 0x42], edx
mov esi, 0xb94e69b9
jo 0x4dee7b
mov esi, 0xb94e69b9
jo 0x4dee7b
sbb ebp, edi
lodsd eax, dword [esi]
out 0x3e, al
stosd dword es:[edi], eax
fadd qword [0xbcbc13e1]
xor byte [ebx - 0xa], ah
fild dword [ecx - 0x7c]
les ebp, [edi - 0xd]
jb 0x4deea0
mov esp, 0xb3bb889a
inc ebp
push ebx
xchg esp, eax
js 0x4def11
adc byte [0x5470fb3], ah
inc edi
invalid
jbe 0x4deed0
push es
fisttp word [ebx]
mov ah, 0xb2
push ss
aam 0xb3
cmp eax, 0x7e5e1bb0
invalid
Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401d10
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
push eax
pop ebx
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
push edx
pop esi
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
or eax, eax
je 0x401e06
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401d55
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x401d65
cmp byte [esp + 0x1e], 0
je 0x401d65
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401d65
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cb0
nop

Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x460034
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x46004c]
sub esp, 4
test ebx, ebx
je 0x4020eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
or eax, eax
jne 0x4020e4
test esi, esi
je 0x4020e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020c0
mov dword [esp], 0x460034
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x9e8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009e81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9e807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9e806a
add dl, dl
jne 0x9e8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9e80dc
xor eax, eax
add dl, dl
jne 0x9e8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9e817d
add dl, dl
jne 0x9e80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9e80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9e8075
mov eax, 1
add dl, dl
jne 0x9e80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9e80e1
sub eax, ebx
mov ebx, 1
jne 0x9e8128
mov ecx, 1
add dl, dl
jne 0x9e810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9e8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9e8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9e8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9e813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9e814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9e8136
cmp eax, 0x7d00
jae 0x9e816d
cmp eax, 0x500
jb 0x9e8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9e8075
cmp eax, 0x7f
ja 0x9e8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9e8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9e819e
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 0x9e8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40f320
Capabilities:
Encode data using xor

Disassembly:
cmc
ret 0xcabf
ror byte [ecx - 0x6cab491f], 1
imul ebx, ebx, 1
cmp edx, dword [edx - 0x1c378747]
mov ecx, 0x4be3c878
mov ecx, 0x4be3c878
and eax, 0x399eaabe
arpl word [ecx - 0x16], dx
ficom dword [edi - 0x4da8d168]
xlatb
cmp al, 0xc8
and eax, 0x1ce0d72
lcall 0xb040, 0xddc6339b
xor al, 0xe0
xor al, 0xd0
in al, dx
jb 0x40f315
cmp byte [edi - 0x509ed7ca], al
jbe 0x40f2fc
or esi, dword [esi + 0x4c]
cmp esp, ebp
cmp al, byte [edx + 0x45f22628]
xor ch, byte [ebx - 0x6c]
insd dword es:[edi], dx
imul edi, dword [edx], 0x6684e7b6
out 0x1f, al
stosd dword es:[edi], eax
cmp cl, byte [edi + esi*4]
test edx, edi
inc edx
sbb byte [ebp + 0x26], ah
les eax, [edx]
inc edi
mov al, byte [0x353576c7]
mov edi, 0x6cf347f2
sbb edx, dword [ecx]
std
cmc
and al, 0xa9
or dh, bl
jo 0x40f3c4
sahf
or eax, 0xb6c4096b
sub byte [edx - 0x4e], cl
in eax, 0x82
iretd
adc dword [eax + 0x4e6e4408], ecx
mov esp, 0xef47b450
mov al, 0x15
xor eax, 0xca86ffa
out 0x10, al
cdq
jno 0x40f431
cdq
imul esp, dword cs:[eax - 0x44fdc6ca], 0x6acdc38f
push 0x28e9f60c
adc bh, byte [esi + 0x76960503]
int1
or dword [ecx], ebp
cdq
invalid
inc ebx
and al, 0x61
xchg byte [ebp + 0x3d7b1518], bh
push edi
mul byte [ebx + 0x7a]
and eax, 0x687b8c85
cmp edi, dword [ebp - 0x5de2d669]
mov cl, 0x70
sti
popfd
sbb dword cs:[ebp - 0x2f8be6c1], edx
cmp eax, dword [edi]
invalid

Function at 0x418c10
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x214
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push 0x104
push eax
push ecx
mov word [ebp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x418cd2
cmp eax, 0x104
jne 0x418c55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x418cd2
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x418cd2
push edi
call fcn.004c1bc5
mov esi, eax
add esp, 4
test esi, esi
je 0x418cd2
mov ecx, dword [esp + 0x10]
push ebx
push esi
push edi
lea edx, [esp + 0x24]
push ecx
push edx
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x418cba
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x418cba
mov edx, dword [esp + 0x10]
mov ebx, 1
mov ax, word [edx]
mov word [ebp], ax
push esi
call fcn.004c1bba
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x214
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x214
ret 8
Function at 0x4c2cd5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cb338
cmp edx, dword [eax]
je 0x4c2cf7
add eax, 8
inc ecx
cmp eax, 0x4cb3c8
jl 0x4c2ce8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cb338]
jne 0x4c2e25
mov eax, dword [0x4cfa0c]
cmp eax, 1
je 0x4c2dff
test eax, eax
jne 0x4c2d28
cmp dword [0x4cb278], 1
je 0x4c2dff
cmp edx, 0xfc
je 0x4c2e25
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c2d5f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c4190
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c4280
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c2da2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c4280
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c6e2c
push edi
call fcn.004c4be0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c4190
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c41a0
lea eax, [ebp - 0xa0]
push 0x4c6e0c
push eax
call fcn.004c41a0
push dword [esi + 0x4cb33c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c41a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c4b4f
add esp, 0x2c
pop edi
jmp 0x4c2e25
lea eax, [ebp + 8]
lea esi, [esi + 0x4cb33c]
push 0
push eax
push dword [esi]
call fcn.004c4280
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x64d40e80
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x74480f22
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402d74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a20
test esi, esi
jne 0x402daa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404b10
jmp 0x402dc8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402c88
mov edi, eax
test esi, esi
je 0x402dc8
cmp dword [ebx], 0
je 0x402dc8
dec esi
jmp 0x402db1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4039d0
Capabilities:
Query or enumerate registry value

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

Function at 0x4048a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x56c04c], 0
je 0x404905
cmp word [0x56c220], 0xd7b2
jne 0x4048cd
cmp dword [0x56c228], 0
jbe 0x4048cd
mov eax, 0x56c21c
call dword [0x56c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x567070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40492c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x567030], 0
jne 0x404921
push 0
push 0x567068
push 0x567070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret