joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4203e1
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 0x42041e
cmp dword [ebp + 0x14], edi
je 0x42041e
cmp ecx, edi
jne 0x420425
call fcn.00422386
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00420171
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x420439
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42045a
cmp ebx, 0xffffffff
je 0x420449
push ebx
push edi
push ecx
call fcn.0041e790
add esp, 0xc
cmp esi, edi
je 0x420406
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x420406
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x420476
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42047d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42056e
test word [esi + 0xc], 0x10c
je 0x4204d1
mov eax, dword [esi + 4]
test eax, eax
je 0x4204d1
jl 0x4205cf
cmp ebx, eax
mov edi, ebx
jb 0x4204a2
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x420576
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041e6b4
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 0x420566
cmp ebx, dword [ebp - 0xc]
jb 0x42053e
cmp dword [ebp - 0xc], 0
je 0x4204fb
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4204f0
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4204f7
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x420506
mov eax, closesocket
cmp ebx, eax
ja 0x420506
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4205a2
push eax
push dword [ebp - 8]
push esi
call fcn.00425fb8
pop ecx
push eax
call fcn.00427aa6
add esp, 0xc
test eax, eax
je 0x4205e1
cmp eax, 0xffffffff
je 0x4205cf
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x420566
push esi
call fcn.004273c5
cmp eax, 0xffffffff
pop ecx
je 0x4205d3
cmp dword [ebp - 4], 0
je 0x4205a2
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 0x420485
mov eax, dword [ebp + 0x14]
jmp 0x420420
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42058d
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0041e790
add esp, 0xc
call fcn.00422386
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x420416
cmp dword [ebp + 0xc], 0xffffffff
je 0x4205b8
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0041e790
add esp, 0xc
call fcn.00422386
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x420416
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x420420
or dword [esi + 0xc], 0x10
jmp 0x4205d3
Function at 0x423441
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x444908]
je 0x42345c
inc edi
cmp edi, 0x17
jb 0x42344d
cmp edi, 0x17
jae 0x4235dc
push ebp
push 3
call fcn.0042bc2b
cmp eax, 1
pop ecx
je 0x4235a8
push 3
call fcn.0042bc2b
test eax, eax
pop ecx
jne 0x423490
cmp dword [0x444040], 1
je 0x4235a8
cmp ebx, 0xfc
je 0x4235db
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x445cc8
push ebp
call fcn.0042688d
add esp, 0xc
test eax, eax
je 0x4234c6
push esi
push esi
push esi
push esi
push esi
call fcn.00420075
add esp, 0x14
push 0x104
mov esi, 0x445ce1
push esi
push 0
mov byte [0x445de5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42350a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042688d
add esp, 0xc
test eax, eax
je 0x42350a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00420075
add esp, 0x14
push esi
call fcn.0041f820
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42354f
push esi
call fcn.0041f820
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x445fdc
push 0x439b0c
sub ecx, eax
push ecx
push eax
call fcn.00429cb6
add esp, 0x14
test eax, eax
je 0x42354f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00420075
add esp, 0x14
jmp 0x423551
xor esi, esi
push 0x439b08
push ebx
push ebp
call fcn.00429bf8
add esp, 0xc
test eax, eax
je 0x423571
push esi
push esi
push esi
push esi
push esi
call fcn.00420075
add esp, 0x14
push dword [edi*8 + 0x44490c]
push ebx
push ebp
call fcn.00429bf8
add esp, 0xc
test eax, eax
je 0x423593
push esi
push esi
push esi
push esi
push esi
call fcn.00420075
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042ba6e
add esp, 0xc
jmp 0x4235db
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4235db
cmp ebp, 0xffffffff
je 0x4235db
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44490c]
push dword [esi]
call fcn.0041f820
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42ba6e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00421b5a
xor ebx, ebx
cmp dword [0x44624c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42bb44
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42bc24
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42bc24
push eax
call fcn.00421aec
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44624c], eax
call esi
push eax
call fcn.00421aec
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x446250], eax
call esi
push eax
call fcn.00421aec
mov dword [0x446254], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004231ce
test eax, eax
pop ecx
pop ecx
je 0x42bb12
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00420075
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42bb44
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00421aec
cmp eax, ebx
pop ecx
mov dword [0x44625c], eax
je 0x42bb44
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00421aec
pop ecx
mov dword [0x446258], eax
mov eax, dword [0x446258]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42bbc9
cmp dword [0x44625c], ecx
je 0x42bbc9
push eax
call fcn.00421b63
push dword [0x44625c]
mov esi, eax
call fcn.00421b63
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42bbc9
cmp edi, ebx
je 0x42bbc9
call esi
cmp eax, ebx
je 0x42bb96
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42bb96
test byte [ebp - 0x18], 1
jne 0x42bbc9
lea eax, [ebp - 0x10]
push eax
call fcn.00423205
test eax, eax
pop ecx
je 0x42bbb1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00420075
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42bbc0
or dword [ebp + 0x10], 0x200000
jmp 0x42bc04
or dword [ebp + 0x10], 0x40000
jmp 0x42bc04
mov eax, dword [0x446250]
cmp eax, dword [ebp - 8]
je 0x42bc04
push eax
call fcn.00421b63
cmp eax, ebx
pop ecx
je 0x42bc04
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42bc04
mov eax, dword [0x446254]
cmp eax, dword [ebp - 8]
je 0x42bc04
push eax
call fcn.00421b63
cmp eax, ebx
pop ecx
je 0x42bc04
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44624c]
call fcn.00421b63
cmp eax, ebx
pop ecx
je 0x42bc24
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42bc26
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403076
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417104]
sub esi, dword [0x40b070]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423f6c], eax
jle 0x4031e0
push dword [0x41f114]
call fcn.00403224
push ebx
push ebx
push dword [0x40b070]
push dword [0x409018]
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [0x41f110], esi
mov dword [0x417100], ebx
mov ebp, 0x40b100
mov eax, dword [0x417108]
mov edi, 0x4000
sub eax, dword [0x41f114]
cmp eax, edi
jg 0x4030eb
mov edi, eax
mov esi, 0x413100
push edi
push esi
call fcn.004061ae
test eax, eax
je 0x4031d2
add dword [0x41f114], edi
mov dword [0x40b090], esi
mov dword [0x40b094], edi
cmp dword [0x423f70], ebx
je 0x403142
cmp dword [0x424000], ebx
jne 0x403142
mov eax, dword [0x41f110]
push ebx
sub eax, dword [0x417104]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40b070]
mov dword [0x417100], eax
call fcn.004061ae
pop ecx
mov ecx, 0x40b078
mov dword [0x40b098], ebp
mov dword [0x40b09c], 0x8000
call fcn.004061ae
test eax, eax
jl 0x4031db
mov esi, dword [0x40b098]
sub esi, ebp
je 0x40319c
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4031d7
cmp esi, dword [esp + 0x10]
jne 0x4031d7
add dword [0x40b070], esi
cmp dword [0x40b094], ebx
jne 0x403111
jmp 0x4031a8
cmp dword [0x40b094], ebx
jne 0x4031db
cmp edi, ebx
je 0x4031db
mov eax, dword [0x417104]
mov ecx, eax
sub ecx, dword [0x40b070]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030d5
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.kernel32.dll_SetFilePointer]
jmp 0x4031e0
or eax, 0xffffffff
jmp 0x4031ea
push 0xfffffffffffffffe
jmp 0x4031dd
push 0xfffffffffffffffd
pop eax
jmp 0x4031ea
push 1
call fcn.004061ae
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4058f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421968
push esi
call fcn.00405d21
push esi
call fcn.004058a8
mov edi, eax
test edi, edi
jne 0x405916
xor eax, eax
jmp 0x405968
push edi
call fcn.00405f83
test byte [0x423f78], 0x80
je 0x40592f
mov al, byte [edi]
test al, al
je 0x405912
cmp al, 0x5c
je 0x405912
sub edi, esi
jmp 0x405947
call fcn.0040601c
test eax, eax
je 0x405941
test byte [eax], 0x10
je 0x405912
push esi
call fcn.0040585b
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405933
call fcn.00405814
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059f5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret 4

Function at 0x4059f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileA]
ret 0xc
Function at 0x405a6f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.004060b1
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405a93
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405bcc
mov ebx, dword [sym.imp.kernel32.dll_GetShortPathNameA]
mov dword [0x4226f0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226f0
je 0x405ad7
push 1
push 0
push esi
call fcn.004059f8
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405bd2
cmp eax, edi
jg 0x405bd2
mov esi, 0x422168
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405bd2
cmp eax, edi
jg 0x405bd2
push esi
push ebp
push str._s_s_r_n
push 0x421d68
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004061ae
push 4
push 0xc0000000
push esi
call fcn.004059f8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405bcc
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bc5
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x405bc5
cmp edi, dword [esp + 0x18]
jne 0x405bc5
push str._Rename__r_n
push esi
call fcn.0040596d
test eax, eax
jne 0x405bd9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405d21
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d68
push eax
call fcn.004059b9
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
inc dword [0x423ff0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409404
push eax
call fcn.0040596d
test eax, eax
je 0x405b90
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405c00
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405bf5
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405b92

Function at 0x406120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422af4], 0
push esi
jne 0x406157
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406131
mov dword [ecx*4 + 0x422af0], eax
inc ecx
cmp ecx, 0x100
jl 0x40612c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406188
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422af0]
xor eax, esi
inc ecx
dec edx
jne 0x40616a
pop edi
not eax
pop esi
ret 0xc
Function at 0x4061ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x4061bd
pop dword [ebp - 0x3c]
mov eax, 0x66baa4b0
add eax, 0x9985bd0d
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x213ffb4f
add dword [ebp - 0x4c], 0x2d1249fc
mov dword [ebp - 0x48], 0xd1feb1a1
sub dword [ebp - 0x48], 0x9fcb655c
mov dword [ebp - 0x44], 0xb25c81f4
add dword [ebp - 0x44], 0x99efc23a
mov dword [ebp - 0x40], 0xef859952
add dword [ebp - 0x40], 0x107a66ae
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x6895df05
sub eax, 0x68556dc1
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x8cfa9416
sub dword [ebp - 0x4c], 0x18882ac0
mov dword [ebp - 0x48], 0xe3badb0f
add dword [ebp - 0x48], 0x5db18666
mov dword [ebp - 0x44], 0x26dfdd1
sub dword [ebp - 0x44], 0x9efe9165
mov dword [ebp - 0x40], 0x29c538de
add dword [ebp - 0x40], 0xd63ac722
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xea92c34c
sub eax, 0xea52523c
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x359f1
push 0
call eax
mov ecx, 0x42cbcd48
add ecx, 0xbd347365
mov edi, eax
mov edx, 0x314752e4
add edx, 0xcefc0d1c
add edx, dword [ebp - 0x3c]
mov esi, 0xfbea96a4
sub esi, 0x5f9621ec
sub dword [ebp - 0x24], 0x5f1c071c
mov ebx, dword [edx]
xor dword [ebp - 0x24], 0x23afa568
sub ebx, esi
xor dword [ebp - 0x24], edx
mov dword [edi], ebx
mov dword [ebp - 0x24], 0x3bda0bfc
add edi, 0x19ebc195
sub edi, 0x19ebc191
add edx, 0x7586a241
sub edx, 0x7586a23d
loop 0x4062df
add eax, 0xfb6f9f5d
sub eax, 0xfb6ea9d6
mov ebx, eax
add eax, 0xb393326e
add eax, 0x4c6ccd97
mov ecx, 0x10c8e5c
add ecx, 0xff3371a4
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x402a04
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.00404030
test esi, esi
jne 0x402a3a
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.00404120
jmp 0x402a58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402918
mov edi, eax
test esi, esi
je 0x402a58
cmp dword [ebx], 0
je 0x402a58
dec esi
jmp 0x402a41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403110
Capabilities:
Query or enumerate registry value

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

Function at 0x403eb4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e048], 0
je 0x403f15
cmp word [0x48e21c], 0xd7b2
jne 0x403edd
cmp dword [0x48e224], 0
jbe 0x403edd
mov eax, 0x48e218
call dword [0x48e234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48c06c
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 0x403f3c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48c030], 0
jne 0x403f31
push 0
push 0x48c064
push 0x48c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4054f0
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 0x405720
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405573
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405720
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405573
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40573c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4055fc
xor eax, eax
push ebp
push 0x4055f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405338
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 0x4055da
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40575c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4055da
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 0x4055fc
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 0x405716
cmp byte [ebp - 0xd], 0
jne 0x405643
cmp byte [ebp - 0x12], 0
je 0x405716
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40565c
dec ebx
cmp byte [ebx], 0x2e
je 0x40566b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40565b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405716
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4056a8
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 0x405716
cmp byte [ebp - 0xd], 0
je 0x405716
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 0x405716
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