joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5825c0
Capabilities:
Hash data using crc32b

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jle 0x5826ba
push edi
mov edi, ecx
mov edi, edi
mov cl, byte [esi]
movzx edx, cl
add esi, 1
shr edx, 7
test eax, eax
jns 0x5825eb
add eax, eax
xor edx, eax
xor edx, 0x4c11db7
jmp 0x5825ef
add eax, eax
xor edx, eax
add cl, cl
movzx eax, cl
shr eax, 7
test edx, edx
jns 0x582606
add edx, edx
xor eax, edx
xor eax, 0x4c11db7
jmp 0x58260a
add edx, edx
xor eax, edx
add cl, cl
movzx edx, cl
shr edx, 7
test eax, eax
jns 0x582622
add eax, eax
xor edx, eax
xor edx, 0x4c11db7
jmp 0x582626
add eax, eax
xor edx, eax
add cl, cl
movzx eax, cl
shr eax, 7
test edx, edx
jns 0x58263d
add edx, edx
xor eax, edx
xor eax, 0x4c11db7
jmp 0x582641
add edx, edx
xor eax, edx
add cl, cl
movzx edx, cl
shr edx, 7
test eax, eax
jns 0x582659
add eax, eax
xor edx, eax
xor edx, 0x4c11db7
jmp 0x58265d
add eax, eax
xor edx, eax
add cl, cl
movzx eax, cl
shr eax, 7
test edx, edx
jns 0x582674
add edx, edx
xor eax, edx
xor eax, 0x4c11db7
jmp 0x582678
add edx, edx
xor eax, edx
add cl, cl
movzx edx, cl
shr edx, 7
test eax, eax
jns 0x582690
add eax, eax
xor edx, eax
xor edx, 0x4c11db7
jmp 0x582694
add eax, eax
xor edx, eax
add cl, cl
movzx eax, cl
shr eax, 7
test edx, edx
jns 0x5826ac
lea ecx, [edx + edx]
xor eax, ecx
xor eax, 0x4c11db7
jmp 0x5826b0
add edx, edx
xor eax, edx
sub edi, 1
jne 0x5825d0
pop edi
pop esi
ret
Function at 0x58b1c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 4]
push ebp
mov ebp, dword [eax + 8]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], eax
jle 0x58b3c0
push esi
or esi, 0xffffffff
sub esi, edx
push edi
mov dword [esp + 0x28], esi
cmp dword [esp + 0x1c], 0
jle 0x58b3af
lea ecx, [esi + eax]
mov dword [esp + 0x10], ecx
add ecx, edx
mov edi, 1
mov dword [esp + 0x18], ecx
sub edi, ebp
nop
push eax
mov eax, dword [esp + 0x3c]
lea edx, [edi + ebp - 2]
push edx
push eax
call fcn.00589230
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [edi + ebp]
mov esi, eax
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.00589230
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
add eax, eax
or esi, eax
push ecx
lea eax, [edi + ebp - 1]
push eax
push edx
call fcn.00589230
add eax, eax
add eax, eax
or esi, eax
mov eax, dword [esp + 0x54]
movsx ecx, byte [eax + 0x15]
movsx edx, byte [eax + 0x14]
add ecx, dword [esp + 0x38]
lea eax, [edi + ebp - 1]
push ecx
add edx, eax
mov eax, dword [esp + 0x60]
push edx
push eax
call fcn.00589230
add eax, eax
add eax, eax
add eax, eax
or esi, eax
mov eax, dword [esp + 0x40]
add eax, 2
push eax
push edi
push ebx
call fcn.00589230
mov ecx, dword [esp + 0x4c]
shl eax, 4
add ecx, 2
or esi, eax
push ecx
lea eax, [edi - 1]
push eax
push ebx
call fcn.00589230
mov ecx, dword [esp + 0x58]
shl eax, 5
add esp, 0x48
add ecx, 2
or esi, eax
push ecx
lea eax, [edi - 2]
push eax
push ebx
call fcn.00589230
shl eax, 6
or esi, eax
mov eax, dword [esp + 0x1c]
add eax, 1
push eax
push edi
push ebx
call fcn.00589230
shl eax, 7
or esi, eax
mov eax, dword [esp + 0x28]
add eax, 1
push eax
lea eax, [edi - 1]
push eax
push ebx
call fcn.00589230
shl eax, 8
or esi, eax
mov eax, dword [esp + 0x34]
add eax, 1
push eax
lea eax, [edi - 2]
push eax
push ebx
call fcn.00589230
mov ecx, dword [esp + 0x40]
push ecx
shl eax, 9
push edi
push ebx
or esi, eax
call fcn.00589230
mov edx, dword [esp + 0x4c]
shl eax, 0xa
or esi, eax
push edx
lea eax, [edi - 1]
push eax
push ebx
call fcn.00589230
shl eax, 0xb
or esi, eax
mov eax, dword [esp + 0x78]
movsx ecx, byte [eax + 0x17]
movsx edx, byte [eax + 0x16]
sub ecx, dword [esp + 0x68]
add esp, 0x48
add ecx, dword [esp + 0x14]
sub edx, ebp
lea eax, [edi + ebp - 1]
push ecx
add edx, eax
push edx
push ebx
call fcn.00589230
mov ecx, dword [esp + 0x40]
shl eax, 0xc
or esi, eax
mov eax, dword [esp + 0x48]
add esi, eax
push esi
push ecx
call fcn.0058edc0
mov edx, dword [esp + 0x28]
push eax
push edx
lea eax, [edi + ebp - 1]
push eax
mov eax, dword [esp + 0x58]
push eax
call fcn.00589280
mov eax, dword [esp + 0x38]
add edi, 1
lea ecx, [edi + ebp - 1]
add esp, 0x24
cmp ecx, dword [esp + 0x1c]
jl 0x58b220
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x58b200
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x58b3d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
mov edx, dword [eax + 8]
push ebx
mov ebx, dword [eax + 4]
push ebp
mov ebp, dword [esp + 0x28]
mov ecx, dword [ebp]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 4]
test ecx, ecx
mov dword [esp + 8], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], 0
jle 0x58b57d
or eax, 0xffffffff
sub eax, edx
push esi
mov dword [esp + 0x2c], eax
push edi
cmp dword [esp + 0x1c], 0
jle 0x58b561
add eax, edx
mov edi, 1
sub edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
lea ecx, [ecx]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
lea eax, [eax + edi - 2]
push eax
push ebp
call fcn.00589230
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x1c]
push edx
lea ecx, [edi + eax]
push ecx
push ebp
call fcn.00589230
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
add eax, eax
or esi, eax
push ecx
lea eax, [edx + edi - 1]
push eax
push ebp
call fcn.00589230
mov edx, dword [esp + 0x3c]
add eax, eax
add eax, eax
or esi, eax
mov eax, dword [esp + 0x34]
push edx
lea eax, [eax + edi - 2]
push eax
push ebp
call fcn.00589230
add eax, eax
add eax, eax
add eax, eax
or esi, eax
mov eax, dword [esp + 0x60]
add eax, 2
push eax
push edi
push ebx
call fcn.00589230
mov ecx, dword [esp + 0x6c]
shl eax, 4
add ecx, 2
or esi, eax
push ecx
lea eax, [edi - 1]
push eax
push ebx
call fcn.00589230
shl eax, 5
or esi, eax
mov eax, dword [esp + 0x78]
add esp, 0x48
add eax, 1
push eax
push edi
push ebx
call fcn.00589230
shl eax, 6
or esi, eax
mov eax, dword [esp + 0x3c]
add eax, 1
push eax
lea eax, [edi - 1]
push eax
push ebx
call fcn.00589230
shl eax, 7
or esi, eax
mov eax, dword [esp + 0x48]
add eax, 1
push eax
lea ecx, [edi - 2]
push ecx
push ebx
call fcn.00589230
shl eax, 8
mov edx, dword [esp + 0x54]
or esi, eax
push edx
lea eax, [edi - 1]
push eax
push ebx
call fcn.00589230
mov ecx, dword [esp + 0x5c]
shl eax, 9
or esi, eax
mov eax, dword [esp + 0x64]
add esi, eax
push esi
push ecx
call fcn.0058edc0
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push edx
lea eax, [eax + edi - 1]
push eax
push ebp
call fcn.00589280
mov ecx, dword [esp + 0x58]
add edi, 1
lea edx, [ecx + edi - 1]
add esp, 0x48
cmp edx, dword [esp + 0x1c]
jl 0x58b430
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
add esi, 1
add eax, 1
cmp esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], eax
jl 0x58b413
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x591f60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x591f8f
push esi
call fcn.00594a40
add esp, 4
cmp byte [esi + 0x40], 0
je 0x591f88
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x59200a
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x591ffa
mov eax, dword [esi + 8]
test eax, eax
je 0x591fb4
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x591ff6
cmp eax, 2
je 0x591ffa
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x591fa5
cmp eax, 3
je 0x591fdc
cmp eax, 1
jne 0x591fa5
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x591fa5
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x591fa5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.00591df0
pop esi
ret
cmp eax, 0xcc
je 0x59202c
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.00591df0
pop esi
ret
Function at 0x5a00f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x5a0117
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x5a0123
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x5a024c
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x5a0168
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x5a0189
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x5a01e1
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x5a01c0
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
add ebx, 1
mov edx, eax
cmp esi, edx
jg 0x5a01c0
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
add esi, 1
cmp esi, 0xff
jle 0x5a01a6
cmp dword [esp + 0x10], 0
je 0x5a0231
mov eax, 1
lea edx, [ebp - 1]
jmp 0x5a0210
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
add eax, 1
sub edx, 1
cmp eax, 0xff
jle 0x5a0210
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
add ecx, 1
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x5a0160
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x5b57e0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x5b57fa
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x5b590c
push ebp
jmp 0x5b5810
cmp ebx, 0x15b0
mov eax, ebx
jb 0x5b581f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x5b58cb
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x5b5840
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x5b5840
test eax, eax
je 0x5b58df
nop
movzx edx, byte [esi]
add ecx, edx
add esi, 1
add edi, ecx
sub eax, 1
jne 0x5b58d0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x5b5810
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x5ba6c2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x5ba6ff
cmp dword [ebp + 0x14], edi
je 0x5ba6ff
cmp ecx, edi
jne 0x5ba706
call fcn.0044df1c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044b789
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x5ba71a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x5ba73b
cmp ebx, 0xffffffff
je 0x5ba72a
push ebx
push edi
push ecx
call fcn.0044dac0
add esp, 0xc
cmp esi, edi
je 0x5ba6e7
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5ba6e7
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x5ba757
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x5ba75e
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x5ba84f
test word [esi + 0xc], 0x10c
je 0x5ba7b2
mov eax, dword [esi + 4]
test eax, eax
je 0x5ba7b2
jl 0x5ba8b0
cmp ebx, eax
mov edi, ebx
jb 0x5ba783
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x5ba857
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044ac0d
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x5ba847
cmp ebx, dword [ebp - 0xc]
jb 0x5ba81f
cmp dword [ebp - 0xc], 0
je 0x5ba7dc
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x5ba7d1
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x5ba7d8
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x5ba7e7
mov eax, SysReAllocString
cmp ebx, eax
ja 0x5ba7e7
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x5ba883
push eax
push dword [ebp - 8]
push esi
call fcn.004599d8
pop ecx
push eax
call fcn.00462ee2
add esp, 0xc
test eax, eax
je 0x5ba8c2
cmp eax, 0xffffffff
je 0x5ba8b0
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x5ba847
push esi
call fcn.00460d0e
cmp eax, 0xffffffff
pop ecx
je 0x5ba8b4
cmp dword [ebp - 4], 0
je 0x5ba883
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x5ba766
mov eax, dword [ebp + 0x14]
jmp 0x5ba701
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x5ba86e
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044dac0
add esp, 0xc
call fcn.0044df1c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5ba6f7
cmp dword [ebp + 0xc], 0xffffffff
je 0x5ba899
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044dac0
add esp, 0xc
call fcn.0044df1c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5ba6f7
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x5ba701
or dword [esi + 0xc], 0x10
jmp 0x5ba8b4
Function at 0x402a94
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404754
test esi, esi
jne 0x402aca
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404844
jmp 0x402ae8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402948
mov edi, eax
test esi, esi
je 0x402ae8
cmp dword [ebx], 0
je 0x402ae8
dec esi
jmp 0x402ad1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40387c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x487020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403914
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038f4
xor eax, eax
push ebp
push 0x4038ed
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 0x403930
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 0x4038f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x487020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x487020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a048], 0
je 0x404639
cmp word [0x48a21c], 0xd7b2
jne 0x404601
cmp dword [0x48a224], 0
jbe 0x404601
mov eax, 0x48a218
call dword [0x48a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x487070
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 0x404660
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x487030], 0
jne 0x404655
push 0
push 0x487068
push 0x487070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d60
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405de3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405de3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e6c
xor eax, eax
push ebp
push 0x405e65
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ba8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e4a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405fcc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e4a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e6c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405f86
cmp byte [ebp - 0xd], 0
jne 0x405eb3
cmp byte [ebp - 0x12], 0
je 0x405f86
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ecc
dec ebx
cmp byte [ebx], 0x2e
je 0x405edb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ecb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f86
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f18
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405f86
cmp byte [ebp - 0xd], 0
je 0x405f86
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405f86
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406658
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4066be
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004049c4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066a8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066c5
lea eax, [ebp - 0x10]
call fcn.00404754
ret

Function at 0x40c4b4
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 0x40c4ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404844
jmp 0x40c4f6
mov eax, ebx
mov edx, esi
call fcn.004047a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c500
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 0x40c521
mov al, byte [esp]
jmp 0x40c523
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cba8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ca20
mov eax, dword [0x488f90]
cmp byte [eax], 0
je 0x40cc24
mov eax, dword [0x488d18]
call fcn.00402f00
call fcn.00402874
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409704
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40cc6c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cc5a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x488c9c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48a664]
call fcn.00405b6c
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