joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ee11
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [esi + 4]
bswap eax
bswap edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], esp
mov esp, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
xor eax, dword [ecx + edi*4]
mov edi, eax
mov esi, eax
shr edi, 0x18
shr esi, 0x10
and esi, 0xff
mov ebx, dword [esp + edi*4]
add ebx, dword [esp + esi*4 + 0x400]
movzx edi, ah
movzx esi, al
xor ebx, dword [esp + edi*4 + 0x800]
add ebx, dword [esp + esi*4 + 0xc00]
xor ebx, edx
inc dword [ebp - 4]
mov edx, eax
cmp dword [ebp - 4], 0x10
mov eax, ebx
jne 0x47ee34
mov esp, dword [ebp - 8]
xchg edx, eax
xor edx, dword [ecx + 0x40]
xor eax, dword [ecx + 0x44]
mov esi, dword [ebp + 8]
bswap eax
bswap edx
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x47efed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [esi + 4]
bswap eax
bswap edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], esp
mov esp, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
xor eax, dword [ecx + edi*4]
mov edi, eax
mov esi, eax
shr edi, 0x18
shr esi, 0x10
and esi, 0xff
mov ebx, dword [esp + edi*4]
add ebx, dword [esp + esi*4 + 0x400]
movzx edi, ah
movzx esi, al
xor ebx, dword [esp + edi*4 + 0x800]
add ebx, dword [esp + esi*4 + 0xc00]
xor ebx, edx
inc dword [ebp - 4]
mov edx, eax
cmp dword [ebp - 4], 0x10
mov eax, ebx
jne 0x47f010
mov esp, dword [ebp - 8]
xchg edx, eax
xor edx, dword [ecx + 0x40]
xor eax, dword [ecx + 0x44]
mov esi, dword [ebp + 8]
bswap eax
bswap edx
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4822bc
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x20
push 1
mov ebx, 0x1bc
call fcn.004acb60
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x48231d
push ebx
call fcn.004ab5a1
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004039a5
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x48235b
push 0xc9
push 0x401975e
push 6
call fcn.004ab5a7
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x482494
push edi
push edx
push esi
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
mov edi, dword [ebp - 4]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edx
pop edi
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.004ae6f0
add esp, 0x1c
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4823ea
mov eax, 0x4c5203
push eax
push 3
mov ebx, 0x19c
call fcn.004acee0
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x482416
push ebx
call fcn.004ab5a1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x80000101
jne 0x48242e
and eax, 0xff
jmp 0x482483
cmp ecx, 0x80000201
jne 0x482439
cwde
jmp 0x482483
cmp ecx, 0x80000301
je 0x482483
cmp ecx, 0x80000401
je 0x482483
mov dword [ebp - 0x24], eax
cmp ecx, 0x80000501
je 0x482473
cmp ecx, 0x80000601
je 0x482478
push 0x366
push 0x401975e
push 2
call fcn.004ab5a7
add esp, 0xc
fld dword [ebp - 0x24]
jmp 0x48247e
mov dword [ebp - 0x20], edx
fld qword [ebp - 0x24]
call fcn.00401dc1
push eax
call fcn.004824b6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x48249e
mov eax, 0x4c5202
jmp 0x48249e
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4824af
push ebx
call fcn.004ab5a1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4aca70
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4aca7d
xor eax, eax
pop esi
ret
push esi
call fcn.004affc0
add esp, 4
test eax, eax
jne 0x4aca8c
pop esi
ret
cmp eax, 1
jne 0x4aca9a
cmp byte [esi], 0x5c
jne 0x4aca9a
xor eax, eax
pop esi
ret
push esi
call fcn.004ac820
add esp, 4
test eax, eax
je 0x4acaae
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x4ad080
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.0x4ad0c1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4ad0c1.2
jmp dword [eax*4 + 0x4ad14c]
mov word [esp + 0x48], di
jmp 0x4ad0fa
mov word [esp + 0x48], 2
jmp 0x4ad0fa
mov word [esp + 0x48], 3
jmp 0x4ad0fa
mov word [esp + 0x48], 4
jmp 0x4ad0fa
mov word [esp + 0x48], 7
jmp 0x4ad0fa
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 0x4ad144
cmp dword [esp + 0x70], edi
je 0x4ad130
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 0x4adb10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4adb2e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4adb23
pop esi
ret

Function at 0x4af700
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 0x4af792
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4af784
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 0x4af77c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4af745
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 0x4af7a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
call fcn.004b1250
mov edi, dword [esp + 0x28]
mov ebp, eax
push edi
xor esi, esi
call fcn.004affc0
add esp, 8
test ebp, ebp
je 0x4af869
test eax, eax
je 0x4af869
inc eax
push ebx
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4af80b
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4af845
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4af858
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x4b00a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x4b00c1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x4b011b
inc edi
cmp edi, esi
jl 0x4b00b5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x4b0150
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x4b010a
cmp byte [eax], bl
je 0x4b0125
cmp byte [eax + 1], bl
je 0x4b012e
cmp byte [eax + 2], bl
je 0x4b0138
cmp byte [eax + 3], bl
je 0x4b0144
add eax, 4
cmp eax, edi
jb 0x4b00e1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x4bb3f0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4d31d4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4bb403
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4bb444
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4d327c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4bb476
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4bb47a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4bb46b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4bb498
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4bb49c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4bb48d
xor ecx, ecx
mov eax, 0x4d31e4
xor ebx, ebx
mov bl, byte [ecx + 0x4d328c]
cmp byte [esp + ebx + 0x14], 0
je 0x4bb4c7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4d32a4]
cmp byte [esp + ebx + 0x14], 0
je 0x4bb4de
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4bb4ae
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4bb437
lea edx, [esp + 0x84]
push edx
call fcn.004bb520
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x6c1f5e
Capabilities:
Encode data using xor

Disassembly:
fdivrp st(4)
push dword [ebx]
fdiv st(6)
invalid
and dword [esp + 4], 0x48c742bf
push dword [esp + 8]
popfd
lea esp, [esp + 0x10]
call fcn.0063e0f4
sal byte [esi + edi*8], 1
jp 0x6c1f12
mov edx, 0xeaa299a8
adc al, 0xa1
inc eax
dec ebp
dec esp
adc eax, 0xcf904b65
sbb esp, dword [ebp + 0x56]
movsd dword es:[edi], dword [esi]
dec edx
insb byte es:[edi], dx
lcall 0x4a9b, 0xcf989cf7
push ss
jno 0x6c1f9b
or al, 0x97
or al, 0x97
mov cl, 0x26
or esi, dword [ecx]
loope 0x6c1f9f
lahf
invalid

Function at 0x71bd32
Capabilities:
Encode data using xor

Disassembly:
jbe 0x513f04
neg ebp
mov ebp, dword [esp + 8]
add dword [esp], 0xff91dbfc
push dword [esp + 0x18]
popfd
lea esp, [esp + 0x1c]
call fcn.007a9d26

Function at 0x7239f7
Capabilities:
Encode data using xor

Disassembly:
push dword [esp + 0x18]
popfd
lea esp, [esp + 0x20]
call fcn.0068aae7
call fcn.005a27e5
inc ebx
wait
test eax, 0xdfce2ee7
dec edx
mov ch, 0xce
mov dl, 0x4e
invalid

Function at 0x772f38
Capabilities:
Encode data using xor

Disassembly:
jmp 0x75d3d1
push dword [esp + 0x1c]
popfd
lea esp, [esp + 0x24]
call fcn.0068aae7
sub eax, esi
and dword [eax - 0x17], eax
loop 0x772fb1
int1
jmp [ecx]
mov edi, dword [edi + 0x48f777b2]
inc eax
neg dword [eax]
jnp 0x772f44
sub byte [0x2939d112], cl
daa
test eax, 0x9f9ababf
out dx, eax
salc
push ebp
pushfd
sub eax, 0x6115d6fd
xchg byte [ebp + 0x40], ah
inc ebx
jns 0x772f33
out 0x28, eax
mov es, word [eax - 0x694059f8]
mov edx, dword [ebx]
push eax
inc eax
das
mov esp, edx
mov bh, 0xbf
lcall 0xda5e, 0xe95c2eb3
add edi, edi
push esi
sub al, 0xd3
insb byte es:[edi], dx
inc ebp
popfd
imul edx, dword [edx + 0x7796893f], 3
mov ah, 0x85
xchg edx, eax
aas
mov dword [esi - 0x7a4bfc89], edx
xor al, 0xc
cmc
daa
push 0xffffffffffffffca
inc esi
mov ecx, 0x45faa47e
xlatb
mov bh, 0x3c
jo 0x772f96
sub bh, dh
lea edi, [esi]
xor al, 0xe4
invalid

Function at 0x77780a
Capabilities:
Encode data using xor

Disassembly:
bswap ebx
mov dword [esp + 0xc], 0xdb41d000
neg ebx
xor bl, 5
jg 0x417a27
xor bl, 0x1b
call 0x77780a
bswap edx
jmp loc.0067ed80
call fcn.0074bc3e
mov ebx, dword [esp + 4]
jb 0x417a1b
add dword [esp + 8], 0xff821a6f
add dword [esp], 0xfd1f0
ret 8
Function at 0x779420
Capabilities:
Encode data using xor

Disassembly:
not edi
push ebx
mov ebx, edi
mov ebx, dword [esp]
neg edi
call fcn.006bd0c8
ror byte [ecx + 0x66], 0xe0
push esp
pop edx
sub byte [esi], ah
fst dword [edi - 0x3ec0d403]
sbb dword [ebp - 0x4b], ebp
les esp, [ecx + 0x397682c2]
jl 0x77948b
popal
pop esp
mov esi, 0x35495953
xor dh, ah
xchg edi, eax
invalid
jb 0x7794c3
outsb dx, byte [esi]
mov ch, 0x91
jge 0x7794bf
adc ch, al
sub edi, dword [eax + 0x4751a9e6]
invalid
jo 0x7794b2
jp 0x77948f
mov eax, 0x90d0afe2
lahf
sub ebp, dword [ecx + 0x3e]
cmp byte [ecx + 0x36fc7d99], bh
invalid
jo 0x77945c
mov eax, 0xffe77468
mov edx, 0xff0dca31
mov edx, 0xad3ba9f4
hlt
xor ecx, dword [esi - 0x3dd65f20]
adc al, 0xe3
cmpsd dword [esi], dword es:[edi]
pop esi
rcl dword [ebx - 0x7e33db26], cl
test al, 0xc7
sub dword [eax], esp
mov gs, word [ecx + ebx*2 + 0xd]
sbb al, bl
mov al, 0xd3
pop es
inc esp
cmp edx, ecx
cmc
or ah, byte [esi + 0x4ddb490c]
outsb dx, byte [esi]
mov ecx, 0xc232f53b
popfd
shl dword [ebp + 0x271736b], 0x7d
push ebx
test dword [esi - 0x31], ecx
sub dword [ecx], esp
or eax, dword [ebx]
inc ebx
jl 0x7794c3
push esp
inc esp
adc byte [esi + 1], dh
sal byte [edx - 0x2d3e4fab], cl
mov al, byte [edx + 6]
lodsd eax, dword [esi]
aaa
mov bh, 0xdf
enter 0xffffffffffff9793, 0xffffffffffffffd7
mov edx, 0x69e9b38b
cmp al, 0x4a
push 0xffffffffffffffea
cmpsb byte ds:[esi], byte es:[edi]
out 0xf4, al
cmp edi, dword es:[edx + 0x71]
ret

Function at 0x77e636
Capabilities:
Encode data using xor

Disassembly:
push dword [esp + 0x10]
popfd
lea esp, [esp + 0x14]
call fcn.005b6723

Function at 0x7a33f8
Capabilities:
Encode data using xor

Disassembly:
pushfd
add dword [esp + 4], 0xff94eb8f
push dword [esp]
popfd
lea esp, [esp + 0x10]
call fcn.0063e0f4
lea esp, [esp + 4]
call fcn.00651561
Function at 0x40376f
Capabilities:
Terminate process

Disassembly:
jmp 0x460a54
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x460a65
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405c18
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4038b4
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a98e1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a98f2
pop esi
ret
push ebx
push edi
push esi
call fcn.004a97c8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004041fb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a991a
push ebx
push esi
push edi
call fcn.004059f2
add esp, 0xc
push 0
call fcn.00406587
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405abf
Capabilities:
Parse pe header

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

Function at 0x44d9f5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403918
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x44da34
sub eax, 1
je 0x44da2f
sub eax, 1
je 0x44da2b
xor eax, eax
leave
ret
push 3
jmp 0x44da36
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x494fd0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49500f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49500f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49500f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49500f
cmp dword [ecx + 0x74], 0xe
jbe 0x49500f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4a02ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dfc
mov eax, dword [0x4de0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040617c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a02f0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a044c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004062e4
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e1be0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004033c8
mov ecx, dword [esi*4 + 0x4e1be0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4a0445
cmp eax, dword [ecx + edi + 0x24]
jne 0x4a0445
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a0445
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004033c8
add esp, 0x14
test edx, edx
jl 0x4a0445
jg 0x4a03bb
test eax, eax
jb 0x4a0445
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a0445
jl 0x4a03d5
cmp dword [ebp - 0x1008], eax
ja 0x4a0445
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a03f3
test ebx, ebx
je 0x4a042c
cmp ecx, edi
jae 0x4a042c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a040d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a0419
cmp byte [ecx + 1], 0xa
jne 0x4a0419
inc ecx
jmp 0x4a0419
movzx eax, al
movsx eax, byte [eax + 0x4de3f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a03f3
cmp edx, ebx
jne 0x4a03f3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a044a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403193
leave
ret
Function at 0x4a0b8b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4e1be0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a0bcb
cmp byte [ebx], 0xa
jne 0x4a0bcb
or byte [edi + eax + 0x28], 4
jmp 0x4a0bd0
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4a0ccf
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4a0cb2
inc eax
cmp dl, 0xd
je 0x4a0bfc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4a0c22
cmp eax, ecx
jae 0x4a0c30
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4a0be4
jmp 0x4a0ccf
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a0cad
cmp dword [ebp - 0x10], 0
je 0x4a0cad
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4e1be0]
test byte [eax + edi + 0x28], 0x48
je 0x4a0c87
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a0c72
mov byte [esi], dl
jmp 0x4a0c83
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e1be0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a0ccf
cmp byte [ebp - 1], 0xa
jne 0x4a0c96
cmp esi, ebx
jne 0x4a0c96
mov byte [esi], 0xa
jmp 0x4a0cce
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a0ccf
mov byte [esi], 0xd
jmp 0x4a0cce
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4e1be0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a0ccc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a0ccf
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret