joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4082a0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x10]
push eax
push esi
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4082f2
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x4371f4
push 0
push esi
push edi
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40831b
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x14

Function at 0x408400
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x2a0
lea eax, [esp + 0x110]
push esi
push edi
push eax
push 0x202
mov edi, 1
call sub.WSOCK32.dll_WSAStartup
cmp eax, 0xffffffff
jne 0x408434
mov eax, 2
pop edi
pop esi
add esp, 0x2a0
ret 4
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x40845b
call sub.WSOCK32.dll_WSACleanup
mov eax, 3
pop edi
pop esi
add esp, 0x2a0
ret 4
lea ecx, [esp + 8]
push 0x10
push ecx
push esi
mov word [esp + 0x14], 2
mov dword [esp + 0x18], 0
mov word [esp + 0x16], 0
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x40849e
push esi
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
mov eax, 4
pop edi
pop esi
add esp, 0x2a0
ret 4
push 1
push esi
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
jne 0x4084c6
push esi
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
mov eax, 5
pop edi
pop esi
add esp, 0x2a0
ret 4
lea edx, [esp + 0x18]
push pe_nt_image_headers32
push edx
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x4084e1
mov edi, 6
jmp 0x40851f
lea eax, [esp + 0x18]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4084f6
mov edi, 7
jmp 0x40851f
mov edx, dword [eax + 0xc]
movsx ecx, word [eax + 0xa]
mov edx, dword [edx]
mov byte [ecx + edx], 0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call sub.WSOCK32.dll_inet_ntoa
mov edx, dword [esp + 0x2ac]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 2
push esi
call sub.WSOCK32.dll_shutdown
push esi
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
mov eax, edi
pop edi
pop esi
add esp, 0x2a0
ret 4

Function at 0x408710
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 4]
test eax, eax
je 0x40875d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
add esp, 0x54
ret 4
Function at 0x4087a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x14]
push eax
push esi
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4087f8
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x4371f4
push 0
push esi
push edi
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4088f5
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
mov edi, 4
push esi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408838
inc dword [esp + 0x18]
jmp 0x408840
mov dword [esp + 0x18], 1
cmp dword [esp + 0x18], 1
ja 0x4088cd
push str.StdOle2
push esi
call fcn.00409cd0
add esp, 8
test eax, eax
jne 0x4088c9
push str.MSVBVM50
push esi
call fcn.00409cd0
add esp, 8
test eax, eax
jne 0x4088c9
push str.OleAut32
push esi
call fcn.00409cd0
add esp, 8
test eax, eax
jne 0x4088c9
push str.OlePro32
push esi
call fcn.00409cd0
add esp, 8
test eax, eax
jne 0x4088c9
push str.Atl.DLL
push esi
call fcn.00409cd0
add esp, 8
test eax, eax
jne 0x4088c9
push str.MSVCRT
push esi
call fcn.00409cd0
add esp, 8
test eax, eax
jne 0x4088c9
push str.MFC42
push esi
call fcn.00409cd0
add esp, 8
test eax, eax
je 0x4088cd
inc dword [esp + 0x18]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x18]
push edi
push ecx
push edi
push 0
push esi
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 8
ret 0xc

Function at 0x409aa0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x409ab7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409ab9
xor eax, eax
test eax, eax
je 0x409aca
push eax
call fcn.0040bf90
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x409c90
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x409cac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409cae
xor eax, eax
test eax, eax
je 0x409cbf
push eax
call fcn.0040bf90
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x409f90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d1d8
push 0x40d488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4390a8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4390a4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4390a0], ecx
shr eax, 0x10
mov dword [0x43909c], eax
call fcn.0040f350
test eax, eax
jne 0x409ffa
push 0x1c
call fcn.0040a140
add esp, 4
call fcn.0040cab0
test eax, eax
jne 0x40a00d
push 0x10
call fcn.0040a140
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040f140
call fcn.0040b940
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43a6cc], eax
call fcn.0040efe0
mov dword [0x43908c], eax
test eax, eax
je 0x40a040
mov eax, dword [0x43a6cc]
test eax, eax
jne 0x40a04a
push 0xffffffffffffffff
call fcn.0040ae10
add esp, 4
call fcn.0040ed30
call fcn.0040ec40
call fcn.0040ade0
mov esi, dword [0x43a6cc]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40a129
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40a091
test al, al
je 0x40a091
and eax, 0xff
push eax
call fcn.0040ebe0
add esp, 4
test eax, eax
je 0x40a06b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40a06b
cmp byte [esi], 0x22
jne 0x40a09a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40a0aa
cmp al, 0x20
ja 0x40a0aa
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40a09a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40a0cb
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40a0d0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040ae10
jmp 0x40a10e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40a09a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40a129

Function at 0x40ae50
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0040af10
mov eax, dword [0x4390d8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x40ae74
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4390d4], 1
mov byte [0x4390d0], bl
jne 0x40aece
mov ecx, dword [0x43a6c8]
test ecx, ecx
je 0x40aebc
mov esi, dword [0x43a6c4]
sub esi, 4
cmp esi, ecx
jb 0x40aebc
mov eax, dword [esi]
test eax, eax
je 0x40aeb5
call eax
mov ecx, dword [0x43a6c8]
sub esi, 4
cmp esi, ecx
jae 0x40aea7
push 0x43208c
push 0x432084
call fcn.0040af30
add esp, 8
push 0x432098
push 0x432090
call fcn.0040af30
add esp, 8
test ebx, ebx
je 0x40aeed
call fcn.0040af20
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x4390d8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40cab0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0040e230
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x433bd0], eax
je 0x40cb08
push 0x74
push 1
call fcn.00410240
mov esi, eax
add esp, 8
test esi, esi
je 0x40cb08
mov eax, dword [0x433bd0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40cb08
push esi
call fcn.0040cb10
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x40cb30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x433bd0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40cb9e
push 0x74
push 1
call fcn.00410240
mov esi, eax
add esp, 8
test esi, esi
je 0x40cb94
mov ecx, dword [0x433bd0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40cb94
push esi
call fcn.0040cb10
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.0040a140
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x40efe0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4393b0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40f022
call edi
mov esi, eax
test esi, esi
je 0x40f00c
mov eax, 1
jmp 0x40f01d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40f12f
mov eax, 2
mov dword [0x4393b0], eax
cmp eax, 1
jne 0x40f0c2
test esi, esi
jne 0x40f03b
call edi
mov esi, eax
test esi, esi
je 0x40f12f
cmp word [esi], 0
mov eax, esi
je 0x40f055
add eax, 2
cmp word [eax], 0
jne 0x40f043
add eax, 2
cmp word [eax], 0
jne 0x40f043
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40f0b4
push edi
call fcn.0040a310
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40f0b4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40f0a6
push ebx
call fcn.0040a3e0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40f12f
test ebx, ebx
jne 0x40f0d3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40f12f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40f0eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f0db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f0db
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040a310
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40f10d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40f3d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x433f88
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40f3f4
add eax, 8
inc ebp
cmp eax, 0x434018
jb 0x40f3e5
cmp ecx, dword [ebp*8 + 0x433f88]
jne 0x40f59b
mov eax, dword [0x439094]
cmp eax, 1
je 0x40f55d
test eax, eax
jne 0x40f420
cmp dword [0x433884], 1
je 0x40f55d
cmp ecx, 0xfc
je 0x40f59b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f45b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40f4a4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x42d738
add ebx, ecx
push ebx
call fcn.00412970
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42d718
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x433f8c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004128e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x43a5c0]
test eax, eax
je 0x40f56e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40f578
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x433f8c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x411b90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x411bbc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x43a5c0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x411bf7
push 2
push ebp
push ecx
call fcn.00411a90
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x411d59
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x411ca1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x411c52
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x411c3f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x411c22
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411d4a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x411c9d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x411c1e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x411d39
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411cf5
cmp eax, 5
jne 0x411cde
call fcn.0040c010
mov dword [eax], 9
call fcn.0040c020
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040bf90
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x411d15
cmp byte [ebp], 0x1a
jne 0x411d15
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0040c010
mov dword [eax], 0x1c
call fcn.0040c020
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x411c9d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411d8a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x411ca1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x411ca1
Function at 0x414d30
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00409e20
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.00411a90
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x414e70
push 2
push ebp
push ebx
call fcn.00411a90
add esp, 0xc
cmp eax, 0xffffffff
je 0x414e70
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x414e11
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00415960
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x414db6
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00411b90
add esp, 0xc
cmp eax, 0xffffffff
je 0x414dd2
sub esi, eax
test esi, esi
jle 0x414dea
jmp 0x414da7
call fcn.0040c020
cmp dword [eax], 5
jne 0x414de7
call fcn.0040c010
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00415960
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00411a90
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x414e57
push 0
push ecx
push ebx
call fcn.00411a90
add esp, 0xc
push ebx
call fcn.004123b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x414e57
call fcn.0040c010
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0040c020
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.00411a90
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x4154d0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x439540]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x415518
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4154f8
mov eax, 2
jmp 0x415513
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4155f8
mov eax, 1
mov dword [0x439540], eax
cmp eax, 2
jne 0x415538
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x41560a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x415553
mov ecx, dword [0x4394a8]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x415572
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.0040a310
mov esi, eax
add esp, 4
test esi, esi
jne 0x415589
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4155ef
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x4155d0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4155ef
push esi
call fcn.0040a3e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x4155ff
push esi
call fcn.0040a3e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040a3e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret