joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ea90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push 0x104
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call fcn.10031b60
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1002eaf0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp dword [ebp - 4], esi
je 0x1002eaf0
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp + 0xc]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
leave
ret 8
Function at 0x1002eb87
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push ebp
sub esp, 0x454
lea ebp, [esp - 4]
mov eax, dword [0x1007b940]
xor eax, ebp
mov dword [ebp + 0x454], eax
push 0x1c
mov eax, 0x100606fd
call fcn.1003230f
mov dword [ebp - 0x20], ecx
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
lea eax, [ebp + 0x350]
push eax
push 0x1a
call fcn.1002ea90
lea eax, [ebp + 0x350]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001432
lea eax, [ebp + 0x468]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.10001c64
lea eax, [ebp + 0x24c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.10001413
push 0x1006499c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10001c79
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp + 0x10c]
push eax
push 0x10064998
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002eca2
test byte [ebp + 0x10c], 0x10
je 0x1002ec72
lea eax, [ebp + 0x138]
push 0x10064994
push eax
call fcn.10030de6
pop ecx
pop ecx
test eax, eax
je 0x1002ec72
lea eax, [ebp + 0x138]
push 0x10064990
push eax
call fcn.10030de6
pop ecx
pop ecx
test eax, eax
jne 0x1002ec86
lea eax, [ebp + 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1002ec3b
jmp 0x1002eca2
lea eax, [ebp + 0x138]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001c79
push str.Cookies.txt
lea ecx, [ebp - 0x18]
call fcn.10001c79
lea eax, [ebp + 0x24c]
push eax
call esi
lea eax, [ebp + 0x10c]
push eax
push dword [ebp - 0x14]
call edi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
je 0x1002ed71
push 0xa
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.1002e92e
lea ecx, [ebp]
mov byte [ebp - 4], 3
call fcn.1002ea24
jmp 0x1002ed0a
push str.HPID
push dword [ebp - 0x10]
call fcn.10030bd5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1002ed13
push dword [ebp - 0x10]
call fcn.100312c8
pop ecx
lea ecx, [ebp]
call fcn.1002e9ee
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1002ece4
jmp 0x1002ed65
push esi
call fcn.100300d0
mov ebx, eax
push ebx
call fcn.1002f7f6
push ebx
mov edi, eax
push 0
push edi
call fcn.10031b60
mov al, byte [esi + 5]
add esp, 0x14
push 5
pop ecx
mov byte [edi + ecx - 5], al
inc ecx
mov al, byte [ecx + esi]
cmp al, 0x3a
je 0x1002ed45
cmp ecx, ebx
jl 0x1002ed35
mov ecx, dword [ebp - 0x20]
push edi
call fcn.10001145
push dword [ebp - 0x10]
call fcn.100312c8
push edi
call fcn.100312c8
pop ecx
pop ecx
mov dword [ebp - 0x1c], 1
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.1002e95f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10001636
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.10001636
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x468]
call fcn.10001636
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x454]
xor ecx, ebp
call fcn.100302c9
add ebp, 0x458
leave
ret 0x10
Function at 0x100302c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007b940]
jne 0x100302d3
repz ret
jmp fcn.1003a1d5

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10035cbf
call fcn.100369fd
mov dword [eax], esi
call fcn.100369ea
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10032d79
add esp, 0x14
push 0x16
pop eax
jmp 0x10035d14
test dword [ebp + 0xc], 0xfffffff9
jne 0x10035c9b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10035cec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10036a10
pop ecx
call fcn.100369ea
mov eax, dword [eax]
jmp 0x10035d14
test al, 0x10
jne 0x10035d12
test al, 1
je 0x10035d12
test byte [ebp + 0xc], 2
je 0x10035d12
call fcn.100369fd
mov dword [eax], 5
call fcn.100369ea
mov dword [eax], 0xd
jmp 0x10035ce3
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10049686
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1003bd31
and dword [ebp - 4], 0
cmp dword [0x1007d8f0], 0
mov ebx, eax
jne 0x10049737
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100497e8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1006877c
push edi
call esi
test eax, eax
je 0x100497e8
push eax
call fcn.1003bcbf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1007d8f0], eax
call esi
push eax
call fcn.1003bcbf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1007d8f4], eax
call esi
push eax
call fcn.1003bcbf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1007d8f8], eax
call esi
push eax
call fcn.1003bcbf
pop ecx
mov dword [0x1007d900], eax
test eax, eax
je 0x10049737
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003bcbf
pop ecx
mov dword [0x1007d8fc], eax
mov eax, dword [0x1007d8fc]
cmp eax, ebx
je 0x1004978f
cmp dword [0x1007d900], ebx
je 0x1004978f
push eax
call fcn.1003bd3a
push dword [0x1007d900]
mov esi, eax
call fcn.1003bd3a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1004978f
test edi, edi
je 0x1004978f
call esi
test eax, eax
je 0x10049786
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10049786
test byte [ebp - 0xc], 1
jne 0x1004978f
or dword [ebp + 0x10], 0x200000
jmp 0x100497c8
mov eax, dword [0x1007d8f4]
cmp eax, ebx
je 0x100497c8
push eax
call fcn.1003bd3a
pop ecx
test eax, eax
je 0x100497c8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100497c8
mov eax, dword [0x1007d8f8]
cmp eax, ebx
je 0x100497c8
push eax
call fcn.1003bd3a
pop ecx
test eax, eax
je 0x100497c8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1007d8f0]
call fcn.1003bd3a
pop ecx
test eax, eax
je 0x100497e8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100497ea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004a1ff
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1004a23a
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1004a221
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1004a232
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1004a23c
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1004a217
xor eax, eax
pop edi
pop esi
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x403a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x403817
mov esi, dword [edx + 0x28]
movzx ecx, word [edx + 0x26]
nop
xor edi, edi
nop
jmp 0x403830
nop
jmp 0x40383e
xor eax, eax
nop
lodsb al, byte [esi]
nop
cmp al, 0x61
jl 0x40385a
nop
jmp 0x403857
sub al, 0x20
nop
jmp 0x403865
ror edi, 0xd
nop
jmp 0x403875
add edi, eax
jmp 0x403886
dec ecx
jne 0x403830
jmp 0x40389b
push edx
push edi
nop
jmp 0x4038a8
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
jmp 0x4038bf
add eax, edx
jmp 0x4038cf
mov eax, dword [eax + 0x78]
test eax, eax
nop
jmp 0x4038e1
je 0x403a7a
nop
add eax, edx
nop
push eax
nop
mov ecx, dword [eax + 0x18]
nop
mov ebx, dword [eax + 0x20]
jmp 0x403902
add ebx, edx
nop
test ecx, ecx
nop
je 0x403a50
nop
dec ecx
mov esi, dword [ebx + ecx*4]
nop
add esi, edx
nop
xor edi, edi
nop
jmp 0x403926
nop
xor eax, eax
jmp 0x403935
lodsb al, byte [esi]
jmp 0x403942
ror edi, 0xd
jmp 0x403950
add edi, eax
nop
cmp al, ah
nop
jmp 0x403967
jne 0x403926
add edi, dword [ebp - 8]
nop
jmp 0x403981
cmp edi, dword [ebp + 0x24]
nop
jmp 0x40398f
jne 0x403905
nop
pop eax
nop
mov ebx, dword [eax + 0x24]
jmp 0x4039ac
add ebx, edx
mov cx, word [ebx + ecx*2]
nop
mov ebx, dword [eax + 0x1c]
nop
add ebx, edx
jmp 0x4039c8
mov eax, dword [ebx + ecx*4]
add eax, edx
nop
nop
jmp 0x4039da
mov dword [esp + 0x24], eax
jmp 0x4039ee
pop ebx
jmp 0x4039ff
pop ebx
nop
jmp 0x403a15
popal
jmp 0x403a26
pop ecx
nop
pop edx
nop
push ecx
jmp 0x403a3e
jmp eax
nop
jmp 0x403a65
pop eax
nop
jmp 0x403a7a
nop
pop edi
pop edx
jmp 0x403a8e
mov edx, dword [edx]
jmp 0x403aa0
jmp 0x40380d

Function at 0x407ef0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
dec edx
mov ebp, esp
sub esp, 0x14
adc dword [eax + 0x10], 0x21
jl 0x407f03
invalid
fnsave dword [ecx + 8]
invalid
Function at 0x40f2b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x61f470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x61f46c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x61f470], edx
cmp eax, 0x26f
jl 0x40f2b8
mov dword [0x59b060], 0x270
ret

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

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x61f474]
mov ebx, dword [eax*4 + 0x61f470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x61faa4]
mov dword [eax*4 + 0x61f470], edx
cmp eax, 0xe2
jl 0x40f2f8
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x61f474]
mov ebx, dword [eax*4 + 0x61f470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x61f0e4]
mov dword [eax*4 + 0x61f470], edx
cmp eax, 0x26e
jl 0x40f348
mov edx, dword [0x61f470]
mov ecx, dword [0x61fe2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x61faa0]
mov dword [0x61fe2c], eax
mov dword [0x59b060], 0
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, dword [0x59b060]
add dword [0x59b060], 1
mov eax, dword [0x61e020]
cmp eax, dword [0x59a7b0]
jne 0x40f3f3
cmp ebx, 0x271
jb 0x40f414
mov eax, dword [0x61e020]
call fcn.0040f2b0
not dword [0x61e020]
mov eax, dword [0x61e020]
mov dword [0x59a7b0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40f430
call fcn.0040f2f0
xor ebx, ebx
mov dword [0x59b060], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x61f470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x410fc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x59a500]
cmp ax, 0xcb
je 0x4110cc
cmp ax, 0xcc
je 0x4110cc
lea esi, [esi]
mov edx, dword [0x620070]
test edx, edx
je 0x410ff5
mov eax, dword [0x61ff20]
call edx
mov ebx, eax
jmp 0x410ffa
mov ebx, 0x61ff24
cmp word [0x61ff10], 0
jle 0x411020
mov eax, 0x61fef0
call fcn.00411280
mov eax, ebx
call fcn.00410b80
mov eax, ebx
call fcn.00410bf0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x411042
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x41103d
mov edx, edi
mov eax, ebx
call fcn.0040fff0
jmp 0x411040
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x411028
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x61ff10], 0
jle 0x4110cc
mov edx, 0x61fe30
mov eax, ebx
call fcn.00410130
mov edi, eax
test edi, edi
je 0x41109c
mov eax, dword [0x61fec4]
mov dword [edi + 0xc], eax
cmp dword [0x61fec4], 0
je 0x411090
mov eax, dword [0x61fec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x61fec4], eax
nop
sub word [0x61ff10], 1
cmp word [0x61ff10], 0
sete bl
mov eax, 0x61fef0
call fcn.004112a0
test bl, bl
je 0x4110cc
mov eax, 0x61fef0
call fcn.00411270
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x413960
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00413950
push ebp
push 0x415030
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, esi
test esi, esi
jne 0x413999
mov eax, 0x61f2f0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
lea edx, [ebx - 1]
lea eax, [ebp - 0xc]
call fcn.0040bb30
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4139bc
mov eax, 0x61f2f0
push eax
push ebx
mov eax, esi
test esi, esi
jne 0x4139c9
mov eax, 0x61f2f0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edx, eax
test edx, edx
je 0x413a8e
jmp 0x4139e3
sub edx, 1
cmp edx, 3
jbe 0x4139f4
mov eax, dword [ebp - 0xc]
cmp word [eax + edx*2 - 2], 0x5c
je 0x4139e0
mov eax, ebx
mov edi, 0
sub eax, 1
sbb edi, 0
mov ecx, edx
xor ebx, ebx
cmp edi, ebx
jne 0x413a0d
cmp eax, ecx
je 0x413a18
lea eax, [ebp - 0xc]
call fcn.0040bb30
lea esi, [esi]
mov eax, 0x401200
mov edx, dword [ebp - 0xc]
call fcn.004138d0
mov edx, dword [0x620070]
test edx, edx
je 0x413a38
mov eax, dword [0x61f160]
call edx
jmp 0x413a3d
mov eax, 0x61f164
cmp word [eax], 0
jne 0x413a9a
mov eax, esi
test esi, esi
je 0x413a4d
mov eax, dword [eax - 4]
cmp eax, 2
jle 0x413a9a
cmp word [esi + 2], 0x3a
jne 0x413a9a
mov word [ebp - 8], 0x3d
mov ax, word [esi]
mov word [ebp - 6], ax
mov word [ebp - 4], 0x3a
mov word [ebp - 2], 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413a7f
mov eax, 0x61f2f0
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
lea esi, [esi]
jmp 0x413a9a
mov eax, 0x401200
mov edx, esi
call fcn.004138d0
mov edx, dword [0x620070]
test edx, edx
je 0x413aad
mov eax, dword [0x61f160]
call edx
jmp 0x413ab2
mov eax, 0x61f164
cmp word [eax], 2
jne 0x413ad8
mov edx, dword [0x620070]
test edx, edx
je 0x413acc
mov eax, dword [0x61f160]
call edx
jmp 0x413ad1
mov eax, 0x61f164
mov word [eax], 3
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00413950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00413af0
push ebp
push 0x415030
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x413c3a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040bb30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x413b9f
mov edx, 0x61f2f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x413bf1
call sub.kernel32.dll_GetLastError
call fcn.004040a0
lea eax, [ebp - 0x10]
call fcn.0040a410
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a9c0
mov edx, dword [ebp - 0x14]
mov ecx, 0x5b8344
lea eax, [ebp - 0x10]
call fcn.0040a740
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040b400
jmp 0x413c88
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x413c0a
cmp eax, ecx
je 0x413c14
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040bb30
cmp byte [0x59a780], 0
jne 0x413c88
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040c0d0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b490
lea esi, [esi]
jmp 0x413c88
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040bb30
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x413c5e
mov eax, 0x61f2f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x59a780], 0
jne 0x413c88
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040c0d0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b490
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00413af0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4141c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x61f260], 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, eax
xor edx, edx
mov eax, ebp
call fcn.004143a0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x61f260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403610
call sub.kernel32.dll_GetCommandLineA
mov dword [0x59a580], eax
mov ebx, eax
jmp 0x414363
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x414248
cmp byte [ebx], 0
je 0x41436c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x4142c3
mov al, byte [ebx]
cmp al, 1
jb 0x4142b8
sub al, 0x20
jbe 0x414288
sub al, 2
je 0x41429c
jmp 0x4142b8
mov al, byte [ebp - 0x114]
test al, al
je 0x4142c8
add dword [ebp - 0x110], 1
jmp 0x4142c0
cmp byte [ebx + 1], 0x22
je 0x4142b3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4142c0
add ebx, 1
jmp 0x4142c0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414278
test dword [ebp - 0x10c], 0xffffffff
je 0x41435c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.004143a0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x61f260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x414353
mov al, byte [ebx]
cmp al, 1
jb 0x414348
sub al, 0x20
jbe 0x414318
sub al, 2
je 0x41432c
jmp 0x414348
mov al, byte [ebp - 0x114]
test al, al
je 0x414358
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x414350
cmp byte [ebx + 1], 0x22
je 0x414343
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x414350
add ebx, 1
jmp 0x414350
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414308
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x41424b
mov ebx, dword [ebp - 0x10c]
mov dword [0x61f250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x61f260
call fcn.00410e00
mov eax, dword [0x61f260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416240
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov dx, 0xffff
lea esi, [esi]
add dx, 1
movsx eax, dx
mov ecx, eax
xor bx, bx
lea esi, [esi]
add bx, 1
mov eax, ecx
and eax, 1
je 0x416271
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x416273
shr ecx, 1
cmp bx, 8
jl 0x416258
movzx eax, dx
mov dword [eax*4 + 0x622020], ecx
cmp dx, 0xff
jl 0x416248
pop ebx
ret

Function at 0x416290
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, edx
mov esi, ecx
cmp dword [0x622024], 0
jne 0x4162a8
call fcn.00416240
nop
mov ecx, edi
not ebx
mov eax, ebx
cmp esi, 1
jl 0x4162dc
xor ebx, ebx
lea esi, [esi]
add ebx, 1
mov dl, al
xor dl, byte [ecx]
and edx, 0xff
mov edi, eax
shr edi, 8
xor edi, dword [edx*4 + 0x622020]
mov eax, edi
add ecx, 1
cmp esi, ebx
jg 0x4162b8
mov esi, esi
not eax
pop edi
pop esi
pop ebx
ret
Function at 0x43a5c0
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 0x43a66a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x43a686
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
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 0x43a686
sub dx, 0x20
je 0x43a660
sub dx, 0x80
je 0x43a660
sub dx, 0x1f62
jb 0x43a686
sub dx, 1
jbe 0x43a660
sub dx, 6
je 0x43a660
sub dx, 0x26
jne 0x43a686
nop
jmp 0x43a660
cmp eax, dword [ebp - 0x20]
jg 0x43a608
lea esi, [esi]
jmp 0x43a686
cmp dword [ebp - 0x1c], 2
jne 0x43a67a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x43a686
mov al, byte [ebp - 0xc]
call fcn.0040b790
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x43a704
sub ax, 0x21
je 0x43a718
sub ax, 0x17
je 0x43a724
sub ax, 0x222
je 0x43a730
sub ax, 0x392
je 0x43a738
sub ax, 1
je 0x43a740
sub ax, 0x1996
je 0x43a748
sub ax, 1
je 0x43a750
sub ax, 6
je 0x43a758
sub ax, 0xb
je 0x43a768
sub ax, 0x1b
je 0x43a760
sub ax, 0x367
je 0x43a770
jmp 0x43a778
mov ax, word [ebp - 0x24]
call fcn.0040b830
mov byte [ebp - 0x10], al
jmp 0x43a780
mov byte [ebp - 0x10], 0x20
jmp 0x43a780
mov byte [ebp - 0x10], 0x2e
jmp 0x43a780
mov byte [ebp - 0x10], 0x27
jmp 0x43a780
mov byte [ebp - 0x10], 0x2c
jmp 0x43a780
mov byte [ebp - 0x10], 0x27
jmp 0x43a780
mov byte [ebp - 0x10], 0x20
jmp 0x43a780
mov byte [ebp - 0x10], 0x20
jmp 0x43a780
mov byte [ebp - 0x10], 0x20
jmp 0x43a780
mov byte [ebp - 0x10], 0x20
jmp 0x43a780
mov byte [ebp - 0x10], 0x2d
jmp 0x43a780
mov byte [ebp - 0x10], 0x27
jmp 0x43a780
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret