joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401620
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41164a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
mov esi, ecx
push 0x14
call fcn.004097e0
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x218], 0
je 0x401664
mov ecx, eax
call fcn.004019b0
jmp 0x401666
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x218], 0xffffffff
test eax, eax
sete cl
test cl, cl
mov dword [esi + 0x2c], eax
je 0x401697
xor eax, eax
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop esi
add esp, 0x218
ret
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push str.adisynth.dat
push ecx
lea edx, [esp + 0x114]
push str._s_system_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x10c]
lea ecx, [esi + 8]
push 0
push eax
call fcn.00401040
test eax, eax
jne 0x4016f3
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop esi
add esp, 0x218
ret
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
push eax
call fcn.00401a90
test eax, eax
jne 0x401721
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop esi
add esp, 0x218
ret
push 0xc
call fcn.004097e0
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x218], 1
je 0x40174f
push 0
push 0
push 0
push 0
mov ecx, eax
call fcn.00401300
jmp 0x401751
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x218], 0xffffffff
test eax, eax
sete cl
test cl, cl
mov dword [esi + 0x24], eax
je 0x401782
xor eax, eax
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop esi
add esp, 0x218
ret
push 0x14
mov dword [esi + 0x30], 1
call fcn.004097e0
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x218], 2
je 0x4017b6
push 0
push 0
push 0
push esi
mov ecx, eax
call fcn.00401c10
jmp 0x4017b8
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x218], 0xffffffff
test eax, eax
sete cl
test cl, cl
mov dword [esi + 4], eax
je 0x4017e9
xor eax, eax
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop esi
add esp, 0x218
ret
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 4]
push 0xf
call fcn.00401d00
mov ecx, dword [esi + 0x24]
call fcn.004013d0
mov ecx, dword [esi + 0x2c]
push eax
call fcn.00401b00
mov ecx, dword [esp + 0x210]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x218
ret
Function at 0x401c10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x411688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.00401440
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0xc]
mov dword [esi + 0x10], eax
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x30]
push 0x401cf0
push eax
push ecx
mov dword [esp + 0x28], 0
mov dword [esi], 0x412038
call fcn.00409890
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x401c8f
cmp eax, 0xffffffff
je 0x401c8f
mov dword [esi + 8], 0
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0x10
call fcn.00409870
mov eax, dword [eax]
mov ecx, esi
push eax
mov dword [esi + 8], eax
call fcn.00401490
mov ecx, dword [esp + 8]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x409890
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.0040ad30
mov esi, eax
add esp, 8
test esi, esi
je 0x4098f0
push esi
call fcn.0040a750
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 0x409910
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x409908
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.0040a9b0
add esp, 4
test edi, edi
je 0x409906
push edi
call fcn.004097f0
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x409a00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4123e0
push 0x40b1a8
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 [0x4181d4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4181d0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4181cc], ecx
shr eax, 0x10
mov dword [0x4181c8], eax
call fcn.0040bd00
test eax, eax
jne 0x409a6a
push 0x1c
call fcn.00409bb0
add esp, 4
call fcn.0040a6f0
test eax, eax
jne 0x409a7d
push 0x10
call fcn.00409bb0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040baf0
call fcn.0040bae0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4c1c8c], eax
call fcn.0040b680
mov dword [0x418148], eax
test eax, eax
je 0x409ab0
mov eax, dword [0x4c1c8c]
test eax, eax
jne 0x409aba
push 0xffffffffffffffff
call fcn.0040ae10
add esp, 4
call fcn.0040b3d0
call fcn.0040b2e0
call fcn.0040ade0
mov esi, dword [0x4c1c8c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x409b99
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x409b01
test al, al
je 0x409b01
and eax, 0xff
push eax
call fcn.0040b280
add esp, 4
test eax, eax
je 0x409adb
inc esi
mov dword [ebp - 0x64], esi
jmp 0x409adb
cmp byte [esi], 0x22
jne 0x409b0a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x409b1a
cmp al, 0x20
ja 0x409b1a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x409b0a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x409b3b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x409b40
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 0x409b7e
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 0x409b0a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x409b99
Function at 0x40a6f0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0040aa20
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x414ae0], eax
je 0x40a748
push 0x74
push 1
call fcn.0040ad30
mov esi, eax
add esp, 8
test esi, esi
je 0x40a748
mov eax, dword [0x414ae0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40a748
push esi
call fcn.0040a750
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 0x40a770
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 [0x414ae0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40a7de
push 0x74
push 1
call fcn.0040ad30
mov esi, eax
add esp, 8
test esi, esi
je 0x40a7d4
mov ecx, dword [0x414ae0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40a7d4
push esi
call fcn.0040a750
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.00409bb0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

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

Disassembly:
mov eax, dword [0x414ae0]
cmp eax, 0xffffffff
je 0x40a88c
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40a814
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x40a87d
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40a824
push eax
call fcn.0040a9b0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40a834
push eax
call fcn.0040a9b0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40a844
push eax
call fcn.0040a9b0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40a854
push eax
call fcn.0040a9b0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40a864
push eax
call fcn.0040a9b0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40a874
push eax
call fcn.0040a9b0
add esp, 4
push esi
call fcn.0040a9b0
add esp, 4
mov eax, dword [0x414ae0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x40ae50
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0040af10
mov eax, dword [0x418204]
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 [0x418200], 1
mov byte [0x4181fc], bl
jne 0x40aece
mov ecx, dword [0x4c1c88]
test ecx, ecx
je 0x40aebc
mov esi, dword [0x4c1c84]
sub esi, 4
cmp esi, ecx
jb 0x40aebc
mov eax, dword [esi]
test eax, eax
je 0x40aeb5
call eax
mov ecx, dword [0x4c1c88]
sub esi, 4
cmp esi, ecx
jae 0x40aea7
push 0x414020
push 0x414018
call fcn.0040af30
add esp, 8
push 0x41402c
push 0x414024
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 [0x418204], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40b680
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x418310]
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 0x40b6c2
call edi
mov esi, eax
test esi, esi
je 0x40b6ac
mov eax, 1
jmp 0x40b6bd
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b7cf
mov eax, 2
mov dword [0x418310], eax
cmp eax, 1
jne 0x40b762
test esi, esi
jne 0x40b6db
call edi
mov esi, eax
test esi, esi
je 0x40b7cf
cmp word [esi], 0
mov eax, esi
je 0x40b6f5
add eax, 2
cmp word [eax], 0
jne 0x40b6e3
add eax, 2
cmp word [eax], 0
jne 0x40b6e3
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 0x40b754
push edi
call fcn.0040ac60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40b754
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 0x40b746
push ebx
call fcn.0040a9b0
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 0x40b7cf
test ebx, ebx
jne 0x40b773
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b7cf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40b78b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b77b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b77b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040ac60
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40b7ad
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 0x40bd80
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x414d50
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40bda4
add eax, 8
inc ebp
cmp eax, 0x414de0
jb 0x40bd95
cmp ecx, dword [ebp*8 + 0x414d50]
jne 0x40bf4b
mov eax, dword [0x418150]
cmp eax, 1
je 0x40bf0d
test eax, eax
jne 0x40bdd0
cmp dword [0x414ac4], 1
je 0x40bf0d
cmp ecx, 0xfc
je 0x40bf4b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40be0b
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 0x40be54
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 0x41273c
add ebx, ecx
push ebx
call fcn.0040d1d0
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, 0x41271c
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 + 0x414d54]
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.0040d140
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4c1b80]
test eax, eax
je 0x40bf1e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40bf28
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x414d54]
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 0x4111a0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x418508]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x4111e8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4111c8
mov eax, 2
jmp 0x4111e3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4112c8
mov eax, 1
mov dword [0x418508], eax
cmp eax, 2
jne 0x411208
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 0x4112da
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x411223
mov ecx, dword [0x418468]
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 0x411242
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.0040ac60
mov esi, eax
add esp, 4
test esi, esi
jne 0x411259
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 0x4112bf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x4112a0
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 0x4112bf
push esi
call fcn.0040a9b0
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 0x4112cf
push esi
call fcn.0040a9b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040a9b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4011f2
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
lea eax, [ebp - 0x9c]
push edi
push eax
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x8c], 2
sete al
xor ebx, ebx
mov byte [ebp - 1], al
cmp al, bl
je 0x401232
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x401238
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [ebp - 1], bl
mov esi, eax
push ebx
push esi
je 0x401248
call fcn.0040106f
jmp 0x40124d
call section..text
cmp byte [ebp - 1], bl
pop ecx
pop ecx
mov dword [ebp - 8], eax
push eax
push esi
je 0x401260
call fcn.0040106f
jmp 0x401265
call section..text
pop ecx
cmp byte [ebp - 1], bl
pop ecx
mov edi, eax
push edi
push dword [ebp - 8]
push esi
je 0x40127a
call 0x40eef0
jmp 0x40127f
call fcn.004010ea
add esp, 0xc
cmp byte [ebp - 1], bl
push 1
push ebx
je 0x401299
lea ecx, [esi + edi*2]
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4012a5
add edi, esi
push edi
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x40130d
cmp byte [ebp - 1], bl
push ebx
lea eax, [ebp - 8]
push ebx
push eax
push 0x400
je 0x4012e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x40
push str.autorunner___I2RD
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x401304
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x40
push 0x405020
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x401400
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x402bf8
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 [0x407510], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40750c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x407508], ecx
shr eax, 0x10
mov dword [0x407504], eax
call fcn.00401690
test eax, eax
jne 0x40146a
push 0x1c
call fcn.004015a0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402900
call fcn.004028f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4078d4], eax
call fcn.004024c0
mov dword [0x4074e0], eax
test eax, eax
je 0x40149d
mov eax, dword [0x4078d4]
test eax, eax
jne 0x4014a7
push 0xffffffffffffffff
call fcn.00401e20
add esp, 4
call fcn.00402210
call fcn.00402120
call fcn.00401df0
mov esi, dword [0x4078d4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401586
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4014ee
test al, al
je 0x4014ee
and eax, 0xff
push eax
call fcn.004020c0
add esp, 4
test eax, eax
je 0x4014c8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4014c8
cmp byte [esi], 0x22
jne 0x4014f7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401507
cmp al, 0x20
ja 0x401507
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4014f7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401528
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40152d
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.00401e20
jmp 0x40156b
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 0x4014f7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401586

Function at 0x401e60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x407540]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401e7f
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 [0x40753c], 1
mov byte [0x407538], bl
jne 0x401ed9
mov ecx, dword [0x4078c8]
test ecx, ecx
je 0x401ec7
mov esi, dword [0x4078c4]
sub esi, 4
cmp esi, ecx
jb 0x401ec7
mov eax, dword [esi]
test eax, eax
je 0x401ec0
call eax
mov ecx, dword [0x4078c8]
sub esi, 4
cmp esi, ecx
jae 0x401eb2
push 0x405014
push 0x405010
call fcn.00401f10
add esp, 8
push 0x40501c
push 0x405018
call fcn.00401f10
add esp, 8
test ebx, ebx
jne 0x401f00
push ebp
mov dword [0x407540], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4024c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x407650]
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 0x402502
call edi
mov esi, eax
test esi, esi
je 0x4024ec
mov eax, 1
jmp 0x4024fd
call ebp
mov ebx, eax
test ebx, ebx
je 0x40260f
mov eax, 2
mov dword [0x407650], eax
cmp eax, 1
jne 0x4025a2
test esi, esi
jne 0x40251b
call edi
mov esi, eax
test esi, esi
je 0x40260f
cmp word [esi], 0
mov eax, esi
je 0x402535
add eax, 2
cmp word [eax], 0
jne 0x402523
add eax, 2
cmp word [eax], 0
jne 0x402523
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 0x402594
push edi
call fcn.00401350
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402594
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 0x402586
push ebx
call 0x40ef0e
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 0x40260f
test ebx, ebx
jne 0x4025b3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40260f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4025cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4025bb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4025bb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00401350
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4025ed
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