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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041266c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041266c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41a77c
cmp word [ecx], dx
je 0x41a77c
mov eax, dword [0x423b44]
push edi
dec eax
push eax
push 0x423a30
call fcn.0041a6a4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41a7ef
cmp word [eax], dx
je 0x41a7ef
mov eax, dword [edi]
test eax, eax
je 0x41a7a0
cmp word [eax], dx
je 0x41a7a0
lea eax, [ebp - 0x10]
push eax
call fcn.0041a087
jmp 0x41a7a9
lea eax, [ebp - 0x10]
push eax
call fcn.0041a122
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41a819
mov eax, dword [0x423a2c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x423720
call fcn.0041a6a4
add esp, 0xc
test al, al
je 0x41a819
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41a7e4
cmp word [eax], di
je 0x41a7e4
lea eax, [ebp - 0x10]
push eax
call fcn.0041a087
pop ecx
jmp 0x41a81b
lea eax, [ebp - 0x10]
push eax
call fcn.0041a122
jmp 0x41a7e1
mov eax, dword [edi]
test eax, eax
je 0x41a806
cmp word [eax], dx
je 0x41a806
lea eax, [ebp - 0x10]
push eax
call fcn.0041a03c
pop ecx
jmp 0x41a819
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41a8e4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041a529
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41a8e4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41a8e4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41a8e4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41a871
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004140a0
test ebx, ebx
je 0x41a8df
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004140a0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a8e4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a8e4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041d221
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41a8e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004077db
leave
ret
Function at 0x41b05b
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 + 0x42b9d0]
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 0x41b09b
cmp byte [ebx], 0xa
jne 0x41b09b
or byte [edi + eax + 0x28], 4
jmp 0x41b0a0
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 0x41b19f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41b182
inc eax
cmp dl, 0xd
je 0x41b0cc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41b0f2
cmp eax, ecx
jae 0x41b100
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 0x41b0b4
jmp 0x41b19f
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 0x41b17d
cmp dword [ebp - 0x10], 0
je 0x41b17d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42b9d0]
test byte [eax + edi + 0x28], 0x48
je 0x41b157
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b142
mov byte [esi], dl
jmp 0x41b153
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42b9d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b19f
cmp byte [ebp - 1], 0xa
jne 0x41b166
cmp esi, ebx
jne 0x41b166
mov byte [esi], 0xa
jmp 0x41b19e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414c09
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b19f
mov byte [esi], 0xd
jmp 0x41b19e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42b9d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b19c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b19f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b1a8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x42b9d0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b1ee
cmp word [ebx], dx
jne 0x41b1ee
or byte [eax + edi + 0x28], 4
jmp 0x41b1f3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41b356
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41b336
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41b234
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b26a
cmp eax, edx
jae 0x41b278
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41b20f
jmp 0x41b356
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b331
cmp dword [ebp - 0x18], 0
je 0x41b331
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42b9d0]
test byte [eax + edi + 0x28], 0x48
je 0x41b307
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41b2cb
mov word [esi], cx
jmp 0x41b302
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42b9d0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42b9d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42b9d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41b356
pop eax
cmp word [ebp - 4], ax
jne 0x41b317
cmp esi, ebx
jne 0x41b317
mov word [esi], ax
jmp 0x41b353
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414c09
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41b356
push 0xd
pop eax
jmp 0x41b312
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42b9d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41b350
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41b356
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d6b5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041d631
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41d824
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41d824
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41d7d9
jg 0x41d711
test eax, eax
je 0x41d7cf
push 1
push 0x1000
call fcn.00413a69
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41d734
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41d7c6
push 0x8000
push ebx
call fcn.0040f230
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41d75d
jg 0x41d758
cmp ecx, 0x1000
jb 0x41d75d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00412112
add esp, 0x10
cmp eax, 0xffffffff
je 0x41d7a2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41d758
jl 0x41d789
test ecx, ecx
jne 0x41d74a
push dword [ebp - 0xc]
push ebx
call fcn.0040f230
push esi
call fcn.00412957
add esp, 0xc
xor ebx, ebx
jmp 0x41d832
cmp byte [edi + 0x24], 0
je 0x41d7b9
cmp dword [edi + 0x20], 5
jne 0x41d7b9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41d7c4
mov ebx, dword [edi + 0x18]
jmp 0x41d7c6
xor ebx, ebx
push esi
call fcn.00412957
pop ecx
jmp 0x41d832
test ecx, ecx
jg 0x41d79b
jl 0x41d7d9
test eax, eax
jae 0x41d79b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414c09
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41d7f9
cmp byte [edi + 0x1c], 0
je 0x41d79b
jmp 0x41d82a
push ebx
call fcn.00418600
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41d79b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41d832
cmp byte [edi + 0x1c], 0
je 0x41d82f
mov ebx, dword [edi + 0x18]
jmp 0x41d832
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00414c09
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41eae0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41eb0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41eb0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10003388
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.10005940
test esi, esi
jne 0x100033c0
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.10005a7c
jmp 0x100033de
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.1000326c
mov edi, eax
test esi, esi
je 0x100033de
cmp dword [ebx], 0
je 0x100033de
dec esi
jmp 0x100033c7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x100033e8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x100a1008], 0x8088405
inc edx
mov dword [ebx + 0x100a1008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x10003b08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x100a1024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10003ba0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x10003b80
xor eax, eax
push ebp
push 0x10003b79
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x10003bd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10003b80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x100a1024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x100a1024], ax
mov esp, ebp
pop ebp
ret

Function at 0x10004d14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x100ab04c], 0
je 0x10004d75
cmp word [0x100ab328], 0xd7b2
jne 0x10004d3d
cmp dword [reloc.user32.dll_LoadKeyboardLayoutW], 0
jbe 0x10004d3d
mov eax, 0x100ab324
call dword [0x100ab340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x100a1788
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x10004da0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x100a1030], 0
jne 0x10004d91
push 0
push 0x100a1780
push 0x100a1788
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x10004f40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x100a1034], 0
je 0x10004f66
mov edx, esi
mov eax, ebx
call dword [0x100a1034]
jmp 0x10004f75
mov eax, 8
call fcn.10002fb4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x100ab04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x10004f08
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x10007a9c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x100093d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x100adb5c
push 0xa
push 0x10009464
mov eax, dword [0x100adb48]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x100093f4
call fcn.100137a4
push ebx
mov eax, dword [0x100adb48]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x1000940b
call fcn.100137a4
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x1000941d
call fcn.100137a4
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x100adb60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x100adb64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x100adb68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x100adb6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x100adb70], ecx
add edx, dword [eax + 0x14]
mov dword [0x100adb74], edx
pop esi
pop ebx
ret

Function at 0x1000ad30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x1000add9
test eax, edx
je 0x1000addc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x1000ad59
push edx
mov edx, eax
mov eax, esp
call fcn.10005b44
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x1000ad6f
push eax
lea eax, [esp + 8]
call fcn.10005b44
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x1000ad7e
movzx eax, word [eax]
sub eax, ecx
jmp 0x1000ada5
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x1000adbf
add ecx, 4
js 0x1000ad96
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x1000adbc
push eax
mov eax, ecx
mov edx, 2
call fcn.10004fe0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x1000ada3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x1000ada5
xor eax, eax
ret
test eax, eax
je 0x1000adec
test edx, edx
jne 0x1000ad40
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.100059cc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1000bc3a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x1000bc5b
cmp ebx, 3
je 0x1000bc5b
cmp ebx, 0x7b
je 0x1000bc5b
mov eax, esi
call fcn.1000bbdc
test al, al
jne 0x1000bc5f
xor eax, eax
jmp 0x1000bc61
mov al, 1
pop esi
pop ebx
ret
Function at 0x1000bc64
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.100059cc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1000bc7d
test al, 0x10
jne 0x1000bc81
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x1000bd9c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.100059cc
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x1000bdbe
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x100108e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x10010921
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.10005a7c
jmp 0x1001092a
mov eax, ebx
mov edx, esi
call fcn.10005940
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10010934
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x10010956
movzx eax, word [esp]
jmp 0x10010958
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x1001122c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x10011351
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.10011040
mov esi, eax
mov eax, dword [0x100aa570]
cmp byte [eax], 0
je 0x100112f9
mov eax, dword [0x100aa278]
call fcn.100034b0
call fcn.1000311c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x10011208]
call fcn.10006cf0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x1001136c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x10011335
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x100aa204]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x100adb48]
call fcn.10006de4
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10011358
lea eax, [ebp - 4]
mov edx, dword [0x10011208]
call fcn.10006cfc
ret
Function at 0x10011f40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x10012016
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.10005994
lea eax, [ebp - 4]
call fcn.10006398
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.100059cc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x10012000
mov eax, ebx
call fcn.10002fb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x10011ff9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.100059cc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x10011fe3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x10012028
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x10011fe3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10012000
mov eax, dword [ebp - 0x10]
call fcn.10002fd0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1001201d
lea eax, [ebp - 4]
call fcn.10005930
ret

Function at 0x1001361c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.10005314
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x100135c6
mov eax, edi
add eax, eax
call fcn.10002fb4
mov esi, eax
jmp 0x100135c8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x10013601
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x100135eb
mov eax, esp
cmp esi, eax
je 0x1001360e
mov eax, esi
call fcn.10002fd0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x10013648
cmp bl, 0
je 0x10013644
cmp bl, 0x41
jl 0x1001363f
cmp bl, 0x5a
jg 0x1001363f
or bl, 0x20
xor al, bl
inc esi
jmp 0x10013623
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x10013588