joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40281c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x402826
repz ret
jmp fcn.00402a2b

Function at 0x40488b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004037d3
and dword [ebp - 0x14], 0
cmp dword [0x44b84c], 0
mov dword [ebp - 0x18], eax
jne 0x40493e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4049e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4049e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44b84c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44b850], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44b854], eax
call edi
push eax
call esi
mov dword [0x44b85c], eax
test eax, eax
je 0x40493e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44b858], eax
mov eax, dword [0x44b858]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404997
cmp dword [0x44b85c], ecx
je 0x404997
push eax
call esi
push dword [0x44b85c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404997
test ebx, ebx
je 0x404997
call edi
test eax, eax
je 0x40498e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40498e
test byte [ebp - 8], 1
jne 0x404997
or dword [ebp + 0x10], 0x200000
jmp 0x4049ca
mov eax, dword [0x44b850]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4049ca
mov eax, dword [0x44b854]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44b84c]
call esi
test eax, eax
je 0x4049e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4049e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040281c
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x40b5f2
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0x24
call 0x6c42f9d3
enter 0xc75, 0xffffffffffffff83

Function at 0x41cfea
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor al, 0xbd
add byte [edx], bl
dec ebx
add al, ch
push eax
add byte [eax], 0

Function at 0x41fe58
Capabilities:
Enumerate pe sections

Disassembly:
cmp al, 3
enter 0xffffffffffffb70f, 0x41
adc al, 0x8d
push ecx
sbb byte [ebx], al
ror byte [edi], 1
mov bh, 0x41

Function at 0x469713
Capabilities:
Encode data using xor

Disassembly:
jge 0x46971d
or dword [ebx], 0x6a
add bl, byte [edx - 0x75]
xor al, 0x39
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi

Function at 0x47202d
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x472040
call fcn.004720d1
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x472083
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x472091
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0x840f0270
jl 0x47209d
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret

Function at 0x4720d1
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x4720f4
push 0
call fcn.0042e573
pop ecx
mov ecx, eax
call 0x48582091
mov dword [0x4d06e0], 0x840f0270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7f0470fe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
test ecx, ecx
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x163ef9cc]
xchg byte [esi], cl
add esi, 4
sub edx, 1
jne 0x472109
mov eax, dword [esi]
mov dword [ebp - 4], 0xc3018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7f0470fe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
test ecx, ecx
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x472143
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7f0470fe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
test ecx, ecx
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret
Function at 0x6f0c8172
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6fadf014]
mov dword [ebp - 0xc], eax
jmp 0x6f0c8236
jmp 0x6f0c82ec
jmp 0x6f0c83a2
jmp 0x6f0c8458
jmp 0x6f0c850e
jmp 0x6f0c85c4
jmp 0x6f0c867a
jmp 0x6f0c8730
jmp 0x6f0c87e6
jmp 0x6f0c889c
jmp 0x6f0c8952
jmp 0x6f0c8a08
jmp 0x6f0c8abe
jmp 0x6f0c8b74
jmp 0x6f0c8c2a
jmp 0x6f0c8ce0
jmp 0x6f0c8d96
jmp 0x6f0c8e4c
jmp 0x6f0c8f02
cmp dword [ebp - 0xc], 0
je 0x6f0cc566
mov eax, dword [0x6fadf014]
mov dword [0x6fadf00c], eax
jmp 0x6f0c8fcc
jmp 0x6f0c9082
jmp 0x6f0c9138
jmp 0x6f0c91ee
jmp 0x6f0c92a4
jmp 0x6f0c935a
jmp 0x6f0c9410
jmp 0x6f0c94c6
jmp 0x6f0c957c
jmp 0x6f0c9632
jmp 0x6f0c96e8
jmp 0x6f0c979e
jmp 0x6f0c9854
jmp 0x6f0c990a
jmp 0x6f0c99c0
jmp 0x6f0c9a76
jmp 0x6f0c9b2c
jmp 0x6f0c9be2
jmp 0x6f0c9c98
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [0x6fadf008], eax
jmp 0x6f0c9d5e
jmp 0x6f0c9e14
jmp 0x6f0c9eca
jmp 0x6f0c9f80
jmp 0x6f0ca036
jmp 0x6f0ca0ec
jmp 0x6f0ca1a2
jmp 0x6f0ca258
jmp 0x6f0ca30e
jmp 0x6f0ca3c4
jmp 0x6f0ca47a
jmp 0x6f0ca530
jmp 0x6f0ca5e6
jmp 0x6f0ca69c
jmp 0x6f0ca752
jmp 0x6f0ca808
jmp 0x6f0ca8be
jmp 0x6f0ca974
jmp 0x6f0caa2a
mov eax, dword [0x6fadf008]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
jmp 0x6f0caaeb
jmp 0x6f0caba1
jmp 0x6f0cac57
jmp 0x6f0cad0d
jmp 0x6f0cadc3
jmp 0x6f0cae79
jmp 0x6f0caf2f
jmp 0x6f0cafe5
jmp 0x6f0cb09b
jmp 0x6f0cb151
jmp 0x6f0cb207
jmp 0x6f0cb2bd
jmp 0x6f0cb373
jmp 0x6f0cb429
jmp 0x6f0cb4df
jmp 0x6f0cb595
jmp 0x6f0cb64b
jmp 0x6f0cb701
jmp 0x6f0cb7b7
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [0x6fadf004], eax
jmp 0x6f0cb89a
jmp 0x6f0cb950
jmp 0x6f0cba06
jmp 0x6f0cbabc
jmp 0x6f0cbb72
jmp 0x6f0cbc28
jmp 0x6f0cbcde
jmp 0x6f0cbd94
jmp 0x6f0cbe4a
jmp 0x6f0cbf00
jmp 0x6f0cbfb6
jmp 0x6f0cc06c
jmp 0x6f0cc122
jmp 0x6f0cc1d8
jmp 0x6f0cc28e
jmp 0x6f0cc344
jmp 0x6f0cc3fa
jmp 0x6f0cc4b0
jmp 0x6f0cc566
nop
leave
ret
Function at 0x6f0ce0b1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6fadf008]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x6fadf008]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x6f0ce187
jmp 0x6f0ce23d
jmp 0x6f0ce2f3
jmp 0x6f0ce3a9
jmp 0x6f0ce45f
jmp 0x6f0ce515
jmp 0x6f0ce5cb
jmp 0x6f0ce681
jmp 0x6f0ce737
jmp 0x6f0ce7ed
jmp 0x6f0ce8a3
jmp 0x6f0ce959
jmp 0x6f0cea0f
jmp 0x6f0ceac5
jmp 0x6f0ceb7b
jmp 0x6f0cec31
jmp 0x6f0cece7
jmp 0x6f0ced9d
jmp 0x6f0cee53
mov dword [ebp - 0x14], 0
jmp 0x6f0cef10
jmp 0x6f0cefc6
jmp 0x6f0cf07c
jmp 0x6f0cf132
jmp 0x6f0cf1e8
jmp 0x6f0cf29e
jmp 0x6f0cf354
jmp 0x6f0cf40a
jmp 0x6f0cf4c0
jmp 0x6f0cf576
jmp 0x6f0cf62c
jmp 0x6f0cf6e2
jmp 0x6f0cf798
jmp 0x6f0cf84e
jmp 0x6f0cf904
jmp 0x6f0cf9ba
jmp 0x6f0cfa70
jmp 0x6f0cfb26
jmp 0x6f0cfbdc
mov dword [ebp - 0x18], 0
jmp 0x6f0cfc99
jmp 0x6f0cfd4f
jmp 0x6f0cfe05
jmp 0x6f0cfebb
jmp 0x6f0cff71
jmp 0x6f0d0027
jmp 0x6f0d00dd
jmp 0x6f0d0193
jmp 0x6f0d0249
jmp 0x6f0d02ff
jmp 0x6f0d03b5
jmp 0x6f0d046b
jmp 0x6f0d0521
jmp 0x6f0d05d7
jmp 0x6f0d068d
jmp 0x6f0d0743
jmp 0x6f0d07f9
jmp 0x6f0d08af
jmp 0x6f0d0965
mov dword [ebp - 0x10], 0
jmp 0x6f0d0a22
jmp 0x6f0d0ad8
jmp 0x6f0d0b8e
jmp 0x6f0d0c44
jmp 0x6f0d0cfa
jmp 0x6f0d0db0
jmp 0x6f0d0e66
jmp 0x6f0d0f1c
jmp 0x6f0d0fd2
jmp 0x6f0d1088
jmp 0x6f0d113e
jmp 0x6f0d11f4
jmp 0x6f0d12aa
jmp 0x6f0d1360
jmp 0x6f0d1416
jmp 0x6f0d14cc
jmp 0x6f0d1582
jmp 0x6f0d1638
jmp 0x6f0d16ee
mov dword [ebp - 0x10], 0
jmp 0x6f0d5aca
jmp 0x6f0d17b0
jmp 0x6f0d1866
jmp 0x6f0d191c
jmp 0x6f0d19d2
jmp 0x6f0d1a88
jmp 0x6f0d1b3e
jmp 0x6f0d1bf4
jmp 0x6f0d1caa
jmp 0x6f0d1d60
jmp 0x6f0d1e16
jmp 0x6f0d1ecc
jmp 0x6f0d1f82
jmp 0x6f0d2038
jmp 0x6f0d20ee
jmp 0x6f0d21a4
jmp 0x6f0d225a
jmp 0x6f0d2310
jmp 0x6f0d23c6
jmp 0x6f0d247c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x6fadf004]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x6f0d2543
jmp 0x6f0d25f9
jmp 0x6f0d26af
jmp 0x6f0d2765
jmp 0x6f0d281b
jmp 0x6f0d28d1
jmp 0x6f0d2987
jmp 0x6f0d2a3d
jmp 0x6f0d2af3
jmp 0x6f0d2ba9
jmp 0x6f0d2c5f
jmp 0x6f0d2d15
jmp 0x6f0d2dcb
jmp 0x6f0d2e81
jmp 0x6f0d2f37
jmp 0x6f0d2fed
jmp 0x6f0d30a3
jmp 0x6f0d3159
jmp 0x6f0d320f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x6fadf00c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x6f0d32d6
jmp 0x6f0d338c
jmp 0x6f0d3442
jmp 0x6f0d34f8
jmp 0x6f0d35ae
jmp 0x6f0d3664
jmp 0x6f0d371a
jmp 0x6f0d37d0
jmp 0x6f0d3886
jmp 0x6f0d393c
jmp 0x6f0d39f2
jmp 0x6f0d3aa8
jmp fcn.6f0d3b5e
mov eax, dword [0x6fadf008]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x6f0d16fa
nop
leave
ret

Function at 0x6f0fc1b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x6fade040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.6f0fc210
Function at 0x6f0fc210
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6fadf378]
test esi, esi
jle 0x6f0fc2fd
mov edi, dword [0x6fadf37c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6f0fc244
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6f0fc2f6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6f0fc230
mov dword [esp], eax
mov esi, eax
call fcn.6f0fc9b0
test eax, eax
mov edi, eax
je 0x6f0fc33a
mov esi, dword [0x6fadf37c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.6f0fcac0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6fadf37c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6f0fc31a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6f0fc2ef
sub eax, 0x40
and eax, 0xffffffbf
je 0x6f0fc2ef
mov eax, dword [esp + 0x20]
add ebx, dword [0x6fadf37c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6f0fc304
add dword [0x6fadf378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x6f0fc24e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6f0fc1b0
mov eax, dword [0x6fadf37c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6f0fc1b0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6f0fc1b0
lea esi, [esi]

Function at 0x6f0fc620
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6fadf388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6fadf380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x6f0fc675
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6f0fc66e
test esi, esi
je 0x6f0fc66e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6f0fc650
mov dword [esp], 0x6fadf388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0xc7f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c7f1a8
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 0xc7f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc7f06a
add dl, dl
jne 0xc7f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc7f0dc
xor eax, eax
add dl, dl
jne 0xc7f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc7f17d
add dl, dl
jne 0xc7f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc7f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc7f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc7f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc7f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc7f075
mov eax, 1
add dl, dl
jne 0xc7f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc7f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc7f0e1
sub eax, ebx
mov ebx, 1
jne 0xc7f128
mov ecx, 1
add dl, dl
jne 0xc7f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc7f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc7f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc7f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc7f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc7f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc7f136
cmp eax, 0x7d00
jae 0xc7f16d
cmp eax, 0x500
jb 0xc7f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc7f075
cmp eax, 0x7f
ja 0xc7f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc7f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc7f19e
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 0xc7f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40de24
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004c83
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01002df0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004ce9
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10062b8]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1004ced
xor eax, eax
jmp 0x1004cfa
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x6cce25f6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
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
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0xfec2dbf
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402e5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ef4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ed4
xor eax, eax
push ebp
push 0x402ecd
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 0x402f10
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 0x402ed4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40d00c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4035f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x403655
cmp word [0x40f208], 0xd7b2
jne 0x40361d
cmp dword [0x40f210], 0
jbe 0x40361d
mov eax, 0x40f204
call dword [0x40f220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x40367c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40d018], 0
jne 0x403671
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x9727204
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
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
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x1d360068
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219