joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ef5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x50]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.0040302e
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402f46
xor al, al
jmp 0x402f82
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [ebp - 0xc]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402f78
cmp dword [ebp + 0x10], eax
je 0x402f7a
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x402f7a
xor bl, bl
push dword [ebp - 0x10]
call esi
mov al, bl
pop ebx
pop edi
pop esi
leave
ret

Function at 0x402f86
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [esp + 0x10]
call esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
ret

Function at 0x403148
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, edi
call fcn.00403089
test al, al
je 0x4031f7
push 0x4014d4
mov esi, 0x104
push esi
push edi
call fcn.00404243
add esp, 0xc
test al, al
je 0x4031f7
push esi
push edi
call fcn.004041e6
mov ebx, eax
mov dword [ebp - 4], esi
sub dword [ebp - 4], ebx
cmp dword [ebp - 4], 0xb
pop ecx
pop ecx
jb 0x4031f7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shr ecx, 0xc
xor eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0xa
push dword [ebp - 4]
dec dword [ebp - 0xc]
lea eax, [edi + ebx*2]
push eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.0040418f
add esp, 0x10
test al, al
je 0x4031f7
lea eax, [ebx + 5]
push eax
mov ecx, edi
call fcn.004030b3
push 0x4015e4
push esi
push edi
call fcn.00404243
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4031fe
inc dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jne 0x4031ac
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push 0x4015e0
push esi
push edi
call fcn.00404243
add esp, 0xc
jmp 0x4031f9
Function at 0x40320f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
push edi
call fcn.004041e6
push 0x4015f0
push esi
push edi
mov ebx, eax
call fcn.00404243
add esp, 0x14
test al, al
je 0x4032ec
and dword [ebp - 0x254], 0
push 0x24c
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.0040302e
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4032dd
cmp word [ebp - 0x20], 0
lea esi, [ebp - 0x20]
jne 0x403286
lea esi, [ebp - 0x228]
push esi
call fcn.00402fa5
pop ecx
test al, al
jne 0x4032c0
lea eax, [ebx + 1]
push eax
mov ecx, edi
call fcn.004030b3
push esi
mov ecx, edi
call fcn.0040309e
test al, al
je 0x4032c0
test byte [ebp - 0x254], 0x10
push edi
je 0x4032ba
call fcn.0040320f
pop ecx
jmp 0x4032c0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403276
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
mov ecx, edi
call fcn.004030b3
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403332
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push 1
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40337e
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push 0x401624
push 0
mov byte [esi], 1
call edi
test eax, eax
jne 0x403375
push 0x4015fc
push eax
call edi
push eax
mov ecx, esi
call fcn.00402fe5
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x403cac
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push esi
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x258], ax
mov word [ebp - 0x460], ax
mov esi, 0x104
lea eax, [ebp - 0x460]
push esi
push eax
call fcn.0040420b
add esp, 0xc
test al, al
je 0x403ded
push dword [ebp + 0xc]
lea eax, [ebp - 0x460]
push esi
push eax
call fcn.00404243
add esp, 0xc
test al, al
je 0x403ded
push 0x401650
lea eax, [ebp - 0x460]
push esi
push eax
call fcn.00404243
add esp, 0xc
test al, al
je 0x403ded
push ebx
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x250]
push ebx
push eax
mov dword [ebp - 0x254], ebx
call fcn.0040302e
add esp, 0xc
push ebx
push ebx
push 1
lea eax, [ebp - 0x254]
push eax
push ebx
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x403dec
xor eax, eax
mov word [ebp - 0x464], ax
mov word [ebp - 0x66c], ax
push edi
test byte [ebp - 0x254], 0x10
je 0x403dce
lea edi, [ebp - 0x20]
cmp word [ebp - 0x20], bx
jne 0x403d8a
lea edi, [ebp - 0x228]
push edi
call fcn.00402fa5
pop ecx
test al, al
jne 0x403dce
push dword [ebp + 8]
lea eax, [ebp - 0x66c]
push esi
push eax
call fcn.0040420b
add esp, 0xc
test al, al
je 0x403dce
push edi
lea eax, [ebp - 0x66c]
push esi
push eax
call fcn.00404243
add esp, 0xc
test al, al
je 0x403dce
lea eax, [ebp - 0x66c]
push eax
call fcn.0040320f
pop ecx
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403d72
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x403df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
xor eax, eax
push esi
mov word [ebp - 4], ax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403e40
cmp eax, esi
jae 0x403e40
xor esi, esi
push dword [esi + 0x401658]
lea eax, [ebp - 0x20c]
push eax
call fcn.00403cac
add esi, 4
pop ecx
pop ecx
cmp esi, 8
jb 0x403e24
pop esi
leave
ret

Function at 0x403f72
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0040302e
add esp, 0xc
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x403fb3
leave
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00403e43
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404044
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, ecx
call fcn.00404010
mov eax, dword [esp + 0xc]
lea ebx, [esi + 0xc]
push ebx
push eax
mov dword [esi + 8], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esi], eax
test eax, eax
je 0x404131
xor eax, eax
inc eax
cmp dword [ebx], eax
mov dword [esp + 0xc], eax
jle 0x404121
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [esi]
push 0x40172c
shl edi, 2
push dword [edi + eax]
call ebp
test eax, eax
jne 0x4040a0
mov dword [esi + 4], 0x401250
jmp 0x40410f
mov eax, dword [esi]
push 0x401718
push dword [edi + eax]
call ebp
test eax, eax
jne 0x4040b6
mov byte [esi + 0x14], 1
jmp 0x40410f
mov eax, dword [esi]
push 0x4016f8
push dword [edi + eax]
call ebp
test eax, eax
jne 0x4040cc
mov byte [esi + 0x15], 1
jmp 0x40410f
mov eax, dword [esi]
push 0x4016d8
push dword [edi + eax]
call ebp
test eax, eax
jne 0x4040e2
mov byte [esi + 0x16], 1
jmp 0x40410f
mov eax, dword [esi]
push 0x4016b8
push dword [edi + eax]
call ebp
test eax, eax
jne 0x4040f8
mov byte [esi + 0x17], 1
jmp 0x40410f
mov eax, dword [esi]
push 0x4016a4
push dword [edi + eax]
call ebp
test eax, eax
jne 0x40410f
mov dword [esi + 0x10], 1
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx]
jl 0x404080
pop edi
pop ebp
cmp byte [esi + 0x16], 0
jne 0x404131
cmp byte [esi + 0x15], 0
sete al
mov byte [esi + 0x14], al
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
pop ebx
ret 4
Function at 0x406573
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.0040545c
and dword [ebp - 4], 0
cmp dword [0x40d250], 0
mov ebx, eax
jne 0x406624
push 0x401ea0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4066d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401e94
push edi
call esi
test eax, eax
je 0x4066d5
push eax
call fcn.004053ea
mov dword [esp], 0x401e84
push edi
mov dword [0x40d250], eax
call esi
push eax
call fcn.004053ea
mov dword [esp], 0x401e70
push edi
mov dword [0x40d254], eax
call esi
push eax
call fcn.004053ea
mov dword [esp], 0x401e54
push edi
mov dword [0x40d258], eax
call esi
push eax
call fcn.004053ea
pop ecx
mov dword [0x40d260], eax
test eax, eax
je 0x406624
push 0x401e3c
push edi
call esi
push eax
call fcn.004053ea
pop ecx
mov dword [0x40d25c], eax
mov eax, dword [0x40d25c]
cmp eax, ebx
je 0x40667c
cmp dword [0x40d260], ebx
je 0x40667c
push eax
call fcn.00405465
push dword [0x40d260]
mov esi, eax
call fcn.00405465
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40667c
test edi, edi
je 0x40667c
call esi
test eax, eax
je 0x406673
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406673
test byte [ebp - 0xc], 1
jne 0x40667c
or dword [ebp + 0x10], 0x200000
jmp 0x4066b5
mov eax, dword [0x40d254]
cmp eax, ebx
je 0x4066b5
push eax
call fcn.00405465
pop ecx
test eax, eax
je 0x4066b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4066b5
mov eax, dword [0x40d258]
cmp eax, ebx
je 0x4066b5
push eax
call fcn.00405465
pop ecx
test eax, eax
je 0x4066b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d250]
call fcn.00405465
pop ecx
test eax, eax
je 0x4066d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4066d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4083de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c9f8]
jne 0x4083e8
repz ret
jmp fcn.00409a85
Function at 0x5d8e48
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x5d8b64
and esi, esi
push esi
pop eax
call fcn.005d8e85
or eax, eax
mov eax, 0x826f2fa0
xor dword [edx], edi
and eax, esi
add edx, 2
sub esi, esi
add eax, esi
cmp edx, ecx
jl fcn.005d8e48
inc eax
sub esi, 0xa1c066a3
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4066c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x4066e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4066e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4066d8
mov eax, 1
add ebx, ebx
jne 0x4066fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4066f0
jne 0x40670c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4066f0
xor ecx, ecx
sub eax, 3
jb 0x406720
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x406792
mov ebp, eax
add ebx, ebx
jne 0x40672b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x406738
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40675c
inc ecx
add ebx, ebx
jne 0x406748
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40673d
jne 0x406759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40673d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40677c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40676d
jmp 0x4066de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40677c
add edi, ecx
jmp 0x4066de
pop esi
mov edi, esi
mov ecx, 0x24
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40679a
cmp byte [edi], 1
jne 0x40679a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40679f
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x406817
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4067cc
mov ecx, edi
jns 0x4067fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x607c]
or eax, eax
je 0x406811
mov dword [ebx], eax
add ebx, 4
jmp 0x4067e9
call dword [esi + 0x6084]
mov ebp, dword [esi + 0x6080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40684b
sub esp, 0xffffff80
jmp 0x401490
Function at 0x40176b
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x404122], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4043bc], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404350], eax
mov dword [0x40411a], eax
mov dword [0x40433c], 0x30
mov dword [0x404340], 2
jmp 0x4017b0
mov dword [0x404344], 0x403300
mov dword [0x404348], 0
mov dword [0x40434c], 0
mov dword [0x404364], 0x4042e7
mov dword [0x40435c], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404354], eax
mov dword [0x404368], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x404358], eax
push 0x40433c
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40411a]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.please_wait
push str.cokun
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x4043b4], eax
push 5
push dword [0x4043b4]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x4043b4]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x40436c]
jmp 0x401884
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x401876
mov eax, dword [0x404374]
jmp 0x40189f
call 0x402d98
ret

Function at 0x40ed6b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x40eae0
sub ebx, 1
call fcn.0040ed99
xor dword [eax], ecx
inc eax
sub esp, 4
mov dword [esp], 0x9a968349
pop ebx
cmp eax, edi
jne fcn.0040ed6b
ret
Function at 0x402fe4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40307c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40305c
xor eax, eax
push ebp
push 0x403055
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 0x403098
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40305c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x45e020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46004c], 0
je 0x403da9
cmp word [0x460220], 0xd7b2
jne 0x403d71
cmp dword [0x460228], 0
jbe 0x403d71
mov eax, 0x46021c
call dword [0x460238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e06c
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 0x403dd0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x45e030], 0
jne 0x403dc5
push 0
push 0x45e064
push 0x45e06c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x4053d8
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 0x405608
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x40545b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405608
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x40545b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405624
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4054e4
xor eax, eax
push ebp
push 0x4054dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405220
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_1
test eax, eax
je 0x4054c2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405644
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4054c2
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 0x4054e4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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 0x4055fe
cmp byte [ebp - 0xd], 0
jne 0x40552b
cmp byte [ebp - 0x12], 0
je 0x4055fe
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405544
dec ebx
cmp byte [ebx], 0x2e
je 0x405553
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405543
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4055fe
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405590
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 0x4055fe
cmp byte [ebp - 0xd], 0
je 0x4055fe
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 0x4055fe
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 0x405cec
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 0x405d52
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.00404134
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d59
lea eax, [ebp - 0x10]
call fcn.00403ec4
ret

Function at 0x40ae60
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 0x40ae99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fb4
jmp 0x40aea2
mov eax, ebx
mov edx, esi
call fcn.00403f18
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bec0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bf96
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f5c
lea eax, [ebp - 8]
call fcn.004043d4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404384
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf80
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404384
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf63
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bfa8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf63
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf80
mov eax, dword [ebp - 0x10]
call fcn.00402764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf9d
lea eax, [ebp - 8]
call fcn.00403ec4
ret