joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x190
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00403aa0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov esi, eax
call edi
mov ecx, eax
lea edx, [ecx*4]
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
push 0
push 0
push edx
lea edx, [esi*4]
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push 0x2cf0000
push str.MiniSniffer_V1.0
push str.MiniSnifferClass
push 0
lea ecx, [esp + 0x4c]
call fcn.00401830
test eax, eax
je 0x405ac9
mov ecx, dword [esp + 0x28]
push 0
push ecx
call fcn.00405860
mov edx, dword [esp + 0x30]
add esp, 8
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x19c]
push 0x67
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, eax
test esi, esi
push 0
jne 0x405adf
push str.ERROR
push str.Load_accelerators_error
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x24]
call fcn.00403040
pop edi
xor eax, eax
pop esi
add esp, 0x190
ret 0x10
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x14]
push edx
call edi
test eax, eax
je 0x405b38
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x405b25
lea edx, [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call edi
test eax, eax
jne 0x405b02
pop ebp
pop ebx
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x24]
call fcn.00403040
pop edi
mov eax, esi
pop esi
add esp, 0x190
ret 0x10

Function at 0x406a07
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x406a24
call fcn.0040a6de
mov dword [eax], 0x16
xor eax, eax
jmp 0x406a8e
push esi
push 0x88
push 1
call fcn.0040bd1a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x406a79
push esi
call fcn.00408703
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x406a57
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x406963
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x406a8d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
call fcn.00405d6e
test ebx, ebx
pop ecx
je 0x406a8b
push ebx
call fcn.0040a6f0
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406e8a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x411870
call fcn.00407d50
mov edi, 0x94
mov eax, edi
call fcn.0040cf70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4154d8], ecx
mov eax, dword [esi + 4]
mov dword [0x4154e4], eax
mov edx, dword [esi + 8]
mov dword [0x4154e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4154dc], esi
cmp ecx, 2
je 0x406eea
or esi, 0x8000
mov dword [0x4154dc], esi
shl eax, 8
add eax, edx
mov dword [0x4154e0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406f25
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406f25
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406f3d
cmp eax, 0x20b
je 0x406f2a
mov dword [ebp - 0x1c], esi
jmp 0x406f51
cmp dword [ecx + 0x84], 0xe
jbe 0x406f25
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x406f4b
cmp dword [ecx + 0x74], 0xe
jbe 0x406f25
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00407076
pop ecx
test eax, eax
jne 0x406f65
push 0x1c
call fcn.00406e66
pop ecx
call fcn.004088f2
test eax, eax
jne 0x406f76
push 0x10
call fcn.00406e66
pop ecx
call fcn.0040cedd
mov dword [ebp - 4], esi
call fcn.0040ccdf
test eax, eax
jge 0x406f8f
push 0x1b
call fcn.00406e41
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x416b64], eax
call fcn.0040cbbd
mov dword [0x415360], eax
call fcn.0040cb1b
test eax, eax
jge 0x406fb5
push 8
call fcn.00406e41
pop ecx
call fcn.0040c8e8
test eax, eax
jge 0x406fc6
push 9
call fcn.00406e41
pop ecx
call fcn.0040ba3e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x406fd9
push eax
call fcn.00406e41
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0040c87f
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x406ffa
movzx eax, word [ebp - 0x34]
jmp 0x406ffd
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004059e0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40701b
push edi
call fcn.0040bb76
call fcn.0040bb98
jmp 0x40704d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00407d8b
ret
Function at 0x40ac18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x40adde
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4157e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40adde
test cl, 0x48
je 0x40ac7e
mov al, byte [eax + 5]
cmp al, 0xa
je 0x40ac7e
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40acd0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40acb8
call fcn.0040a6de
mov dword [eax], 9
call fcn.0040a6e7
mov dword [eax], esi
jmp 0x40acc8
cmp eax, 0x6d
je 0x40adde
push eax
call fcn.0040a6f0
pop ecx
or eax, 0xffffffff
jmp 0x40ade0
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x40add9
test edx, edx
je 0x40acf3
cmp byte [ebx], 0xa
jne 0x40acf3
or al, 4
jmp 0x40acf5
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40add3
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40adc3
cmp al, 0xd
je 0x40ad29
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40adb5
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40ad43
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40ad3e
add dword [ebp + 0x10], 2
jmp 0x40ad97
mov dword [ebp + 0x10], eax
jmp 0x40adb1
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40ad6b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x40adb1
cmp dword [ebp - 0xc], 0
je 0x40adb1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40ad8c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40ad97
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40adb4
cmp ebx, dword [ebp + 0xc]
jne 0x40ad9c
cmp byte [ebp - 1], 0xa
jne 0x40ad9c
mov byte [ebx], 0xa
jmp 0x40adb4
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040e266
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40adb5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40ad0d
jmp 0x40add3
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x40add3
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40ade0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ae90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4144a0]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x40aeb9
xor eax, eax
jmp 0x40b027
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4157e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40aeec
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0040ecc6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40afbe
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x40aff9
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x40af47
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40af38
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x40af1b
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40af87
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x40af90
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40af0c
jmp 0x40af92
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x40b022
cmp dword [ebp - 8], edi
je 0x40aff9
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x40afeb
call fcn.0040a6de
mov dword [eax], 9
call fcn.0040a6e7
mov dword [eax], esi
jmp 0x40aff4
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40afe0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x40af92
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
jmp 0x40af92
push dword [ebp - 8]
call fcn.0040a6f0
pop ecx
or eax, 0xffffffff
jmp 0x40b025
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40b00e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40b00e
xor eax, eax
jmp 0x40b025
call fcn.0040a6de
mov dword [eax], 0x1c
call fcn.0040a6e7
mov dword [eax], edi
jmp 0x40aff4
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00406097
leave
ret
Function at 0x40d8a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040cf70
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40d935
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4154d8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40d935
cmp eax, 1
je 0x40d94d
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40d935
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40d90a
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40d931
xor eax, eax
inc eax
jmp 0x40d969
cmp esi, ebx
jae 0x40d939
xor eax, eax
jmp 0x40d969
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x4154d8]
jmp 0x40d94f
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d9b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x415664], ebx
push esi
push edi
jne 0x40da34
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40da6f
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x412614
push edi
call esi
test eax, eax
mov dword [0x415664], eax
je 0x40da6f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x415668], eax
call esi
cmp dword [0x4154d8], 2
mov dword [0x41566c], eax
jne 0x40da34
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x415674], eax
je 0x40da34
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x415670], eax
mov eax, dword [0x415670]
test eax, eax
je 0x40da79
call eax
test eax, eax
je 0x40da60
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x415674]
test eax, eax
je 0x40da60
test byte [ebp - 8], 1
jne 0x40da79
cmp dword [0x4154e4], 4
jb 0x40da73
or byte [ebp + 0x12], 0x20
jmp 0x40da98
xor eax, eax
jmp 0x40daa8
or byte [ebp + 0x12], 4
jmp 0x40da98
mov eax, dword [0x415668]
test eax, eax
je 0x40da98
call eax
mov ebx, eax
test ebx, ebx
je 0x40da98
mov eax, dword [0x41566c]
test eax, eax
je 0x40da98
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x415664]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fff5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040cf70
mov eax, dword [0x4144a0]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040e266
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x41011f
push 2
push esi
push dword [ebp + 8]
call fcn.0040e266
add esp, 0xc
cmp eax, ebx
je 0x41011f
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4100c2
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0040d840
push 0x8000
push dword [ebp + 8]
call fcn.004105aa
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x41007b
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040ae90
add esp, 0xc
cmp eax, 0xffffffff
je 0x41009b
sub edi, eax
test edi, edi
jg 0x410073
jmp 0x4100b3
call fcn.0040a6e7
cmp dword [eax], 5
jne 0x4100b0
call fcn.0040a6de
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004105aa
pop ecx
pop ecx
jmp 0x41010a
jge 0x41010a
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e266
push dword [ebp + 8]
call fcn.0040e9e7
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x41010a
call fcn.0040a6de
mov dword [eax], 0xd
call fcn.0040a6e7
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0040e266
add esp, 0xc
mov eax, esi
pop edi
jmp 0x410121
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00406097
leave
ret
Function at 0x402ae0
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.00404238
test esi, esi
jne 0x402b16
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.00404328
jmp 0x402b34
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402994
mov edi, eax
test esi, esi
je 0x402b34
cmp dword [ebx], 0
je 0x402b34
dec esi
jmp 0x402b1d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031d4
Capabilities:
Query or enumerate registry value

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

Function at 0x404018
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d004c], 0
je 0x404079
cmp word [0x4d0220], 0xd7b2
jne 0x404041
cmp dword [0x4d0228], 0
jbe 0x404041
mov eax, 0x4d021c
call dword [0x4d0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4cd06c
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 0x4040a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cd030], 0
jne 0x404095
push 0
push 0x4cd064
push 0x4cd06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402758
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4d004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4041b4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4063cc
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 0x406432
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.004044a8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d8c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40641c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406439
lea eax, [ebp - 0x10]
call fcn.00404238
ret

Function at 0x408fe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004046f8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408ff9
test al, 0x10
jne 0x408ffd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4090ec
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004046f8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40910e
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40bcb0
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 0x40bce9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404328
jmp 0x40bcf2
mov eax, ebx
mov edx, esi
call fcn.0040428c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bcfc
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 0x40bd1d
mov al, byte [esp]
jmp 0x40bd1f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c3a4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c21c
mov eax, dword [0x4cfa10]
cmp byte [eax], 0
je 0x40c420
mov eax, dword [0x4cf660]
call fcn.00402bf8
call fcn.004028c0
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.00409408
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 0x40c468
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c456
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4cf5c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d0668]
call fcn.004058c4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40cd04
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 0x40cdda
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004042d0
lea eax, [ebp - 8]
call fcn.00404748
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046f8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cdc4
mov eax, ebx
call fcn.00402758
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cdbd
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.004046f8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cda7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cdec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cda7
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 0x40cdc4
mov eax, dword [ebp - 0x10]
call fcn.00402778
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cde1
lea eax, [ebp - 8]
call fcn.00404238
ret

Function at 0x40d398
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d3fc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044a8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408c40
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d403
lea eax, [ebp - 0xc]
call fcn.00404238
ret