joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031160
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 + 0x1004da08]
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 0x100311a6
cmp word [ebx], dx
jne 0x100311a6
or byte [eax + edi + 0x28], 4
jmp 0x100311ab
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 0x1003130e
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 0x100312ee
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100311ec
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10031222
cmp eax, edx
jae 0x10031230
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 0x100311c7
jmp 0x1003130e
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 0x100312e9
cmp dword [ebp - 0x18], 0
je 0x100312e9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1004da08]
test byte [eax + edi + 0x28], 0x48
je 0x100312bf
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 0x10031283
mov word [esi], cx
jmp 0x100312ba
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1004da08]
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 + 0x1004da08]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1004da08]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003130e
pop eax
cmp word [ebp - 4], ax
jne 0x100312cf
cmp esi, ebx
jne 0x100312cf
mov word [esi], ax
jmp 0x1003130b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100359a8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003130e
push 0xd
pop eax
jmp 0x100312ca
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1004da08]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10031308
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003130e
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 0x10034320
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10044fb8
push 0x10044fb0
push str.FlsAlloc
push 0x1f
call fcn.100341e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10034354
push dword [ebp + 8]
mov ecx, esi
call dword [0x10041134]
call esi
jmp 0x1003435a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003439e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10044fc8
push 0x10044fc0
push str.FlsGetValue
push 0x21
call fcn.100341e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100343d5
push dword [ebp + 8]
mov ecx, esi
call dword [0x10041134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100343dd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10044fd0
push 0x10044fc8
push str.FlsSetValue
push 0x22
call fcn.100341e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10034417
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10041134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10034b1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1003ffa0
mov eax, dword [0x1004c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1002f08e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10034b5e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10034cba
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1003ffd0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1004da08]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1003598a
mov ecx, dword [esi*4 + 0x1004da08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10034cb3
cmp eax, dword [ecx + edi + 0x24]
jne 0x10034cb3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10034cb3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003598a
add esp, 0x14
test edx, edx
jl 0x10034cb3
jg 0x10034c29
test eax, eax
jb 0x10034cb3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10034cb3
jl 0x10034c43
cmp dword [ebp - 0x1008], eax
ja 0x10034cb3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10034c61
test ebx, ebx
je 0x10034c9a
cmp ecx, edi
jae 0x10034c9a
mov al, byte [ecx]
cmp al, 0xd
jne 0x10034c7b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10034c87
cmp byte [ecx + 1], 0xa
jne 0x10034c87
inc ecx
jmp 0x10034c87
movzx eax, al
movsx eax, byte [eax + 0x1004c300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10034c61
cmp edx, ebx
jne 0x10034c61
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10034cb8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10022c9d
leave
ret
Function at 0x10036c6c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10036d09
push ebx
push esi
call fcn.10036c35
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10036bc9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10036cb6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10036d08
push edi
push eax
call fcn.10031b2d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10036cd6
call fcn.1002f054
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10036d07
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10036bc9
add esp, 0x20
test eax, eax
jne 0x10036cf5
push edi
call fcn.1002f054
jmp 0x10036cfd
push ebx
call fcn.1002f054
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003b087
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1002f663
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003b0f6
cmp esi, dword [ebp - 4]
je 0x1003b0f1
cmp dword [ebp + 0xc], 0
je 0x1003b0f1
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003b0ce
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1003abd9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1003b0f8
xor eax, eax
inc eax
jmp 0x1003b0f8
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1003b15d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1004c040]
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.1002f663
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.1002f663
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 0x1003b1d4
cmp word [ecx], dx
je 0x1003b1d4
mov eax, dword [0x10045614]
push edi
dec eax
push eax
push 0x10045500
call fcn.1003b0fc
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1003b247
cmp word [eax], dx
je 0x1003b247
mov eax, dword [edi]
test eax, eax
je 0x1003b1f8
cmp word [eax], dx
je 0x1003b1f8
lea eax, [ebp - 0x10]
push eax
call fcn.1003aadf
jmp 0x1003b201
lea eax, [ebp - 0x10]
push eax
call fcn.1003ab7a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1003b271
mov eax, dword [0x100454fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100451f0
call fcn.1003b0fc
add esp, 0xc
test al, al
je 0x1003b271
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1003b23c
cmp word [eax], di
je 0x1003b23c
lea eax, [ebp - 0x10]
push eax
call fcn.1003aadf
pop ecx
jmp 0x1003b273
lea eax, [ebp - 0x10]
push eax
call fcn.1003ab7a
jmp 0x1003b239
mov eax, dword [edi]
test eax, eax
je 0x1003b25e
cmp word [eax], dx
je 0x1003b25e
lea eax, [ebp - 0x10]
push eax
call fcn.1003aa94
pop ecx
jmp 0x1003b271
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 0x1003b33c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1003af81
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1003b33c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1003b33c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1003b33c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003b2c9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1003451d
test ebx, ebx
je 0x1003b337
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1003451d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003b33c
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 0x1003b33c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1003e13c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1003b33e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022c9d
leave
ret
Function at 0x1003de71
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.1003dded
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1003dfe0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1003dfe0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1003df95
jg 0x1003decd
test eax, eax
je 0x1003df8b
push 1
push 0x1000
call fcn.10032258
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1003def0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1003df82
push 0x8000
push ebx
call fcn.1003dd1e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1003df19
jg 0x1003df14
cmp ecx, 0x1000
jb 0x1003df19
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10032cbe
add esp, 0x10
cmp eax, 0xffffffff
je 0x1003df5e
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 0x1003df14
jl 0x1003df45
test ecx, ecx
jne 0x1003df06
push dword [ebp - 0xc]
push ebx
call fcn.1003dd1e
push esi
call fcn.1002f054
add esp, 0xc
xor ebx, ebx
jmp 0x1003dfee
cmp byte [edi + 0x24], 0
je 0x1003df75
cmp dword [edi + 0x20], 5
jne 0x1003df75
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1003df80
mov ebx, dword [edi + 0x18]
jmp 0x1003df82
xor ebx, ebx
push esi
call fcn.1002f054
pop ecx
jmp 0x1003dfee
test ecx, ecx
jg 0x1003df57
jl 0x1003df95
test eax, eax
jae 0x1003df57
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100359a8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003dfb5
cmp byte [edi + 0x1c], 0
je 0x1003df57
jmp 0x1003dfe6
push ebx
call fcn.10038f26
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1003df57
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 0x1003dfee
cmp byte [edi + 0x1c], 0
je 0x1003dfeb
mov ebx, dword [edi + 0x18]
jmp 0x1003dfee
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100359a8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003fea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003fecd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003fecd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40c89c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4b2c4c
push 0xa
push 0x40c930
mov eax, dword [0x4b2c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40c8c0
call fcn.004173c8
push ebx
mov eax, dword [0x4b2c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40c8d7
call fcn.004173c8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40c8e9
call fcn.004173c8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b2c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b2c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b2c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b2c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b2c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b2c64], edx
pop esi
pop ebx
ret

Function at 0x4101e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410289
test eax, edx
je 0x41028c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410209
push edx
mov edx, eax
mov eax, esp
call fcn.00406a08
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41021f
push eax
lea eax, [esp + 8]
call fcn.00406a08
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41022e
movzx eax, word [eax]
sub eax, ecx
jmp 0x410255
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 0x41026f
add ecx, 4
js 0x410246
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x41026c
push eax
mov eax, ecx
mov edx, 2
call fcn.00406054
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410253
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410255
xor eax, eax
ret
test eax, eax
je 0x41029c
test edx, edx
jne 0x4101f0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x414788
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 0x4147c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406940
jmp 0x4147ca
mov eax, ebx
mov edx, esi
call fcn.00406804
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4147d4
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 0x4147f6
movzx eax, word [esp]
jmp 0x4147f8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x414f88
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 0x4150ad
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414d98
mov esi, eax
mov eax, dword [0x4af200]
cmp byte [eax], 0
je 0x415055
mov eax, dword [0x4aefc4]
call fcn.0040467c
call fcn.0040433c
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 [0x414f60]
call fcn.00407fc8
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 0x4150c8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x415091
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4aef60]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b2c3c]
call fcn.004080bc
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 0x4150b4
lea eax, [ebp - 4]
mov edx, dword [0x414f60]
call fcn.00407fd4
ret

Function at 0x416264
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 0x41633a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406858
lea eax, [ebp - 4]
call fcn.004071f0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406890
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x416324
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41631d
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.00406890
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x416307
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41634c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x416307
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 0x416324
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416341
lea eax, [ebp - 4]
call fcn.004067f4
ret
Function at 0x417270
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.00406364
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 0x41721a
mov eax, edi
add eax, eax
call fcn.004041d4
mov esi, eax
jmp 0x41721c
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 0x417255
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 0x41723f
mov eax, esp
cmp esi, eax
je 0x417262
mov eax, esi
call fcn.004041f0
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 0x41729c
cmp bl, 0
je 0x417298
cmp bl, 0x41
jl 0x417293
cmp bl, 0x5a
jg 0x417293
or bl, 0x20
xor al, bl
inc esi
jmp 0x417277
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4171dc

Function at 0x43a1ac
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x43a24a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x43a20e
cmp byte [ebx + 0x10], 0
jne 0x43a20e
cmp byte [ebx + 0x3c], 0
jne 0x43a20e
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x43a22f
lea edx, [ebp - 4]
mov eax, dword [0x4af1b0]
call fcn.00409984
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x42aed8]
call fcn.004150cc
call fcn.00405868
jmp 0x43a22f
lea edx, [ebp - 8]
mov eax, dword [0x4af1b0]
call fcn.00409984
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42aed8]
call fcn.004150cc
call fcn.00405868
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a251
lea eax, [ebp - 8]
mov edx, 2
call fcn.004067fc
ret

Function at 0x43aac8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x43ab16
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0043a130
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43ab2f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x43ab38
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0043a130
dec esi
jne 0x43ab5a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret