joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b415
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046b294

Function at 0x47358e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047324e

Function at 0x47a7c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x414], eax
push edi
mov edi, dword [esp + 0x424]
lea eax, [esp + 8]
push 0x410
push 0
push eax
call fcn.004574b0
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x424]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x47a832
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x47a84a
mov eax, dword [esp + 4]
test eax, eax
je 0x47a832
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop edi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00455137
add esp, 0x418
ret
lea edx, [esp + 8]
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47a852
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004069d0
mov eax, dword [esp + 8]
pop esi
test eax, eax
je 0x47a87e
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
xor ecx, esp
call fcn.00455137
add esp, 0x418
ret

Function at 0x47a8a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004574b0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47a907
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x47a8f0
jne 0x47a907
cmp dword [esp + 8], 0
jbe 0x47a907
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00455137
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.00455137
add esp, 0x118
ret

Function at 0x47a920
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x4a89d0], 0
jne 0x47a9a2
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004574b0
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a983
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a89c0
call fcn.004069d0
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00455137
add esp, 0x214
ret
Function at 0x47aa50
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x4844b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4aa3c0]
test eax, eax
jle 0x47aaa1
inc eax
mov dword [0x4aa3c0], eax
mov al, 1
jmp 0x47ab93
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.0041a9c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041b5f0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041aa40
test bl, bl
je 0x47ab83
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x47ab83
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x47ab7c
inc dword [0x4aa3c0]
mov eax, dword [edi]
test eax, eax
je 0x47ab26
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x4a89e8], 0
mov dword [ebp - 0x10], 0
jne 0x47ab7c
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.004574b0
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x4a89d8
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.0040bbc0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47ab91
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.00455137
lea esp, [ebp + 0x210]
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x408f8f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41003c]
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.004057ce
and dword [ebp - 0x14], 0
cmp dword [0x411ca8], 0
mov dword [ebp - 0x18], eax
jne 0x409042
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4090ea
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4090ea
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411ca8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411cac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411cb0], eax
call edi
push eax
call esi
mov dword [0x411cb8], eax
test eax, eax
je 0x409042
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411cb4], eax
mov eax, dword [0x411cb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40909b
cmp dword [0x411cb8], ecx
je 0x40909b
push eax
call esi
push dword [0x411cb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40909b
test ebx, ebx
je 0x40909b
call edi
test eax, eax
je 0x409092
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409092
test byte [ebp - 8], 1
jne 0x40909b
or dword [ebp + 0x10], 0x200000
jmp 0x4090ce
mov eax, dword [0x411cac]
cmp eax, dword [ebp - 0x18]
je 0x4090ce
push eax
call esi
test eax, eax
je 0x4090ce
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4090ce
mov eax, dword [0x411cb0]
cmp eax, dword [ebp - 0x18]
je 0x4090ce
push eax
call esi
test eax, eax
je 0x4090ce
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411ca8]
call esi
test eax, eax
je 0x4090ea
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4090ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ac4
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x406291
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4261d0]
jne 0x40629b
repz ret
jmp fcn.0040871c

Function at 0x40adfc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4261d0]
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.004074b2
and dword [ebp - 0x14], 0
cmp dword [0x427a30], 0
mov dword [ebp - 0x18], eax
jne 0x40aeaf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40af57
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40af57
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x427a30], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x427a34], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x427a38], eax
call edi
push eax
call esi
mov dword [0x427a40], eax
test eax, eax
je 0x40aeaf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x427a3c], eax
mov eax, dword [0x427a3c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40af08
cmp dword [0x427a40], ecx
je 0x40af08
push eax
call esi
push dword [0x427a40]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40af08
test ebx, ebx
je 0x40af08
call edi
test eax, eax
je 0x40aeff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aeff
test byte [ebp - 8], 1
jne 0x40af08
or dword [ebp + 0x10], 0x200000
jmp 0x40af3b
mov eax, dword [0x427a34]
cmp eax, dword [ebp - 0x18]
je 0x40af3b
push eax
call esi
test eax, eax
je 0x40af3b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40af3b
mov eax, dword [0x427a38]
cmp eax, dword [ebp - 0x18]
je 0x40af3b
push eax
call esi
test eax, eax
je 0x40af3b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x427a30]
call esi
test eax, eax
je 0x40af57
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40af59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406291
leave
ret

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

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
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
mov ebx, 0x40de38
nop
mov ecx, 0x16b76b0a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
mov eax, section..didat
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2db90108
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x7c9ae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3a5000]
push edi
or ebp, 0xffffffff
jmp 0x7c9b02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7c9b09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c9af8
mov eax, 1
add ebx, ebx
jne 0x7c9b1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7c9b2c
jne 0x7c9b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c9b4b
dec eax
add ebx, ebx
jne 0x7c9b38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7c9b10
add ebx, ebx
jne 0x7c9b47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7c9b9d
xor ecx, ecx
sub eax, 3
jb 0x7c9b63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7c9bd2
sar eax, 1
mov ebp, eax
jmp 0x7c9b6e
add ebx, ebx
jne 0x7c9b6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c9b3c
inc ecx
add ebx, ebx
jne 0x7c9b7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c9b3c
add ebx, ebx
jne 0x7c9b89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7c9b7e
jne 0x7c9b9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7c9b7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7c9bbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7c9bae
jmp 0x7c9afe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7c9bbc
add edi, ecx
jmp 0x7c9afe
pop esi
mov edi, esi
mov ecx, 0x6c6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7c9bda
cmp byte [edi], 0xe
jne 0x7c9bda
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7c9bdf
lea edi, [esi + 0x3c7000]
mov eax, dword [edi]
or eax, eax
je 0x7c9c4e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3d4a54]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3d4aa4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7c9c0c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3d4aac]
or eax, eax
je 0x7c9c48
mov dword [ebx], eax
add ebx, 4
jmp 0x7c9c29
call dword [esi + 0x3d4aa8]
mov ebp, dword [esi + 0x3d4ab0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x7c9c82
sub esp, 0xffffff80
jmp 0x408159
Function at 0x40e9b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x5f4410], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x5f440c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x5f4410], eax
cmp ecx, 0x26f
jl 0x40e9c0
mov dword [0x578080], 0x270
ret

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

Disassembly:
push ebx
mov eax, dword [0x5f3010]
cmp eax, dword [0x5777d0]
je 0x40ea18
mov dword [0x578080], 0x271
cmp dword [0x578080], 0x270
jl 0x40eb37
cmp dword [0x578080], 0x271
jne 0x40ea4f
mov eax, dword [0x5f3010]
call fcn.0040e9b0
mov eax, dword [0x5f3010]
not eax
mov dword [0x5f3010], eax
mov dword [0x5777d0], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x5f4414]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x5f4410]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x5f4a44]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x578090]
xor edx, eax
mov dword [ebx*4 + 0x5f4410], edx
cmp ebx, 0xe2
jl 0x40ea58
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x5f4414]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x5f4410]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x5f4084]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x578090]
xor edx, eax
mov dword [ebx*4 + 0x5f4410], edx
cmp ebx, 0x26e
jl 0x40eaac
mov eax, dword [0x5f4dcc]
and eax, 0x80000000
mov edx, dword [0x5f4410]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x5f4a40]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x578090]
xor eax, edx
mov dword [0x5f4dcc], eax
mov dword [0x578080], 0
mov eax, dword [0x578080]
mov eax, dword [eax*4 + 0x5f4410]
add dword [0x578080], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x4105d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x577500]
cmp ax, 0xcb
je 0x4106cc
cmp ax, 0xcc
je 0x4106cc
mov edx, dword [0x5f5020]
test edx, edx
je 0x410602
mov eax, dword [0x5f4ec0]
call edx
mov ebx, eax
jmp 0x410607
mov ebx, 0x5f4ec4
cmp word [0x5f4eb0], 0
jle 0x41062a
mov eax, 0x5f4e90
call fcn.00410880
mov eax, ebx
call fcn.004101b0
mov eax, ebx
call fcn.00410220
mov edi, dword [ebx]
jmp 0x41064a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x410645
mov edx, edi
mov eax, ebx
call fcn.0040f680
jmp 0x410648
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x410630
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x5f4eb0], 0
jle 0x4106cc
mov edx, 0x5f4dd0
mov eax, ebx
call fcn.0040f7b0
mov edi, eax
test edi, edi
je 0x41069f
mov eax, dword [0x5f4e64]
mov dword [edi + 0xc], eax
cmp dword [0x5f4e64], 0
je 0x410694
mov eax, dword [0x5f4e64]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x5f4e64], eax
sub word [0x5f4eb0], 1
cmp word [0x5f4eb0], 0
sete bl
mov eax, 0x5f4e90
call fcn.00410890
test bl, bl
je 0x4106cc
mov eax, 0x5f4e90
call fcn.00410870
pop edi
pop esi
pop ebx
ret
Function at 0x412580
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x5f4250], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.00412760
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x5f4250]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004036d0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x577580], eax
mov esi, dword [0x577580]
jmp 0x412720
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x412610
cmp byte [esi], 0
je 0x412729
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x412685
mov al, byte [esi]
cmp al, 1
jb 0x41267b
sub al, 0x20
jbe 0x41264c
sub al, 2
je 0x41265f
jmp 0x41267b
mov al, byte [ebp - 0x10c]
test al, al
je 0x41268a
add dword [ebp - 0x110], 1
jmp 0x412682
cmp byte [esi + 1], 0x22
je 0x412676
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x412682
add esi, 1
jmp 0x412682
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x41263c
test dword [ebp - 0x114], 0xffffffff
je 0x412719
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.00412760
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x5f4250]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x412711
mov al, byte [esi]
cmp al, 1
jb 0x412707
sub al, 0x20
jbe 0x4126d8
sub al, 2
je 0x4126eb
jmp 0x412707
mov al, byte [ebp - 0x10c]
test al, al
je 0x412716
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x41270e
cmp byte [esi + 1], 0x22
je 0x412702
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x41270e
add esi, 1
jmp 0x41270e
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x4126c8
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x412613
mov ebx, dword [ebp - 0x114]
mov dword [0x5f4240], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x5f4250
call fcn.00410430
mov eax, dword [0x5f4250]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427440
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x4274dc
mov eax, dword [ebp - 0x1c]
sub eax, 2
mov dword [ebp - 0x20], 0
cmp eax, dword [ebp - 0x20]
jl 0x4274f8
sub dword [ebp - 0x20], 1
nop
add dword [ebp - 0x20], 1
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x4274f8
sub dx, 0x20
je 0x4274d5
sub dx, 0x80
je 0x4274d5
sub dx, 0x1f62
jb 0x4274f8
sub dx, 1
jbe 0x4274d5
sub dx, 6
je 0x4274d5
sub dx, 0x26
jne 0x4274f8
jmp 0x4274d5
cmp eax, dword [ebp - 0x20]
jg 0x427488
jmp 0x4274f8
cmp dword [ebp - 0x1c], 2
jne 0x4274ec
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x4274f8
mov al, byte [ebp - 0xc]
call fcn.0040b400
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x427546
sub ax, 0x21
je 0x427554
sub ax, 0x17
je 0x42755a
sub ax, 0x222
je 0x427560
sub ax, 0x392
je 0x427566
sub ax, 1
je 0x42756c
sub ax, 0x1996
je 0x427572
sub ax, 1
je 0x427578
sub ax, 6
je 0x42757e
sub ax, 0xb
je 0x42758a
sub ax, 0x1b
je 0x427584
sub ax, 0x367
je 0x427590
jmp 0x427596
mov ax, word [ebp - 0x24]
call fcn.0040b470
mov byte [ebp - 0x10], al
jmp 0x42759c
mov byte [ebp - 0x10], 0x20
jmp 0x42759c
mov byte [ebp - 0x10], 0x2e
jmp 0x42759c
mov byte [ebp - 0x10], 0x27
jmp 0x42759c
mov byte [ebp - 0x10], 0x2c
jmp 0x42759c
mov byte [ebp - 0x10], 0x27
jmp 0x42759c
mov byte [ebp - 0x10], 0x20
jmp 0x42759c
mov byte [ebp - 0x10], 0x20
jmp 0x42759c
mov byte [ebp - 0x10], 0x20
jmp 0x42759c
mov byte [ebp - 0x10], 0x20
jmp 0x42759c
mov byte [ebp - 0x10], 0x2d
jmp 0x42759c
mov byte [ebp - 0x10], 0x27
jmp 0x42759c
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0x10]
leave
ret

Function at 0x438540
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push dword [ebx + 4]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x43855a
mov dword [ebx + 0xc], 0
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x44bcac
mov eax, 0x5f42e0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x44bcbf
and eax, 0x10
sete al
jmp 0x44bcc1
mov al, 0
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x44bcdc
mov eax, 0x5f42e0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x44bcef
and eax, 0x10
seta al
jmp 0x44bcf1
mov al, 0
leave
ret