joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441e70
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push esi
push edi
mov esi, 0x4bb4dc
mov ecx, dword [esi]
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
mov edx, eax
cmp edx, 0xffffffff
je 0x441edb
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0x14]
push edx
rep stosd dword es:[edi], eax
call ebx
add esi, 4
cmp esi, 0x4bb4e8
jl 0x441e8b
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push str.A:_autoexec.bat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x441ee8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
xor esi, esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x441f55
lea edx, [edi + 1]
push edx
call fcn.0047ec12
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push esi
push eax
push edi
push ebx
push ebp
mov byte [ebx + edi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x441f4c
push str._RESTART
push ebx
call fcn.00466970
mov esi, eax
add esp, 8
neg esi
sbb esi, esi
neg esi
jne 0x441f4c
push str._restart
push ebx
call fcn.00466970
mov esi, eax
add esp, 8
neg esi
sbb esi, esi
neg esi
push ebx
call fcn.0047ec3b
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x441f70
Capabilities:
Delete file

Disassembly:
sub esp, 0x10
lea ecx, [esp + 4]
push esi
push 0x4c2e6c
call fcn.0047e259
push str.restart.log
lea ecx, [esp + 0x14]
call fcn.0047e552
push eax
lea eax, [esp + 0xc]
push 0x4ba270
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0047e779
lea edx, [esp + 8]
push eax
push edx
call fcn.0047e713
lea ecx, [esp + 0xc]
call fcn.0047e4e4
lea ecx, [esp + 0x10]
call fcn.0047e4e4
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
mov esi, eax
call fcn.0047e4e4
lea ecx, [esp + 8]
call fcn.0047e4e4
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x456eb0
Capabilities:
Create directory

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push esi
push edi
push eax
call fcn.0047e259
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edi, edi
push edi
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0047e9e0
mov esi, eax
cmp esi, 0xffffffff
lea edi, [esi + 1]
je 0x456f04
lea ecx, [esp + 0x10]
push edi
push ecx
lea ecx, [esp + 0x14]
call fcn.0047b178
push eax
lea ecx, [esp + 0x10]
call fcn.0047e61d
lea ecx, [esp + 0x10]
call fcn.0047e4e4
mov edx, dword [esp + 0xc]
push 0
push edx
call ebx
cmp esi, 0xffffffff
je 0x456f22
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
call fcn.0047e61d
jmp 0x456ecc
lea ecx, [esp + 0xc]
call fcn.0047e4e4
lea ecx, [esp + 0x18]
call fcn.0047e4e4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x45b180
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push eax
mov ecx, dword [esp + 0x220]
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebp, eax
cmp ebp, 0x20
ja 0x45b2d5
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
push str..htm
push SysReAllocStringLen
call fcn.0045b2f0
test eax, eax
jne 0x45b2d5
mov edi, str._shellopencommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push SysReAllocStringLen
mov ecx, ebx
call fcn.0045b2f0
test eax, eax
jne 0x45b2d5
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.00466970
mov edx, eax
add esp, 8
test edx, edx
jne 0x45b25e
lea eax, [esp + 0x10]
push 0x4ba994
push eax
call fcn.00466970
mov edx, eax
add esp, 8
test edx, edx
jne 0x45b25e
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + eax + 0xf]
jmp 0x45b261
mov byte [edx], 0
mov edi, 0x4ba4d8
or ecx, 0xffffffff
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x21c]
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 edx, dword [esp + 0x220]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0x10]
push edx
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x45b2f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push edi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x120]
test eax, eax
mov byte [edi], 0
jne 0x45b35d
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
test esi, esi
jne 0x45b35b
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x4666d0
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.00469b40
mov esi, eax
add esp, 8
test esi, esi
je 0x466730
push esi
call fcn.0046ce00
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
push esi
push 0x466750
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x466748
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.00467530
add esp, 4
test edi, edi
je 0x466746
push edi
call fcn.0046b930
add esp, 4
xor eax, eax
pop edi
pop esi
ret
Function at 0x469930
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afe70
push 0x467d18
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 [0x4c9fc0], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4c9fbc], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4c9fb8], ecx
shr eax, 0x10
mov dword [0x4c9fb4], eax
call fcn.0046f430
test eax, eax
jne 0x46999a
push 0x1c
call fcn.00469b10
add esp, 4
call fcn.0046cda0
test eax, eax
jne 0x4699ad
push 0x10
call fcn.00469b10
add esp, 4
mov dword [ebp - 4], 0
call fcn.0046edb0
call fcn.0046b090
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4cb4b0], eax
call fcn.00472310
mov dword [0x4c9d80], eax
test eax, eax
je 0x4699e0
mov eax, dword [0x4cb4b0]
test eax, eax
jne 0x4699ea
push 0xffffffffffffffff
call fcn.0046b120
add esp, 4
call fcn.00472060
call fcn.00471f70
call fcn.0046b0f0
mov esi, dword [0x4cb4b0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x469ac9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x469a31
test al, al
je 0x469a31
and eax, 0xff
push eax
call fcn.00471f10
add esp, 4
test eax, eax
je 0x469a0b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x469a0b
cmp byte [esi], 0x22
jne 0x469a3a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x469a4a
cmp al, 0x20
ja 0x469a4a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x469a3a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x469a6b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x469a70
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.0046b120
jmp 0x469aae
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 0x469a3a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x469ac9

Function at 0x469b10
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4c9d88], 1
jne 0x469b1e
call fcn.00472470
mov eax, dword [esp + 4]
push eax
call fcn.004724b0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x46b160
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0046b220
mov eax, dword [0x4c9ff0]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x46b184
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 [0x4c9fec], 1
mov byte [0x4c9fe8], bl
jne 0x46b1de
mov ecx, dword [0x4cb4a8]
test ecx, ecx
je 0x46b1cc
mov esi, dword [0x4cb4a4]
sub esi, 4
cmp esi, ecx
jb 0x46b1cc
mov eax, dword [esi]
test eax, eax
je 0x46b1c5
call eax
mov ecx, dword [0x4cb4a8]
sub esi, 4
cmp esi, ecx
jae 0x46b1b7
push 0x4ba0fc
push 0x4ba0f0
call fcn.0046b240
add esp, 8
push 0x4ba108
push 0x4ba100
call fcn.0046b240
add esp, 8
test ebx, ebx
je 0x46b1fd
call fcn.0046b230
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x4c9ff0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46cda0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0046c9c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4beb80], eax
je 0x46cdf8
push 0x74
push 1
call fcn.00469b40
mov esi, eax
add esp, 8
test esi, esi
je 0x46cdf8
mov eax, dword [0x4beb80]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x46cdf8
push esi
call fcn.0046ce00
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 0x46ce20
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 [0x4beb80]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x46ce8e
push 0x74
push 1
call fcn.00469b40
mov esi, eax
add esp, 8
test esi, esi
je 0x46ce84
mov ecx, dword [0x4beb80]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x46ce84
push esi
call fcn.0046ce00
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.00469ae0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x46cea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4beb80]
cmp eax, 0xffffffff
je 0x46cf4f
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x46cec4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x46cf40
mov eax, dword [esi + 0x24]
test eax, eax
je 0x46ced4
push eax
call fcn.00467530
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x46cee4
push eax
call fcn.00467530
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x46cef4
push eax
call fcn.00467530
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x46cf04
push eax
call fcn.00467530
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x46cf14
push eax
call fcn.00467530
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x46cf24
push eax
call fcn.00467530
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x4beb88
je 0x46cf37
push eax
call fcn.00467530
add esp, 4
push esi
call fcn.00467530
add esp, 4
mov eax, dword [0x4beb80]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x46f040
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 0x46f06c
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 + 0x4cb3a0]
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 0x46f0a7
push 2
push ebp
push ecx
call fcn.0046ed30
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x46f209
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x46f151
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x46f102
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x46f0ef
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 0x46f0d2
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 0x46f1fa
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x46f14d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x46f0ce
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46f1e9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46f1a5
cmp eax, 5
jne 0x46f18e
call fcn.0046b9b0
mov dword [eax], 9
call fcn.0046b9c0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0046b930
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 0x46f1c5
cmp byte [ebp], 0x1a
jne 0x46f1c5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0046b9b0
mov dword [eax], 0x1c
call fcn.0046b9c0
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 0x46f14d
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 0x46f23a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x46f151
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x46f151
Function at 0x472310
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4ca238]
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 0x472352
call edi
mov esi, eax
test esi, esi
je 0x47233c
mov eax, 1
jmp 0x47234d
call ebp
mov ebx, eax
test ebx, ebx
je 0x47245f
mov eax, 2
mov dword [0x4ca238], eax
cmp eax, 1
jne 0x4723f2
test esi, esi
jne 0x47236b
call edi
mov esi, eax
test esi, esi
je 0x47245f
cmp word [esi], 0
mov eax, esi
je 0x472385
add eax, 2
cmp word [eax], 0
jne 0x472373
add eax, 2
cmp word [eax], 0
jne 0x472373
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 0x4723e4
push edi
call fcn.00467a30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4723e4
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 0x4723d6
push ebx
call fcn.00467530
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 0x47245f
test ebx, ebx
jne 0x472403
call ebp
mov ebx, eax
test ebx, ebx
je 0x47245f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x47241b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47240b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47240b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00467a30
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x47243d
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 0x4724b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4c1698
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4724d4
add eax, 8
inc ebp
cmp eax, 0x4c1728
jb 0x4724c5
cmp ecx, dword [ebp*8 + 0x4c1698]
jne 0x47267b
mov eax, dword [0x4c9d88]
cmp eax, 1
je 0x47263d
test eax, eax
jne 0x472500
cmp dword [0x4be574], 1
je 0x47263d
cmp ecx, 0xfc
je 0x47267b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47253b
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 0x472584
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 0x4b0a08
add ebx, ecx
push ebx
call fcn.004669f0
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, 0x4b09e8
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 + 0x4c169c]
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.00475540
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4cb3a0]
test eax, eax
je 0x47264e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x472658
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4c169c]
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 0x4765f0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00467500
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.0046ed30
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x476730
push 2
push ebp
push ebx
call fcn.0046ed30
add esp, 0xc
cmp eax, 0xffffffff
je 0x476730
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4766d1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00476dc0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x476676
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0046f040
add esp, 0xc
cmp eax, 0xffffffff
je 0x476692
sub esi, eax
test esi, esi
jle 0x4766aa
jmp 0x476667
call fcn.0046b9c0
cmp dword [eax], 5
jne 0x4766a7
call fcn.0046b9b0
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00476dc0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0046ed30
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x476717
push 0
push ecx
push ebx
call fcn.0046ed30
add esp, 0xc
push ebx
call fcn.00474c50
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 0x476717
call fcn.0046b9b0
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0046b9c0
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.0046ed30
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 0x476870
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x4ca33c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x4768b8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47689c
mov eax, 1
jmp 0x4768b3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x476998
mov eax, 2
mov dword [0x4ca33c], eax
cmp eax, 2
jne 0x4768d8
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 0x4769aa
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4768f3
mov ecx, dword [0x4ca0a0]
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 0x476912
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00467a30
mov esi, eax
add esp, 4
test esi, esi
jne 0x476929
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 0x47698f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x476970
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 0x47698f
push esi
call fcn.00467530
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 0x47699f
push esi
call fcn.00467530
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00467530
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret