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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov edx, esi
and edx, 0x80000007
jns 0x4012ca
dec edx
or edx, 0xfffffff8
inc edx
mov ecx, esi
sub ecx, edx
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 8
jge 0x4012de
xor eax, eax
jmp 0x4013a3
cmp eax, dword [ebp - 0x24]
jl 0x4012e7
test eax, eax
jg 0x4012ef
mov eax, dword [ebp - 0x24]
jmp 0x4013a3
mov edx, dword [ebp + 8]
push edx
call fcn.0044f788
pop ecx
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.0044f908
pop ecx
xor edx, edx
lea eax, [ebp - 0x18]
mov byte [eax], 0
inc edx
inc eax
cmp edx, 8
jl 0x401308
xor edi, edi
jmp 0x401385
push 8
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
lea edx, [ebp - 8]
push edx
call fcn.004601e0
add esp, 0xc
push 8
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.004601e0
add esp, 0xc
lea edx, [ebp - 8]
push edx
call fcn.0044faa8
pop ecx
lea eax, [ebp - 8]
lea edx, [ebp - 0x18]
mov ecx, 8
mov bl, byte [edx]
inc edx
xor byte [eax], bl
inc eax
dec ecx
test ecx, ecx
jne 0x401351
push 8
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.004601e0
add esp, 0xc
lea ecx, [ebp - 8]
push 8
push ecx
mov eax, dword [ebp + 0x14]
add eax, edi
push eax
call fcn.004601e0
add esp, 0xc
add edi, 8
lea edx, [esi - 7]
cmp edi, edx
jl 0x401316
call fcn.0044f8a8
movsx ecx, byte [ebp - 1]
mov eax, 8
sub eax, ecx
push eax
mov eax, dword [ebp - 0x24]
pop edx
sub eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4013ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 3
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x46e26a
push 0
call sub.SHELL32.DLL_ShellExecuteA
pop ebp
ret

Function at 0x413244
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], 0x46f604
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0x46071b
mov word [ebp - 0x14], 0
mov eax, dword fs:[0]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x24]
mov dword fs:[0], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x4c], ecx
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 8], eax
mov edx, dword [ebx + 0x4c]
fld qword [edx + 0x2fc]
call fcn.00467808
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 0x4c]
fld qword [edx + 0x304]
call fcn.00467808
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x18]
mov edx, dword [ebx + 8]
mov edi, eax
mov dword [ebx], edx
mov eax, edi
mov ecx, dword [ebx + 0x10]
mov esi, 0x46f5f6
mov dword [ebx + 4], ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebx + 0x30], 0x12
xor edx, edx
xor eax, eax
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x34], edx
mov byte [ebx + 0x45], al
mov byte [ebx + 0x44], al
mov dword [ebx + 0x48], 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431b80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
setl al
and eax, 1
mov byte [ebp - 1], al
push 0x25
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
jl 0x431bbb
push 0x27
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
jl 0x431bbb
xor edx, edx
jmp 0x431bc0
mov edx, 1
mov byte [ebp - 2], dl
cmp byte [ebp - 2], 0
je 0x431bcf
cmp byte [ebp - 1], 0
jne 0x431bd3
xor ebx, ebx
jmp 0x431bd8
mov ebx, 1
push 1
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
setl al
and eax, 1
mov byte [ebp - 3], al
lea eax, [ebp - 0xc]
mov edx, dword [edi + 0x15c]
mov ecx, dword [edx + 0xd4]
lea edx, [ebp - 8]
mov esi, dword [ecx]
push eax
push edx
push esi
call fcn.0042a1c8
add esp, 0xc
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jge 0x431c17
lea eax, [ebp - 8]
jmp 0x431c1a
lea eax, [ebp - 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jle 0x431c2c
lea eax, [ebp - 8]
jmp 0x431c2f
lea eax, [ebp - 0xc]
cmp byte [ebp - 2], 0
mov eax, dword [eax]
je 0x431c49
cmp byte [ebp - 1], 0
jne 0x431c49
push edi
call fcn.00431f64
pop ecx
jmp 0x431cd6
test bl, bl
jne 0x431c53
cmp byte [ebp - 3], 0
je 0x431ccf
mov edx, dword [edi + 0x168]
test dl, 2
jne 0x431c63
test dl, 1
je 0x431c8b
cmp eax, dword [ebp + 0xc]
jg 0x431c7b
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp - 0x10]
push eax
push esi
call fcn.0042a114
add esp, 0xc
jmp 0x431cd6
push eax
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.0042a114
add esp, 0xc
jmp 0x431cd6
test bl, bl
je 0x431ca5
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [edi + 0x160]
push eax
push esi
call fcn.0042a114
add esp, 0xc
jmp 0x431cb6
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.0042a114
add esp, 0xc
and dword [edi + 0x168], 0xfffffffc
mov al, 2
test bl, bl
jne 0x431cc4
dec eax
movsx edx, al
or dword [edi + 0x168], edx
jmp 0x431cd6
and dword [edi + 0x168], 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437610
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea esi, [edi + 8]
push ebx
call sub.USER32.DLL_GetAsyncKeyState
cmp byte [edi + 0x2d9], 0
jne 0x43762f
xor eax, eax
mov word [esi], ax
inc ebx
add esi, 2
cmp ebx, 0x100
jl 0x43761e
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x437718
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x2d
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
setl al
and eax, 1
mov byte [ebp - 1], al
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
push 0x10
setl bl
and ebx, 1
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
setl al
and eax, 1
test al, al
je 0x437762
cmp byte [ebp - 1], 0
jne 0x437775
test bl, bl
je 0x437799
mov eax, esi
movsx eax, al
cmp eax, 0x56
je 0x437775
cmp eax, 0x76
jne 0x437799
mov eax, dword [edi + 0x370]
test eax, eax
jne 0x437785
mov eax, dword [edi + 0x36c]
test eax, eax
je 0x4378a5
push eax
mov edx, dword [eax]
call dword [edx + 0x6c]
pop ecx
jmp 0x4378a5
test bl, bl
je 0x4377a3
cmp byte [ebp - 1], 0
jne 0x4377b6
test bl, bl
je 0x4377da
mov eax, esi
movsx eax, al
cmp eax, 0x43
je 0x4377b6
cmp eax, 0x63
jne 0x4377da
mov eax, dword [edi + 0x370]
test eax, eax
jne 0x4377c6
mov eax, dword [edi + 0x36c]
test eax, eax
je 0x4378a5
push eax
mov edx, dword [eax]
call dword [edx + 0x64]
pop ecx
jmp 0x4378a5
test bl, bl
je 0x437811
mov eax, esi
movsx eax, al
cmp eax, 0x58
je 0x4377ed
cmp eax, 0x78
jne 0x437811
mov eax, dword [edi + 0x370]
test eax, eax
jne 0x4377fd
mov eax, dword [edi + 0x36c]
test eax, eax
je 0x4378a5
push eax
mov edx, dword [eax]
call dword [edx + 0x68]
pop ecx
jmp 0x4378a5
cmp dword [edi + 0x370], 0
je 0x437853
cmp esi, 1
je 0x437829
cmp esi, 2
je 0x437829
cmp esi, 4
jne 0x437853
fild dword [ebp + 0x14]
mov ebx, dword [edi + 0x370]
fsub qword [ebx + 0x5c]
call fcn.00467808
push eax
fild dword [ebp + 0x10]
fsub qword [ebx + 0x54]
call fcn.00467808
push eax
push esi
push ebx
mov edx, dword [ebx]
call dword [edx + 0x7c]
add esp, 0x10
jmp 0x4378a5
mov ebx, dword [edi + 0x36c]
test ebx, ebx
je 0x437890
cmp esi, 1
je 0x437890
cmp esi, 2
je 0x437890
cmp esi, 4
je 0x437890
fild dword [ebp + 0x14]
fsub qword [ebx + 0x5c]
call fcn.00467808
push eax
fild dword [ebp + 0x10]
fsub qword [ebx + 0x54]
call fcn.00467808
push eax
push esi
push ebx
mov edx, dword [ebx]
call dword [edx + 0x7c]
add esp, 0x10
jmp 0x4378a5
cmp esi, 9
jne 0x4378a5
cmp dword [edi + 0x36c], 0
jne 0x4378a5
push edi
call fcn.00437518
pop ecx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x44d944
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
setne al
and eax, 1
cmp dword [esp + 4], 4
ja 0x44d971
cmp dword [esp + 8], 0xa
jae 0x44d971
xor eax, eax
jmp 0x44d989
push 0
push 0x47564c
push 0
call sub.DSOUND.DLL_DirectSoundCreate
test eax, eax
je 0x44d987
xor eax, eax
jmp 0x44d989
mov al, 1
add esp, 0x94
ret
Function at 0x44e26c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebx + 8]
push edx
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jl 0x44e2a0
cmp eax, 2
je 0x44e2a0
xor ecx, ecx
jmp 0x44e2a5
mov ecx, 1
mov dword [ebx + 0xc], ecx
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ebp
ret

Function at 0x44e2b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebx + 8]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
setl dl
and edx, 1
mov dword [ebx + 0xc], edx
pop ebx
pop ebp
ret
Function at 0x44f734
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
cmp eax, dword [0x476818]
jne 0x44f750
cmp dword [0x47deec], 0
jne 0x44f75a
mov dword [0x476818], eax
call fcn.0044f6ec
or eax, 0xffffffff
mov edx, dword [ebp + 8]
test ebx, ebx
jle 0x44f782
movzx esi, byte [edx]
mov ecx, eax
inc edx
shr ecx, 0x18
dec ebx
xor ecx, esi
shl eax, 8
mov ecx, dword [ecx*4 + 0x47dee8]
xor ecx, eax
test ebx, ebx
mov eax, ecx
jg 0x44f764
not eax
pop esi
pop ebx
pop ebp
ret

Function at 0x44f788
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
cmp dword [0x47e2e8], 0
je 0x44f7a0
xor eax, eax
jmp 0x44f8a4
mov dword [0x47e2f8], ebx
push 0x800
call fcn.00450558
pop ecx
mov dword [0x47e2e8], eax
test eax, eax
jne 0x44f7c2
or eax, 0xffffffff
jmp 0x44f8a4
call fcn.0044fdc0
push 0x80
call fcn.00450558
pop ecx
mov esi, eax
mov dword [0x47e2f4], esi
test esi, esi
jne 0x44f7f2
mov eax, dword [0x47e2e8]
push eax
call fcn.00450568
pop ecx
or eax, 0xffffffff
jmp 0x44f8a4
cmp ebx, 1
je 0x44f7fc
cmp ebx, 2
jne 0x44f803
xor eax, eax
jmp 0x44f8a4
push 0x800
call fcn.00450558
pop ecx
mov ebx, eax
mov dword [0x47e2ec], ebx
test ebx, ebx
jne 0x44f838
mov eax, dword [0x47e2e8]
push eax
call fcn.00450568
pop ecx
mov edx, dword [0x47e2f4]
push edx
call fcn.00450568
pop ecx
or eax, 0xffffffff
jmp 0x44f8a4
push 0x47681c
mov edx, dword [0x47e2ec]
push edx
call fcn.0044fcf8
add esp, 8
push 0x800
call fcn.00450558
pop ecx
mov ebx, eax
mov dword [0x47e2f0], ebx
test ebx, ebx
jne 0x44f88e
mov eax, dword [0x47e2e8]
push eax
call fcn.00450568
pop ecx
mov edx, dword [0x47e2f4]
push edx
call fcn.00450568
pop ecx
mov ecx, dword [0x47e2ec]
push ecx
call fcn.00450568
pop ecx
or eax, 0xffffffff
jmp 0x44f8a4
push 0x47685c
mov edx, dword [0x47e2f0]
push edx
call fcn.0044fcf8
add esp, 8
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x44f908
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x47e2f8], 2
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
jne 0x44f944
xor esi, esi
xor ecx, ecx
mov edx, dword [0x47e2f4]
mov bl, byte [eax]
inc eax
lea edx, [edx + esi*8]
mov byte [edx + ecx], bl
inc ecx
cmp ecx, 8
jl 0x44f924
inc esi
cmp esi, 0x10
jl 0x44f922
jmp 0x44fa45
xor esi, esi
xor ecx, ecx
mov edx, dword [0x47e2f4]
lea edx, [edx + esi*8]
mov byte [edx + ecx], 0
inc ecx
cmp ecx, 8
jl 0x44f948
inc esi
cmp esi, 0x10
jl 0x44f946
xor ecx, ecx
lea edx, [ebp - 0x4c]
mov dword [ebp - 8], edx
mov esi, str.91__
movsx ebx, byte [esi]
dec ebx
mov edx, ebx
sar ebx, 3
and edx, 7
mov dword [ebp - 4], edx
movsx edx, byte [eax + ebx]
mov ebx, dword [ebp - 4]
and edx, dword [ebx*4 + 0x476b34]
je 0x44f991
mov dl, 1
jmp 0x44f993
xor edx, edx
mov ebx, dword [ebp - 8]
mov byte [ebx], dl
inc ecx
inc dword [ebp - 8]
inc esi
cmp ecx, 0x38
jl 0x44f96e
mov dword [ebp - 0x10], 0x4768d4
xor esi, esi
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0xc]
movsx ebx, byte [edx]
add ebx, ecx
mov edx, 0x1c
cmp ecx, 0x1c
jl 0x44f9ce
add edx, 0x1c
cmp ebx, edx
jge 0x44f9d6
mov edx, ebx
jmp 0x44f9d9
lea edx, [ebx - 0x1c]
mov dl, byte [ebp + edx - 0x4c]
inc ecx
mov byte [eax], dl
inc eax
cmp ecx, 0x38
jl 0x44f9b9
mov dword [ebp - 0x14], 0x4768e4
xor ecx, ecx
mov eax, dword [ebp - 0x14]
movsx eax, byte [eax]
cmp byte [ebp + eax - 0x85], 0
je 0x44fa2f
mov eax, ecx
mov ebx, 6
cdq
idiv ebx
mov eax, ecx
mov ebx, edx
cdq
mov edi, 6
idiv edi
mov edx, dword [0x47e2f4]
lea edx, [edx + esi*8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebx*4 + 0x476b34]
pop edx
sar eax, 2
or byte [edx], al
inc ecx
inc dword [ebp - 0x14]
cmp ecx, 0x30
jl 0x44f9ef
inc esi
inc dword [ebp - 0x10]
cmp esi, 0x10
jl 0x44f9ab
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fdc0
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc8
xor eax, eax
lea esi, [esp + 0x18]
xor edx, edx
mov ecx, esi
mov ebx, 0x476b14
movsx edi, byte [ebx]
dec edi
cmp eax, edi
jne 0x44fde1
mov byte [ecx], dl
jmp 0x44fde8
inc edx
inc ebx
cmp edx, 0x20
jl 0x44fdd5
inc eax
inc esi
cmp eax, 0x20
jl 0x44fdcc
xor eax, eax
lea edx, [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0x476914
xor edx, edx
mov eax, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 8], ecx
mov ecx, edx
xor eax, eax
and ecx, 0x20
mov dword [esp + 4], eax
test dl, 1
mov eax, 0x10
jne 0x44fe32
add eax, 0xfffffff0
or ecx, eax
mov eax, edx
sar eax, 1
mov ebx, dword [esp + 8]
and eax, 0xf
mov esi, ebx
or ecx, eax
xor eax, eax
mov ebx, dword [esp + 0xc]
add ebx, ecx
mov ecx, eax
mov edi, 8
sar edi, cl
mov ecx, edi
and cl, byte [ebx]
je 0x44fe71
movsx ecx, byte [esi]
push ecx
mov ecx, 0x1f
pop edi
sub ecx, edi
mov edi, 1
shl edi, cl
or dword [esp + 4], edi
inc eax
inc esi
cmp eax, 4
jl 0x44fe4b
mov eax, dword [esp]
shl eax, 8
mov ecx, dword [0x47e2e8]
lea eax, [ecx + eax]
mov ecx, dword [esp + 4]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, 0x40
jl 0x44fe1a
inc dword [esp]
add dword [esp + 0x14], 4
add dword [esp + 0x10], 0x40
cmp dword [esp], 8
jl 0x44fe04
add esp, 0x38
pop edi
pop esi
pop ebx
ret

Function at 0x451004
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x461638
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x461654
call fcn.00462bf4
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x461670
test bl, 1
je 0x461670
call fcn.00469a38
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x461854
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00462790
test byte [ebp + 0xd], 0xc0
jne 0x461878
mov eax, dword [0x47bbbc]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x461885
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4618b2
je 0x4618c4
sub ecx, 0x100
je 0x4618d2
sub ecx, 0x100
je 0x4618d9
sub ecx, 0x100
je 0x4618cb
jmp 0x4618e0
sub ecx, 0x600
je 0x4618d9
sub ecx, 0x100
je 0x4618c4
jmp 0x4618e0
mov edi, 1
jmp 0x4618e5
mov edi, 2
jmp 0x4618e5
mov edi, 4
jmp 0x4618e5
mov edi, 5
jmp 0x4618e5
mov edi, 3
test byte [ebp + 0xd], 1
je 0x46190c
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x47b634]
test al, 0x80
je 0x461905
mov ebx, 0x80
jmp 0x46191e
mov ebx, 1
jmp 0x46191e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x46191e
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x461930
je 0x461939
dec eax
je 0x461942
jmp 0x46194b
mov dword [ebp - 4], 0x80000000
jmp 0x46195a
mov dword [ebp - 4], 0x40000000
jmp 0x46195a
mov dword [ebp - 4], 0xc0000000
jmp 0x46195a
push 1
call fcn.00462b88
pop ecx
mov ebx, eax
jmp 0x461a46
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x461976
sub eax, 0x10
je 0x46197d
sub eax, 0x10
je 0x461986
sub eax, 0x10
je 0x46198f
jmp 0x46198f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x461996
mov dword [ebp - 8], 1
jmp 0x461996
mov dword [ebp - 8], 2
jmp 0x461996
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4619ff
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4619f4
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4619f4
add ebx, 0xffffffb2
push ebx
call fcn.00462b88
pop ecx
mov ebx, eax
jmp 0x461a46
mov edi, esi
push edi
call fcn.004617b8
pop ecx
test eax, eax
je 0x461a13
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x461a1f
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004628b0
add esp, 8
mov ebx, eax
inc eax
jne 0x461a46
push 4
call fcn.00462b88
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004627c4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461c08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00462790
test byte [ebp + 0xd], 0xc0
jne 0x461c2c
mov eax, dword [0x47bbbc]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x461c39
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x461c66
je 0x461c78
sub ecx, 0x100
je 0x461c86
sub ecx, 0x100
je 0x461c8d
sub ecx, 0x100
je 0x461c7f
jmp 0x461c94
sub ecx, 0x600
je 0x461c8d
sub ecx, 0x100
je 0x461c78
jmp 0x461c94
mov edi, 1
jmp 0x461c99
mov edi, 2
jmp 0x461c99
mov edi, 4
jmp 0x461c99
mov edi, 5
jmp 0x461c99
mov edi, 3
test byte [ebp + 0xd], 1
je 0x461cc0
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x47b634]
test al, 0x80
je 0x461cb9
mov ebx, 0x80
jmp 0x461cd2
mov ebx, 1
jmp 0x461cd2
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x461cd2
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x461ce4
je 0x461ced
dec eax
je 0x461cf6
jmp 0x461cff
mov dword [ebp - 4], 0x80000000
jmp 0x461d0e
mov dword [ebp - 4], 0x40000000
jmp 0x461d0e
mov dword [ebp - 4], 0xc0000000
jmp 0x461d0e
push 1
call fcn.00462b88
pop ecx
mov ebx, eax
jmp 0x461dfa
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x461d2a
sub eax, 0x10
je 0x461d31
sub eax, 0x10
je 0x461d3a
sub eax, 0x10
je 0x461d43
jmp 0x461d43
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x461d4a
mov dword [ebp - 8], 1
jmp 0x461d4a
mov dword [ebp - 8], 2
jmp 0x461d4a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x461db3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x461da8
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x461da8
add ebx, 0xffffffb2
push ebx
call fcn.00462b88
pop ecx
mov ebx, eax
jmp 0x461dfa
mov edi, esi
push edi
call fcn.004617b8
pop ecx
test eax, eax
je 0x461dc7
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x461dd3
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004628b0
add esp, 8
mov ebx, eax
inc eax
jne 0x461dfa
push 4
call fcn.00462b88
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004627c4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465ff4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004602f4
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00460384
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00460384
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x47c8dd
lea ecx, [ebp - 0x200]
push ecx
call fcn.004602f4
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00460384
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00467200
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x466105
push esi
call fcn.00460384
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00460384
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00450558
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4660dc
xor eax, eax
jmp 0x46618c
push esi
call fcn.00460384
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00460384
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00460250
add esp, 0xc
jmp 0x466145
mov edi, dword [ebx + 0x24]
push edi
call fcn.00460384
pop ecx
push eax
push esi
call fcn.00460384
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00460384
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00450578
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x466145
xor eax, eax
jmp 0x46618c
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004602f4
add esp, 8
push 0x47c8df
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004602f4
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004602f4
add esp, 8
push 0x47c8e1
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004602f4
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4699d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x469a32
call fcn.00469980
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00460384
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00460384
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret