joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0690
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x11], 0xca
jne 0x4d06c2
push esi
call fcn.004d5050
add esp, 4
cmp byte [esi + 0x3d], 0
je 0x4d06bb
mov dword [esi + 0x11], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x11], 0xcb
mov eax, dword [esi + 0x11]
push edi
cmp eax, 0xcb
jne 0x4d074b
mov eax, dword [esi + 0x183]
cmp byte [eax + 0x10], 0
je 0x4d0738
nop dword [eax]
mov eax, dword [esi + 8]
test eax, eax
je 0x4d06ef
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x183]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x4d0732
cmp eax, 2
je 0x4d0738
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d06e0
cmp eax, 3
je 0x4d0717
cmp eax, 1
jne 0x4d06e0
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x4d06e0
mov eax, dword [esi + 0x10f]
add eax, edi
mov dword [edx + 8], eax
jmp 0x4d06e0
pop edi
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x72]
push esi
mov dword [esi + 0x7a], eax
call fcn.004d0a10
add esp, 4
pop edi
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x4d076d
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 0x11]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.004d0a10
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x4d0a10
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x11], 0xcc
je 0x4d0a3e
mov eax, dword [esi + 0x173]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x6e], 0
mov dword [esi + 0x11], 0xcc
mov eax, dword [esi + 0x173]
cmp byte [eax + 8], 0
je 0x4d0ac2
lea ebx, [esi + 0x6e]
nop dword [eax]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x56]
jae 0x4d0a96
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d0a75
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x56]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x177]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x4d0ad9
cmp eax, dword [esi + 0x56]
jb 0x4d0a57
mov eax, dword [esi + 0x173]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x173]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x173]
cmp byte [eax + 8], 0
jne 0x4d0a50
xor eax, eax
cmp byte [esi + 0x3e], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x11], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x4d11c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x100
cmp dword [esi + 0x29], 2
jne 0x4d1202
mov al, byte [esi + 0x45]
mov ecx, 0x18
test al, al
mov edx, 8
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
xor ecx, ecx
test al, al
cmove edi, ecx
jmp 0x4d120a
mov ecx, 8
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx + 0x29]
lea edx, [edi + 0xd]
imul ecx, dword [esi + 0x56]
lea edx, [edi + edx*2]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov word [ebp - 0x18], 0
movq qword [ebp - 0x14], xmm0
add ecx, edx
mov dword [ebp - 0xc], 0
mov eax, ecx
mov byte [ebp - 0x22], cl
sar eax, 8
mov byte [ebp - 0x21], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0x20], al
mov eax, edx
sar eax, 8
mov byte [ebp - 0x19], al
mov eax, edx
sar eax, 0x10
mov byte [ebp - 0x18], al
movzx eax, byte [esi + 0x52]
mov byte [ebp - 0x10], al
movzx eax, byte [esi + 0x53]
mov byte [ebp - 0xf], al
movzx eax, byte [esi + 0x56]
mov byte [ebp - 0xe], al
movzx eax, byte [esi + 0x57]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0xa], al
sar eax, 8
sar ecx, 0x18
mov byte [ebp - 0x1a], dl
sar edx, 0x18
mov byte [ebp - 9], al
mov eax, dword [ebx + 0xc]
mov word [ebp - 0x24], 0x4d42
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x17], dl
mov word [ebp - 0x14], 0xc
mov word [ebp - 0xc], 1
test eax, eax
jne 0x4d12c1
mov ecx, dword [ebx + 0x10]
movq xmm0, qword [ebp - 0x14]
movq qword [ecx], xmm0
mov eax, dword [ebp - 0xc]
mov dword [ecx + 8], eax
jmp 0x4d1315
push eax
push 0xe
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.0051d101
add esp, 0x10
cmp eax, 0xe
je 0x4d12ea
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x25
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push dword [ebx + 0xc]
lea eax, [ebp - 0x14]
push 0xc
push 1
push eax
call fcn.0051d101
add esp, 0x10
cmp eax, 0xc
je 0x4d1315
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x25
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
test edi, edi
je 0x4d1326
push 3
push edi
push ebx
push esi
call fcn.004d1020
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret
Function at 0x4df930
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x46], 1
mov ebx, dword [esi + 0x19b]
mov dword [ebp - 0x14], ebx
jne 0x4df956
mov eax, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x4df95b
xor eax, eax
mov byte [ebx + 0x1c], al
push dword [esi + 0x5a]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], eax
add eax, 0x100
push eax
push 1
mov eax, dword [ecx + 8]
push esi
call eax
mov dword [ebx + 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [esi + 0x5a], edi
jle 0x4dfa43
mov ecx, dword [ebx + edi*4 + 0x1d]
cdq
idiv ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
je 0x4df9a3
mov eax, dword [ebx + 0x18]
add dword [eax + edi*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov eax, dword [eax + edi*4]
mov dword [ebp - 8], eax
lea eax, [ecx - 1]
push eax
push ebx
push edi
push esi
call fcn.004dfc20
add esp, 0x10
mov edx, eax
xor esi, esi
cmp esi, edx
jle 0x4df9de
mov eax, dword [ebp - 0x10]
inc ebx
dec eax
push eax
push ebx
push edi
push dword [ebp + 8]
call fcn.004dfc20
mov edx, eax
add esp, 0x10
cmp esi, edx
jg 0x4df9c5
mov ecx, dword [ebp - 0xc]
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov eax, dword [ebp - 8]
mov byte [esi + eax], cl
inc esi
cmp esi, 0xff
jle 0x4df9c1
cmp dword [ebp - 4], 0
je 0x4dfa30
mov ebx, eax
mov ecx, 1
lea edx, [ebx - 1]
nop dword [eax]
movzx eax, byte [ebx]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebx + 0xff]
mov byte [ebx + ecx + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x4dfa10
mov esi, dword [ebp + 8]
inc edi
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
cmp edi, dword [esi + 0x5a]
jl 0x4df986
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4eacd9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4ead1e
call fcn.004f276a
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ead1e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4ead3a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004e64c8
mov ebx, eax
test edi, edi
je 0x4ead38
test esi, esi
je 0x4ead38
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4eb55f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4eb61d
cmp dword [esi + 0x20], 0
je 0x4eb61d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4eb61d
cmp dword [ebp + 8], 0
je 0x4eb61d
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.004f276a
push 0x561850
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4eb5ee
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4eb61d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.004fec4a
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4eb60e
test edi, edi
je 0x4eb60e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4eb619
mov ecx, esi
call fcn.004eb2ff
mov eax, ebx
jmp 0x4eb61f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f2b91
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov dword [ebp - 8], ecx
call fcn.004f276a
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x4f2baa
xor eax, eax
jmp 0x4f2bf3
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4f2ba6
push esi
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 4]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push esi
call fcn.004f2df5
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f7fe9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x4f8003
mov edi, dword [esi + 0xc]
jmp 0x4f8043
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f801c
call fcn.004f1000
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f8031
call fcn.004f1000
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f8043
call fcn.004f1000
call fcn.004f276a
cmp dword [eax + 0x3c], 0
je 0x4f8058
push edi
mov ecx, ebx
call fcn.004f7671
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f8235
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4f8081
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4f808d
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x501b1a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x544568
call fcn.0050803f
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x501bc4
push dword [ebp + 8]
mov ecx, eax
call fcn.00501e52
mov esi, eax
test esi, esi
je 0x501c57
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x501bad
push edx
call fcn.004e6b5b
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x501bad
xor edi, edi
inc edi
jmp 0x501bb7
push dword [ebx]
call fcn.004e6b64
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.004fd6c2
jmp 0x501c55
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.00508002
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x501c4d
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.004e6b5b
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x501c47
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.00501a33
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.00501a33
add al, bl
mov edx, edi
test edx, edx
jns 0x501c38
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x501c0f
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.004e664b
mov eax, edi
call fcn.00508008
ret 0x10

Function at 0x501c5f
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x501cb2
push esi
push dword [ebp + 8]
call fcn.00501e52
mov edi, eax
test edi, edi
jne 0x501c82
mov eax, dword [ebp + 0x10]
jmp 0x501cc4
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x501c7d
mov eax, dword [ebp - 8]
jmp 0x501cc4
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x522fb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x5956f0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x522ff7
cmp byte [edx], 0xa
jne 0x522ff7
or byte [eax + edi + 0x28], 4
jmp 0x522ffc
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x5230ed
mov al, byte [ebx]
cmp al, 0x1a
je 0x5230ce
cmp al, 0xd
je 0x523025
mov byte [esi], al
inc esi
inc ebx
jmp 0x5230c3
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x523045
cmp byte [eax], 0xa
jne 0x52303a
push 2
mov byte [esi], 0xa
pop eax
jmp 0x523040
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x5230c3
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5230bc
cmp dword [ebp - 0x14], 0
je 0x5230bc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5956f0]
test byte [eax + edi + 0x28], 0x48
je 0x523093
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x523083
mov byte [esi], dl
jmp 0x5230bf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5956f0]
mov byte [eax + edi + 0x2a], dl
jmp 0x5230bf
cmp byte [ebp - 1], 0xa
jne 0x5230a5
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x5230a5
mov byte [esi], 0xa
jmp 0x523042
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00529f8f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5230c0
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x52300e
jmp 0x5230ed
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5956f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5230e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5230ed
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5230f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x5956f0]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x52313c
cmp word [edx], bx
jne 0x52313c
or byte [edi + eax + 0x28], 4
jmp 0x523141
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x523295
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x523275
cmp ax, word [ebp - 0x10]
je 0x52317a
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x52326a
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x5231a0
push 0xa
pop ecx
cmp word [eax], cx
jne 0x523190
push ecx
pop eax
push 4
jmp 0x523195
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x523264
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x52325b
cmp dword [ebp - 0x18], 0
je 0x52325b
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x5956f0]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x523227
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x5231eb
mov word [esi], ax
jmp 0x52321f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x5956f0]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x5956f0]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x5956f0]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x52326a
cmp word [ebp - 4], ax
jne 0x52323c
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x52323c
mov word [esi], ax
add esi, 2
jmp 0x52326a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00529f8f
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x523267
jmp 0x52325e
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x52315a
jmp 0x523295
mov ecx, dword [ecx*4 + 0x5956f0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x52328c
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x523295
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x523a9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052391c

Function at 0x525acd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052576f
Function at 0x402de0
Capabilities:
Query or enumerate registry value

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

Function at 0x403aec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x472044], 0
je 0x403b4d
cmp word [0x472218], 0xd7b2
jne 0x403b15
cmp dword [0x472220], 0
jbe 0x403b15
mov eax, 0x472214
call dword [0x472230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46906c
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 0x403b74
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x469030], 0
jne 0x403b69
push 0
push 0x469064
push 0x46906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404e70
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 0x4050a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ef3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4050a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ef3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4050bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f7c
xor eax, eax
push ebp
push 0x404f75
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404cb8
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 0x404f5a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4050dc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f5a
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 0x404f7c
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 0x405096
cmp byte [ebp - 0xd], 0
jne 0x404fc3
cmp byte [ebp - 0x12], 0
je 0x405096
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404fdc
dec ebx
cmp byte [ebx], 0x2e
je 0x404feb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404fdb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405096
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405028
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 0x405096
cmp byte [ebp - 0xd], 0
je 0x405096
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 0x405096
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