joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480a8e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004681a7
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x480ac6
xor eax, eax
jmp 0x480af2
cmp esi, dword [ebp - 4]
je 0x480aef
cmp dword [ebp + 0xc], 0
je 0x480aef
push dword [edi + 0x9c]
call fcn.0048069c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00465be2
pop ecx
pop ecx
cmp esi, eax
je 0x480ac2
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x40344c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40345b
pop dword [ebp - 0x50]
mov eax, 0x40345b
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x38357ca0
add dword [ebp - 0x60], 0x161cc8ab
mov dword [ebp - 0x5c], 0x110625eb
sub dword [ebp - 0x5c], 0xded2d9a6
mov dword [ebp - 0x58], 0xd967521f
sub dword [ebp - 0x58], 0x8d1b0df1
mov dword [ebp - 0x54], 0xc375c5d
sub dword [ebp - 0x54], 0xc375c5d
lea eax, [ebp - 0x60]
push eax
mov eax, 0xa84dd5bf
sub eax, 0xa80d956b
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x9e7c0449
sub dword [ebp - 0x60], 0x2a099af3
mov dword [ebp - 0x5c], 0x92544e3b
sub dword [ebp - 0x5c], 0x50e7ecc6
mov dword [ebp - 0x58], 0x8ee71490
sub dword [ebp - 0x58], 0x2b77a824
mov dword [ebp - 0x54], 0x1c497a9d
add dword [ebp - 0x54], 0xe3b68563
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x4e005c76
sub eax, 0x4dc01c26
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3b08b
push 0
call eax
mov ecx, 0x7b4ad361
add ecx, 0x84b5854c
mov esi, eax
mov edx, 0x408400
add edx, dword [ebp - 0x50]
mov ebx, 0x958666ce
sub ebx, 0xf5adc2b1
xor dword [ebp - 0x30], 0x529b20a0
mov edi, dword [edx]
sub edi, ebx
xor dword [ebp - 0x30], edx
mov dword [esi], edi
sub dword [ebp - 0x48], eax
add esi, 4
add edx, 4
loop 0x403572
add eax, 0x23067784
add eax, 0xdcfade03
mov ebx, eax
add eax, 0x6ff1c9a
sub eax, 0x6ff1c95
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401eb0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401efb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401ef4
test esi, esi
je 0x401ef4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ed0
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4020e0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402130
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402208
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40216e
cmp eax, 4
jne 0x402190
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40217e
cmp edx, 4
je 0x40217e
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 sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004020e0
Function at 0x401510
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov edi, dword [esp + 0x164]
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp eax, 0xffffffff
push ecx
push ecx
je 0x4015c9
lea esi, [esp + 0x18]
mov dword [esp + 0x18], 0x128
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.kernel32.dll_Process32First
test eax, eax
push edx
push edx
jne 0x401574
jmp 0x4015c0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.kernel32.dll_Process32Next
test eax, eax
push ebp
push ebp
je 0x4015c0
cmp dword [esp + 0x30], edi
jne 0x401562
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0x1f0fff
call sub.kernel32.dll_OpenProcess
sub esp, 0xc
mov ebp, eax
test eax, eax
je 0x401562
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.kernel32.dll_TerminateProcess
push eax
push eax
mov dword [esp], ebp
call sub.kernel32.dll_CloseHandle
push eax
jmp 0x401562
mov dword [esp], ebx
call sub.kernel32.dll_CloseHandle
push ecx
mov eax, dword [esp + 0x160]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.kernel32.dll_TerminateProcess
push edx
push edx
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401610
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.kernel32.dll_ReadFile
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x40164c
mov edx, dword [esp + 0x2c]
mov eax, edx
add esp, 0x3c
ret

Function at 0x401660
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.kernel32.dll_WriteFile
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x40169c
mov edx, dword [esp + 0x2c]
mov eax, edx
add esp, 0x3c
ret
Function at 0x40f020
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov al, byte [edx + 8]
cmp al, 3
je 0x40f0d4
xor ebx, ebx
mov esi, dword [edx]
mov bl, al
xor eax, eax
mov al, byte [edx + 9]
mov dword [esp], eax
test bl, 2
jne 0x40f0e0
mov al, byte [ecx + 3]
and eax, 0xff
mov ebp, eax
mov eax, dword [esp]
sub eax, ebp
mov dword [esp], eax
mov eax, dword [esp]
mov dword [esp + 4], eax
mov eax, 1
and ebx, 4
je 0x40f08d
xor ebx, ebx
mov cl, byte [ecx + 4]
mov bl, byte [edx + 9]
and ecx, 0xff
sub ebx, ecx
mov dword [esp + eax*4 + 4], ebx
inc eax
xor ecx, ecx
xor ebx, ebx
mov ebp, dword [esp + ebx*4 + 4]
test ebp, ebp
jle 0x40f122
mov ecx, 1
inc ebx
cmp ebx, eax
jne 0x40f091
test cx, cx
je 0x40f0d4
mov al, byte [edx + 9]
cmp al, 4
je 0x40f1c0
ja 0x40f130
cmp al, 2
jne 0x40f0d4
mov edx, dword [edx + 4]
test edx, edx
je 0x40f0d4
add edx, edi
mov al, byte [edi]
shr al, 1
and eax, 0x55
mov byte [edi], al
inc edi
cmp edi, edx
jne 0x40f0c6
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
mov al, byte [ecx]
and eax, 0xff
mov ebp, eax
mov eax, dword [esp]
sub eax, ebp
mov dword [esp + 4], eax
mov al, byte [ecx + 1]
and eax, 0xff
mov ebp, eax
mov eax, dword [esp]
sub eax, ebp
mov dword [esp + 8], eax
mov al, byte [ecx + 2]
and eax, 0xff
mov ebp, eax
mov eax, dword [esp]
sub eax, ebp
mov dword [esp + 0xc], eax
mov eax, 3
jmp 0x40f073
mov dword [esp + ebx*4 + 4], 0
jmp 0x40f0a2
cmp al, 8
je 0x40f187
cmp al, 0x10
jne 0x40f0d4
imul esi, ebx
mov dword [esp], esi
test esi, esi
je 0x40f0d4
mov esi, edi
xor edi, edi
mov dl, byte [esi + 1]
xor eax, eax
mov al, byte [esi]
and edx, 0xff
shl eax, 8
mov ebp, edx
add ebp, eax
xor edx, edx
mov eax, edi
and ebp, 0xffff
div ebx
mov eax, ebp
inc edi
mov ecx, dword [esp + edx*4 + 4]
sar eax, cl
mov edx, eax
mov byte [esi + 1], al
shr dx, 8
mov byte [esi], dl
add esi, 2
cmp edi, dword [esp]
jne 0x40f146
jmp 0x40f0d4
imul esi, ebx
mov dword [esp], esi
test esi, esi
je 0x40f0d4
xor esi, esi
mov dl, byte [edi + esi]
mov eax, esi
and edx, 0xff
mov ebp, edx
xor edx, edx
div ebx
mov ecx, dword [esp + edx*4 + 4]
sar ebp, cl
mov eax, ebp
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp]
jne 0x40f197
jmp 0x40f0d4
mov ecx, dword [esp + 4]
mov ebx, 0xf0
sar ebx, cl
mov eax, 0xf
and ebx, 0xfffffff0
sar eax, cl
mov esi, dword [edx + 4]
or ebx, eax
test esi, esi
je 0x40f0d4
xor eax, eax
xor edx, edx
mov dl, byte [edi + eax]
sar edx, cl
and edx, ebx
mov byte [edi + eax], dl
inc eax
cmp eax, esi
jne 0x40f1e4
jmp 0x40f0d4
Function at 0x414520
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp byte [edx + 8], 0
jne 0x414540
mov edx, dword [edx + 4]
test edx, edx
je 0x414551
add edx, eax
xor byte [eax], 0xff
inc eax
cmp eax, edx
jne 0x414537
ret
mov ecx, dword [edx + 8]
cmp cx, 0x804
je 0x414552
cmp cx, 0x1004
je 0x414570
ret
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x414551
xor edx, edx
nop
lea esi, [esi]
xor byte [eax + edx], 0xff
add edx, 2
cmp ecx, edx
ja 0x414560
ret
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x414551
xor edx, edx
lea esi, [esi]
add edx, 4
xor byte [eax], 0xff
not byte [eax + 1]
add eax, 4
cmp ecx, edx
ja 0x414580
ret
Function at 0x41d610
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41d6b5
mov eax, dword [esi]
xor edx, edx
mov byte [eax + 0x16], 0
mov eax, dword [esi]
mov byte [eax + 0x17], 0
mov eax, dword [esi]
mov byte [eax + 0x18], 0
mov eax, dword [esi]
mov byte [eax + 0x19], 0
xor eax, eax
mov ebp, dword [esi + 4]
mov edi, dword [esi]
test ebp, ebp
jle 0x41d668
xor ecx, ecx
mov ebx, eax
shr eax, 0x18
mov cl, byte [edi + edx]
xor ecx, eax
inc edx
shl ebx, 8
mov eax, dword [ecx*4 + 0x6e5080]
xor eax, ebx
cmp edx, ebp
jne 0x41d646
mov edx, eax
shr edx, 0x18
mov ecx, dword [esi + 0xc]
mov dword [esp], ecx
test ecx, ecx
jle 0x41d69b
mov ebp, dword [esi + 8]
xor edx, edx
xor ecx, ecx
mov ebx, eax
shr eax, 0x18
mov cl, byte [ebp + edx]
xor ecx, eax
inc edx
shl ebx, 8
mov eax, dword [ecx*4 + 0x6e5080]
xor eax, ebx
cmp edx, dword [esp]
jne 0x41d677
mov edx, eax
shr edx, 0x18
mov byte [edi + 0x16], al
mov ebx, eax
shr ebx, 8
mov ecx, dword [esi]
shr eax, 0x10
mov byte [ecx + 0x17], bl
mov ecx, dword [esi]
mov byte [ecx + 0x18], al
mov eax, dword [esi]
mov byte [eax + 0x19], dl
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x447360
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [esp + 0x48]
mov ebx, ebp
mov edx, ebp
shr ebx, 5
lea ecx, [ebx + 1]
cmp ebp, ecx
jb 0x4473ae
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x44]
xor edi, 0xffffffff
add eax, ebp
add edi, ecx
sub edi, ebx
lea esi, [esi]
mov esi, edx
mov ebx, edx
shl ebx, 5
shr esi, 2
add esi, ebx
xor ebx, ebx
mov bl, byte [eax - 1]
sub eax, ecx
add ebx, esi
xor edx, ebx
lea ebx, [edi + eax]
cmp ecx, ebx
jbe 0x447390
mov ebx, dword [esp + 0x40]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x4473d6
jmp 0x447420
mov eax, dword [eax]
test eax, eax
je 0x447420
mov ebx, eax
cmp dword [eax + 0xc], ebp
jne 0x4473d0
mov ecx, ebp
lea edi, [eax + 0x10]
cmp ebp, ebp
mov esi, dword [esp + 0x44]
repe cmpsb byte [esi], byte es:[edi]
seta byte [esp + 0x1b]
setb cl
cmp byte [esp + 0x1b], cl
jne 0x4473d0
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax + 5]
mov al, byte [ecx + 0x14]
xor eax, 3
and eax, edx
test al, 3
je 0x447411
xor edx, 3
mov byte [ebx + 5], dl
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp + 1]
cmp eax, 0xffffffed
ja 0x4474f0
mov ebx, dword [esp + 0x40]
lea eax, [ebp + 0x11]
mov dword [esp], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.00447ab0
mov ecx, dword [esp + 0x40]
mov ebx, eax
mov dword [eax + 0xc], ebp
mov edx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x44]
mov al, byte [eax + 0x14]
mov byte [ebx + 4], 4
and eax, 3
mov byte [ebx + 6], 0
mov byte [ebx + 5], al
lea eax, [ebx + 0x10]
mov dword [esp + 4], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 8], ebp
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x40]
mov byte [ebx + ebp + 0x10], 0
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 8]
dec ecx
and ecx, edx
mov edx, dword [eax]
shl ecx, 2
mov edx, dword [edx + ecx]
mov dword [ebx], edx
mov edx, dword [eax]
mov dword [edx + ecx], ebx
mov edx, dword [eax + 4]
inc edx
mov dword [eax + 4], edx
mov eax, dword [eax + 8]
cmp edx, eax
jbe 0x447411
cmp eax, 0x3ffffffe
jg 0x447411
add eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00447250
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov dword [esp], ebx
call fcn.00447a90
mov edx, dword [esp + 0x14]
jmp 0x44742c
Function at 0x44e4d0
Capabilities:
Check for software breakpoints

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x10
cmp dword [eax + 0x14], 0xcc
je 0x44e40d
mov eax, dword [eax + 0x1dc]
mov dword [esp], ebx
call dword [eax]
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x14], 0xcc
mov eax, dword [ebx + 0x1dc]
mov edx, dword [eax + 8]
test edx, edx
je 0x44e4b9
mov eax, dword [ebx + 0x8c]
lea edi, [ebx + 0x8c]
lea esi, [esi]
mov ecx, dword [ebx + 0x74]
cmp ecx, eax
jbe 0x44e484
mov edx, dword [ebx + 8]
mov esi, eax
test edx, edx
je 0x44e451
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [esp], ebx
call dword [edx]
mov esi, dword [ebx + 0x8c]
mov eax, dword [ebx + 0x1e0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [eax + 4]
mov eax, dword [ebx + 0x8c]
cmp eax, esi
jne 0x44e430
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov eax, dword [ebx + 0x1dc]
mov dword [esp], ebx
call dword [eax + 4]
mov eax, dword [ebx + 0x1dc]
mov dword [esp], ebx
call dword [eax]
mov eax, dword [ebx + 0x1dc]
mov eax, dword [eax + 8]
mov dword [ebx + 0x8c], 0
test eax, eax
je 0x44e4b9
xor eax, eax
jmp 0x44e430
cmp dword [ebx + 0x44], 1
sbb eax, eax
add eax, 0xce
mov dword [ebx + 0x14], eax
mov eax, 1
jmp 0x44e47d
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
cmp eax, 0xca
je 0x44e510
cmp eax, 0xcb
je 0x44e52a
cmp eax, 0xcc
je 0x44e503
mov edx, dword [ebx]
mov dword [edx + 0x18], eax
mov dword [edx + 0x14], 0x14
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax]
add esp, 0x18
mov eax, ebx
pop ebx
jmp 0x44e3e0
mov dword [esp], ebx
call fcn.00453d00
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x44e5b0
mov dword [ebx + 0x14], 0xcb
mov eax, dword [ebx + 0x1ec]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x44e590
mov edx, dword [ebx + 8]
lea esi, [esi]
test edx, edx
je 0x44e549
mov dword [esp], ebx
call dword [edx]
mov eax, dword [ebx + 0x1ec]
mov dword [esp], ebx
call dword [eax]
test eax, eax
je 0x44e5a7
cmp eax, 2
je 0x44e590
mov edx, dword [ebx + 8]
test edx, edx
je 0x44e540
cmp eax, 1
je 0x44e56e
cmp eax, 3
jne 0x44e540
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
inc eax
mov dword [edx + 4], eax
cmp eax, ecx
jl 0x44e540
mov eax, dword [ebx + 0x178]
add ecx, eax
test edx, edx
mov dword [edx + 8], ecx
jne 0x44e544
jmp 0x44e549
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x98], eax
add esp, 0x18
mov eax, ebx
pop ebx
jmp 0x44e3e0
xor eax, eax
add esp, 0x18
pop ebx
ret
mov dword [ebx + 0x14], 0xcf
mov eax, 1
jmp 0x44e5a9
Function at 0x450cb0
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 0x24
mov esi, dword [esp + 0x30]
mov dword [esi + 4], 0
mov dword [esp], esi
call fcn.00454ba0
mov dword [esp + 4], 0x54
mov dword [esp + 0x18], eax
mov dword [esp], esi
call fcn.00454b30
mov ebx, eax
test eax, eax
je 0x450df0
mov eax, dword [esp + 0x18]
mov dword [ebx], fcn.0044ffd0
mov dword [ebx + 4], fcn.004507d0
mov dword [ebx + 8], fcn.00450990
mov dword [ebx + 0xc], fcn.004508a0
mov dword [ebx + 0x10], 0x4501d0
mov dword [ebx + 0x14], 0x450150
mov dword [ebx + 0x18], 0x450a80
mov dword [ebx + 0x1c], 0x4505f0
mov dword [ebx + 0x20], 0x450400
mov dword [ebx + 0x24], fcn.00450250
mov dword [ebx + 0x28], 0x4503a0
mov dword [ebx + 0x30], 0x3b9aca00
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0x54
mov dword [esi + 4], ebx
mov dword [esp], str.JPEGMEM
call sub.msvcrt.dll_getenv
test eax, eax
je 0x450dd4
lea edx, [esp + 0x1f]
mov byte [esp + 0x1f], 0x78
mov dword [esp + 0xc], edx
lea edx, [esp + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], str._ld_c
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
test eax, eax
jle 0x450dd4
mov al, byte [esp + 0x1f]
cmp al, 0x4d
jne 0x450de0
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebx + 0x2c], eax
add esp, 0x24
pop ebx
pop esi
ret
cmp al, 0x6d
je 0x450db5
mov eax, dword [esp + 0x18]
jmp 0x450dc5
mov dword [esp], esi
call fcn.00454bb0
mov eax, dword [esi]
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0x36
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
jmp 0x450ce6
Function at 0x454cb0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
cmp dword [eax + 0x58], 1
mov ecx, dword [eax + 0x204]
mov dword [esp + 0x2c], eax
sete al
and eax, 0xff
mov ebx, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x34], ecx
and eax, 0xfffffe02
add eax, 0x2fe
cmp dword [ebx + 0x58], 1
sete dl
and edx, 0xff
cmp dword [ebx + 0x58], 1
setne cl
and ecx, 0xff
mov ebx, dword [esp + 0x34]
dec ecx
and ecx, 0x1fe
mov dword [ebx + 0x1c], edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x2c]
mov ebx, ecx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x78]
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call dword [edx + 8]
mov ebx, dword [esp + 0x34]
mov ecx, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x78]
test eax, eax
jle 0x454e62
mov dword [esp + 0x38], 0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov ebx, dword [eax + edx*4 + 0x20]
mov eax, dword [esp + 0x3c]
mov edx, eax
sar edx, 0x1f
idiv ebx
mov edi, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
shl eax, 2
test ebp, ebp
je 0x454d94
mov esi, dword [ecx + eax]
mov edx, dword [esp + 0x34]
add esi, 0xff
mov dword [ecx + eax], esi
mov ecx, dword [edx + 0x18]
mov ecx, dword [ecx + eax]
lea eax, [ebx + 0xfe]
mov edx, eax
mov dword [esp + 0x1c], ecx
lea ecx, [ebx - 1]
mov ebx, edi
mov dword [esp + 0x28], ecx
add ecx, ecx
sar edx, 0x1f
mov dword [esp + 0x24], ecx
idiv ecx
mov esi, eax
mov byte [esp + 0x23], bl
xor ebp, ebp
xor edi, edi
cmp esi, ebp
jge 0x454dfb
lea ebx, [edi + 1]
mov esi, dword [esp + 0x24]
mov eax, ebx
shl eax, 9
lea edx, [ebx + ebx]
sub eax, edx
mov edx, dword [esp + 0x28]
lea ecx, [edx + eax + 0xff]
jmp 0x454de4
inc ebx
mov edx, ecx
mov eax, ecx
sar edx, 0x1f
add ecx, 0x1fe
idiv esi
mov edi, ebx
cmp eax, ebp
jl 0x454de3
mov esi, eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mul byte [esp + 0x23]
mov byte [ecx + ebp], al
inc ebp
cmp ebp, 0x100
jne 0x454dc1
mov edx, dword [esp + 0x30]
test edx, edx
je 0x454e40
mov eax, 1
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov bl, byte [edx]
neg ecx
mov byte [edx + ecx], bl
mov cl, byte [edx + 0xff]
mov byte [edx + eax + 0xff], cl
inc eax
cmp eax, 0x100
jne 0x454e22
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
cmp dword [eax + 0x78], ecx
jle 0x454e62
mov ebx, dword [esp + 0x34]
mov ecx, dword [ebx + 0x18]
jmp 0x454d55
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x456f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x2c
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax]
cmp dword [esi + 0x78], 3
mov dword [esi + 0x204], eax
mov ebp, eax
mov dword [eax], 0x455c20
mov dword [eax + 0xc], 0x455c00
mov dword [eax + 0x20], 0
mov dword [eax + 0x28], 0
je 0x456faa
mov eax, dword [esi]
mov dword [eax + 0x14], 0x2f
mov dword [esp], esi
call dword [eax]
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x80
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax]
xor ebx, ebx
mov edi, eax
mov dword [ebp + 0x18], eax
jmp 0x456fd3
mov edi, dword [ebp + 0x18]
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax + 4]
add edi, ebx
add ebx, 4
mov dword [edi], eax
cmp ebx, 0x80
jne 0x456fd0
mov edx, dword [esi + 0x6c]
mov dword [ebp + 0x1c], 1
test edx, edx
je 0x457066
mov ebx, dword [esi + 0x60]
cmp ebx, 7
jle 0x4570ab
cmp ebx, 0x100
jle 0x457034
mov eax, dword [esi]
mov dword [eax + 0x18], 0x100
mov dword [eax + 0x14], 0x39
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
mov eax, dword [esi + 4]
mov dword [esp + 0xc], 3
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax + 8]
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x457074
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x58]
mov dword [ebp + 0x10], 0
test eax, eax
je 0x45705e
mov eax, dword [esi + 0x70]
mov edx, dword [esi + 4]
mov dword [esi + 0x58], 2
mov dword [esp], esi
lea eax, [eax + eax*2]
mov dword [esp + 4], 1
lea eax, [eax + eax + 0xc]
mov dword [esp + 8], eax
call dword [edx + 4]
mov dword [ebp + 0x20], eax
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00455b50
mov eax, dword [esi]
mov dword [eax + 0x18], 8
mov dword [eax + 0x14], 0x38
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
jmp 0x457034