joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8a50
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
cmp ebx, 0x4e
jne 0x4f8a98
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
push eax
push esi
push ebx
push ecx
push edx
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 8
jne 0x4f8b83
push 0
push str.SysMonthCal32
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f8b33
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x18]
push eax
push 0
push 0x100e
push esi
mov dword [esp + 0x28], 0x20
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x24]
cmp eax, 0x1010003
je 0x4f8b25
cmp eax, 0x2010003
jne 0x4f8c26
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jl 0x4f8b6d
cmp eax, dword [esp + 0x20]
jg 0x4f8b6d
cmp eax, dword [esp + 0x1c]
jl 0x4f8b6d
cmp eax, dword [esp + 0x24]
jle 0x4f8c26
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 8
call fcn.004f8c40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0x101
jne 0x4f8a7b
cmp esi, 0x2e
je 0x4f8b99
cmp esi, 8
jne 0x4f8bdf
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 4]
push ecx
push esi
push 0x101
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ebx, eax
mov eax, dword [edi + 0x10]
mov dword [eax + 0x740], 2
mov esi, dword [edi + 0x10]
call fcn.004f8d90
mov ecx, dword [edi + 4]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0x1b
jne 0x4f8a7b
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 4]
push edx
push esi
push 0x101
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
push 0
push 0
mov dword [ecx + 0x740], 3
mov edx, dword [edi + 4]
push 0x10
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fc290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52a4f2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x55c4c8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
fldz
xor eax, eax
mov ecx, 1
fstp qword [edi + 0x50]
mov byte [edi], cl
mov byte [edi + 1], cl
mov dword [edi + 0x1c], ecx
mov ecx, 2
mov dword [edi + 0x34], ecx
mov dword [edi + 0x58], ecx
mov dword [edi + 0x5c], ecx
lea esi, [edi + 0x78]
mov ebx, 5
lea ecx, [esi + 4]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0x10
mov dword [edi + 0x2c], 0x19
mov dword [edi + 0x30], eax
mov dword [edi + 0x38], 0x3c
mov dword [edi + 0x3c], 0x16
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], 0xff000000
xor edx, edx
mov dword [esi], ecx
mov word [ecx], dx
mov dword [esp + 0x1c], eax
mov dword [edi + 0xfc], eax
mov ecx, 4
mov dword [edi + 0x100], eax
mov dword [edi + 0x104], ecx
mov dword [edi + 0x108], eax
mov dword [edi + 0x10c], eax
mov dword [edi + 0x110], eax
mov dword [edi + 0x114], ecx
mov dword [edi + 0x118], eax
mov dword [edi + 0x11c], eax
mov dword [edi + 0x120], eax
mov dword [edi + 0x124], 0x84
mov dword [edi + 0x128], eax
mov dword [edi + 0x12c], eax
push 0xffffffffffffffff
push 0x54c5dc
mov byte [esp + 0x24], 3
call fcn.004b50c0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x18]
cmp eax, ecx
mov edx, dword [edi + 0x1c]
mov dword [edi + 0x68], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x74], ebx
jg 0x4fc3ba
mov eax, ecx
mov esi, dword [edi + 0xc]
mov ebx, dword [edi + 0x14]
cmp esi, ebx
jl 0x4fc3c6
mov esi, ebx
push edx
push eax
push esi
push edi
call fcn.004fc440
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x503900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x503921
cmp eax, edi
jge 0x503919
call fcn.00503160
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor eax, eax
cmp dword [esi + 8], eax
jle 0x50394a
lea ecx, [eax - 8]
jmp 0x503930
mov dl, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], ecx
mov byte [esp + eax + 0xc], dl
inc eax
cmp dword [esi + 8], 0
jg 0x503930
cmp eax, 4
jge 0x50396a
mov edi, dword [esi + 4]
mov edx, dword [esi]
nop
cmp edx, edi
jb 0x503958
xor ecx, ecx
jmp 0x50395e
mov cl, byte [edx]
inc edx
movzx ecx, cl
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 4
jl 0x503950
mov dword [esi], edx
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0xf]
movzx edx, byte [esp + 0xe]
movzx ebx, ah
movzx eax, al
shl ebx, 8
add ebx, eax
shl ecx, 8
mov eax, ebx
add ecx, edx
xor eax, 0xffff
cmp ecx, eax
je 0x5039a4
mov dword [0x61f15c], str.zlib_corrupt
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esi]
add ecx, ebx
cmp ecx, dword [esi + 4]
jbe 0x5039be
pop edi
pop esi
mov dword [0x61f15c], 0x54d7c4
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x10]
add edx, ebx
cmp edx, dword [esi + 0x18]
jbe 0x5039d5
mov ecx, ebx
mov edi, esi
call fcn.005031a0
test eax, eax
je 0x50399d
mov edi, dword [esi]
push ebp
mov ebp, dword [esi + 0x10]
push ebx
push edi
push ebp
call fcn.00510c60
add esp, 0xc
add edi, ebx
add ebp, ebx
mov dword [esi + 0x10], ebp
pop ebp
mov dword [esi], edi
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x50a231
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55c4c8]
jne 0x50a23b
repz ret
jmp fcn.00512ec4

Function at 0x50b978
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 0x50b9a9
call fcn.0051114b
mov dword [eax], esi
call fcn.00511138
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0050a60a
add esp, 0x14
push 0x16
pop eax
jmp 0x50b9fe
test dword [ebp + 0xc], 0xfffffff9
jne 0x50b985
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50b9d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0051115e
pop ecx
call fcn.00511138
mov eax, dword [eax]
jmp 0x50b9fe
test al, 0x10
jne 0x50b9fc
test al, 1
je 0x50b9fc
test byte [ebp + 0xc], 2
je 0x50b9fc
call fcn.0051114b
mov dword [eax], 5
call fcn.00511138
mov dword [eax], 0xd
jmp 0x50b9cd
xor eax, eax
pop esi
pop ebp
ret

Function at 0x51b3ab
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.005130ac
and dword [ebp - 4], 0
cmp dword [0x61eaec], 0
mov ebx, eax
jne 0x51b45c
push 0x531fbc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x51b50d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x531fb0
push edi
call esi
test eax, eax
je 0x51b50d
push eax
call fcn.0051303a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x61eaec], eax
call esi
push eax
call fcn.0051303a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x61eaf0], eax
call esi
push eax
call fcn.0051303a
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x61eaf4], eax
call esi
push eax
call fcn.0051303a
pop ecx
mov dword [0x61eafc], eax
test eax, eax
je 0x51b45c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0051303a
pop ecx
mov dword [0x61eaf8], eax
mov eax, dword [0x61eaf8]
cmp eax, ebx
je 0x51b4b4
cmp dword [0x61eafc], ebx
je 0x51b4b4
push eax
call fcn.005130b5
push dword [0x61eafc]
mov esi, eax
call fcn.005130b5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51b4b4
test edi, edi
je 0x51b4b4
call esi
test eax, eax
je 0x51b4ab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51b4ab
test byte [ebp - 0xc], 1
jne 0x51b4b4
or dword [ebp + 0x10], 0x200000
jmp 0x51b4ed
mov eax, dword [0x61eaf0]
cmp eax, ebx
je 0x51b4ed
push eax
call fcn.005130b5
pop ecx
test eax, eax
je 0x51b4ed
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51b4ed
mov eax, dword [0x61eaf4]
cmp eax, ebx
je 0x51b4ed
push eax
call fcn.005130b5
pop ecx
test eax, eax
je 0x51b4ed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x61eaec]
call fcn.005130b5
pop ecx
test eax, eax
je 0x51b50d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51b50f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x521644
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.005130ac
and dword [ebp - 4], 0
cmp dword [0x61edd4], 0
mov ebx, eax
jne 0x5216f5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5217a6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5217a6
push eax
call fcn.0051303a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x61edd4], eax
call esi
push eax
call fcn.0051303a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x61edd8], eax
call esi
push eax
call fcn.0051303a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x61eddc], eax
call esi
push eax
call fcn.0051303a
pop ecx
mov dword [0x61ede4], eax
test eax, eax
je 0x5216f5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0051303a
pop ecx
mov dword [0x61ede0], eax
mov eax, dword [0x61ede0]
cmp eax, ebx
je 0x52174d
cmp dword [0x61ede4], ebx
je 0x52174d
push eax
call fcn.005130b5
push dword [0x61ede4]
mov esi, eax
call fcn.005130b5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x52174d
test edi, edi
je 0x52174d
call esi
test eax, eax
je 0x521744
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x521744
test byte [ebp - 0xc], 1
jne 0x52174d
or dword [ebp + 0x10], 0x200000
jmp 0x521786
mov eax, dword [0x61edd8]
cmp eax, ebx
je 0x521786
push eax
call fcn.005130b5
pop ecx
test eax, eax
je 0x521786
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x521786
mov eax, dword [0x61eddc]
cmp eax, ebx
je 0x521786
push eax
call fcn.005130b5
pop ecx
test eax, eax
je 0x521786
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x61edd4]
call fcn.005130b5
pop ecx
test eax, eax
je 0x5217a6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5217a8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x527efe
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 0x527f2f
call fcn.0051114b
mov dword [eax], esi
call fcn.00511138
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0050a60a
add esp, 0x14
push 0x16
pop eax
jmp 0x527f84
test dword [ebp + 0xc], 0xfffffff9
jne 0x527f0b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x527f5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0051115e
pop ecx
call fcn.00511138
mov eax, dword [eax]
jmp 0x527f84
test al, 0x10
jne 0x527f82
test al, 1
je 0x527f82
test byte [ebp + 0xc], 2
je 0x527f82
call fcn.0051114b
mov dword [eax], 5
call fcn.00511138
mov dword [eax], 0xd
jmp 0x527f53
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10006766
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10006819
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x100c2830
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
cmp ecx, 0xffff
push 0xfe4ba374

Function at 0x100c303a
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sbb di, 0x31af
mov edi, dword [edx + 0x24]
pushfd
clc
pushfd
clc
add edi, eax
cmp eax, ecx
movzx ecx, word [edi + ecx*2]
lea esp, [esp + 8]
lea esp, [esp + 8]
jne 0x100c9392
cmp dh, bl
bt sp, cx
jmp 0x100c13c4

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

Disassembly:
lea edi, [ebp + 0x25e2e4c1]
pushal
bsr di, ax
bsf edi, esp
mov edi, dword [edx + 0x1c]
cmc
add edi, eax
cmp edi, 0xd242c4d9
push edx
pushal
jmp 0x100c6155
bswap ecx
add edx, eax
movsx cx, bl
and ch, cl
inc ch
mov ecx, dword [esi + 0x7c]
push 0x265949c9
bt bx, bp
pushal
add ecx, edx
mov byte [esp + 0xc], dl
mov byte [esp + 8], 0x2c
bt bx, 0xe
cmp ax, 0xdb2
mov dword [ebp - 0x10], ecx
mov cl, 0xf9
inc ecx
mov ecx, dword [ebp + 0xc]
mov word [esp + 4], bx
test dx, 0x6e96
call fcn.100c2830
add byte [eax], al
inc edi
je 0x100c280a
jb 0x100c282b
jo 0x100c27ff
add byte [eax], al
add byte [ebx + 0x65], dl
je 0x100c281c
imul ebp, dword [esi + 0x64], 0x7845776f
je 0x100c2813
js 0x100c27d0
lea edx, [ebx + 4]
movsx esi, bl
xchg si, di
movzx esi, word [edx + 0x1a]
pushfd
bswap edi
lea esi, [esi + edx + 0x1c]
lea edi, [edx - 0x2f2468f4]
mov edi, dword [ebp + 8]
jmp 0x100c93b5
and eax, 0x4c7665d
and al, 0x84
int1
pushfd
mov dword [esp + 0x20], 0xa094856d
mov byte [esp], 0xa8
and al, 0x20
insd dword es:[edi], dx
test dword [eax - 0x57dbfb3a], edx
test al, 0x88
jl 0x100c283b
mov byte [esp + 0xc], bh
mov dword [esp + 0x10], eax
or al, 0x89
inc esp
and al, 0x10
lea esp, [esp + 0x20]
jmp 0x100cbb76
jmp 0x100caccd
jmp 0x100c3350
lea esp, [esp + 0x2c]
jbe 0x100c4b31
rcl bl, cl
sub ch, al
mov edi, dword [edx + 0x24]
cmc
and bh, dl
rcl cl, 1
add edi, eax
btc cx, di
shrd bx, dx, 6
mov ebx, dword [edx + 0x20]
bsf cx, bx
pushal
add ebx, eax
clc
mov dword [ebp - 8], 0
dec cl
mov ecx, dword [edx + 0x18]
add esp, 0x20
mov dword [esp + 0x1c], 0x1c1239ad
pushfd
lea esp, [esp + 0x10]
je 0x100c5df9
xadd edx, esi
mov esi, dword [eax + 0x3c]
shld dx, sp, cl
bt ecx, esi
add esi, eax
clc
setnp dl
ror dl, cl
mov edx, dword [esi + 0x78]
bt cx, 0xf
bt sp, bp
bt ebx, 0x1f
test edx, edx
push 0x3413dd05
pushfd
lea esp, [esp + 8]
je 0x100c5df9
jmp 0x100c276f
push 0xd830cc5d
sub ecx, dword [edx + 0x10]
stc
push 0x85f11051
pushal
cmp ecx, dword [edx + 0x14]
push esp
pushfd
lea esp, [esp + 0x30]
jae 0x100c5df9
pushal
pushal
lea esp, [esp + 0x40]
jmp 0x100c13dc
mov edi, dword [edi + ecx*4]
test bp, 0x1c6d
clc
call fcn.100c29cc
pushal
call fcn.100c7b99
pushfd
lea esp, [esp + 8]
call fcn.100c413c
jmp 0x100c7f19
jmp 0x100c4525
Function at 0x100c5146
Capabilities:
Encode data using xor

Disassembly:
invalid
mov byte [esp], 0xae
lea esp, [esp + 4]
jo 0x100c42d5
pushfd
lea esp, [esp + 4]
je 0x100c3a5b
pushal
call fcn.100c5121
lodsd eax, dword [esi]
aad 0xd9
jp 0x100c50f0
and eax, 0x96e45619
psubusb mm0, qword [edi + 0x31]
push ecx
mov ah, 0xc6
cwde
mov edi, 0x5e5e6f13
inc edi
add ecx, ecx
loopne 0x100c5190
int3
fucomi st(7)
inc ebp
imul esi
invalid
Function at 0x8237c5
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
lea esp, [esp + 0x44]
mov dword [esp + 0x38], edi
jmp 0x8237af
Function at 0x954b97
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop eax
push dword [esp + 4]
mov esi, dword [esp]
mov ebx, 0x8b94a79b
jmp 0x954ba3
shl si, cl
rdtsc
xchg byte [esp + 7], cl
std
jmp 0x954b81
mov ah, byte [esp + 4]
mov cx, 0xc05a
pop dword [esp]
sub esp, 0
push dword [esp + 4]
jmp 0x954bdd
bsr ecx, ebp
dec di
btr eax, esi
mov esi, 0xa74380ae
add esp, 8
lea edi, [esp + ebp]
jmp 0x954bc7

Function at 0x955594
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edx, dword [esp + 2]
jmp 0x9555f1
push si
lea esp, [esp + 0xd]
sets ah
bt edi, esi
dec ebx
shr eax, cl
jmp 0x9555db
Function at 0x403578
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x480010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403610
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035f0
xor eax, eax
push ebp
push 0x4035e9
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 0x40362c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035f0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x480010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x480010], ax
mov esp, ebp
pop ebp
ret

Function at 0x4042d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x482044], 0
je 0x404339
cmp word [0x482218], 0xd7b2
jne 0x404301
cmp dword [0x482220], 0
jbe 0x404301
mov eax, 0x482214
call dword [0x482230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x480058
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 0x404360
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x480020], 0
jne 0x404355
push 0
push 0x480078
push 0x480058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x412014
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x41204d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404544
jmp 0x412056
mov eax, ebx
mov edx, esi
call fcn.004044a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412060
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x412081
mov al, byte [esp]
jmp 0x412083
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412708
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x412580
mov eax, dword [0x4817b4]
cmp byte [eax], 0
je 0x412775
mov eax, dword [0x4814ac]
call fcn.00402e28
call fcn.00402870
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0041124c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4127bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4127ab
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48142c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x482710]
call fcn.00405d30
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x413214
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x413278
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004046bc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00410f8c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41327f
lea eax, [ebp - 0xc]
call fcn.00404454
ret
Function at 0x424c38
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x483050
cmp dword [edi], 0
jne 0x424cb4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48304c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x480b30
mov ecx, 2
call fcn.004028c0
mov edx, 0x424c10
lea eax, [esi + 5]
call fcn.00424c30
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424c30
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x424c89
mov dword [0x48304c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x425e40
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x425e46
ret

Function at 0x428248
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x428299
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x428280
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x428270
jmp 0x428299
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x428281
pop ebx
mov esp, ebp
pop ebp
ret