joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x409f5c
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x409f2b
jmp 0x409f5c
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x409f4c
pop esi
pop ebp
ret

Function at 0x40ae7c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40aeb1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40aedb
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40aedb
test edi, edi
je 0x40aea8
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40aea8
test edi, edi
je 0x40aee3
mov eax, edi
jmp 0x40aeaa
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40aeaa
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_cen_w32_d_000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040ea73
add esp, 0xc
int3
Function at 0x40eaa7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestCasting.exe_gMozillaPoisonSize], eax
call fcn.0040ae7c
pop ecx
mov ecx, dword [sym.TestCasting.exe_gMozillaPoisonSize]
mov dword [sym.TestCasting.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40eadf
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestCasting.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406010
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
push ebx
mov ebx, dword [0x4121dc]
push esi
sub ebx, 0x58
push edi
test eax, eax
mov dword [esp + 0xc], 0
jne 0x406095
mov eax, dword [0x41217c]
push 0x40f31c
push 0x8a
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x41217c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 4]
mov esi, eax
mov ecx, edx
mov edi, ebx
shl ecx, 7
add ecx, edx
lea edx, [ecx + ecx*2]
lea ecx, [edx*4 + 0x58]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [0x4123a0], ecx
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
push 0
push pe_nt_image_headers32
push 3
push 0
mov ecx, 0x16
mov esi, ebx
lea edi, [esp + 0x20]
push 0
push 0x80000000
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40612f
mov eax, dword [0x4121dc]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0xc]
push 0
push edx
add eax, 0xffffffa8
push 0x58
push eax
push esi
call edi
cmp dword [ebx], 0x45564143
jne 0x406122
lea ecx, [esp + 0xc]
push 0
push ecx
mov ecx, dword [ebx + 4]
mov eax, ecx
shl eax, 7
add eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [0x4121dc]
shl edx, 2
push edx
push eax
push esi
call edi
mov ecx, dword [ebx + 4]
push esi
mov dword [0x4123a0], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
mov ecx, 0x16
lea esi, [esp + 0x10]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
Function at 0x4064a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x41217c]
sub esp, 0x30
and eax, 0xffff
push ebx
push esi
push edi
push 0x40f324
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x41217c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push edx
push ecx
push eax
call fcn.00401d70
add esp, 0x10
test eax, eax
jne 0x4064fa
pop edi
pop esi
pop ebx
add esp, 0x30
ret
xor edx, edx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], edx
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], edx
mov dword [esp + 0x2c], pe_nt_image_headers32
mov dword [esp + 0x30], edx
push 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [0x411bac]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x30]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x406556
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30
ret
lea edx, [esp + 0x20]
push 0
push edx
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x1c]
mov eax, dword [esp + 0x4c]
push edx
lea edx, [esp + 0x24]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x20]
mov edx, dword [edx]
push edx
push 0
push eax
call dword [ecx + 0x2c]
test eax, eax
je 0x40658c
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
call dword [ecx + 0x4c]
test eax, eax
je 0x4065d1
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
xor edi, edi
mov dword [ebx], eax
lea esi, [ebx + 4]
mov eax, dword [0x411bac]
mov edx, dword [ebx]
push esi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x406608
inc edi
add esi, 4
cmp edi, 3
jne 0x4065e0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x30
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x407be0
Capabilities:
Enumerate files on windows

Disassembly:
push esi
push 0x280
call fcn.00408cc0
mov ecx, dword [str.Original_Levels]
mov dword [0x41f6a8], eax
add eax, 0x2c
add esp, 4
mov dword [eax], ecx
mov edx, dword [0x40f338]
mov dword [eax + 4], edx
mov ecx, dword [0x40f33c]
mov dword [eax + 8], ecx
mov edx, dword [0x40f340]
mov dword [eax + 0xc], edx
mov eax, dword [0x41f6a8]
add eax, 0x140
mov dword [0x41f698], 1
push eax
push str..cav
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407cc9
mov ecx, dword [0x41f6a8]
push edi
push 0x3c0
push ecx
mov dword [0x41f698], 2
call fcn.00408fa0
mov ecx, dword [0x41f698]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esp, 8
mov dword [0x41f6a8], eax
lea edx, [ecx + ecx*4]
shl edx, 6
add edx, eax
push edx
push esi
call edi
test eax, eax
je 0x407cc1
mov eax, dword [0x41f698]
mov ecx, dword [0x41f6a8]
inc eax
mov dword [0x41f698], eax
inc eax
lea eax, [eax + eax*4]
shl eax, 6
push eax
push ecx
call fcn.00408fa0
mov ecx, dword [0x41f698]
add esp, 8
mov dword [0x41f6a8], eax
lea edx, [ecx + ecx*4]
shl edx, 6
add edx, eax
push edx
push esi
call edi
test eax, eax
jne 0x407c84
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
ret

Function at 0x407dd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x208
lea eax, [esp]
lea ecx, [esp + 8]
push esi
push eax
push ecx
push 0x200
push 0
push str.digjim.exe
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x407e01
pop esi
add esp, 0x208
ret
mov edx, dword [esp + 4]
mov eax, dword [str.settings.dat]
push 0
push pe_nt_image_headers32
mov dword [edx], eax
mov ecx, dword [0x40f348]
push 3
push 0
mov dword [edx + 4], ecx
mov eax, dword [0x40f34c]
push 0
push 0x80000000
mov dword [edx + 8], eax
mov cl, byte [0x40f350]
mov byte [edx + 0xc], cl
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407e54
xor eax, eax
pop esi
add esp, 0x208
ret
lea eax, [esp + 8]
push 0
push eax
push 0x14
push 0x4121b8
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x208
ret

Function at 0x407e80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x208
lea eax, [esp]
lea ecx, [esp + 8]
push esi
push eax
push ecx
push 0x200
push 0
push str.digjim.exe
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x407eb1
pop esi
add esp, 0x208
ret
mov edx, dword [esp + 4]
mov eax, dword [str.settings.dat]
push 0
push pe_nt_image_headers32
mov dword [edx], eax
mov ecx, dword [0x40f348]
push 2
push 0
mov dword [edx + 4], ecx
mov eax, dword [0x40f34c]
push 0
push 0x40000000
mov dword [edx + 8], eax
mov cl, byte [0x40f350]
mov byte [edx + 0xc], cl
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407f04
xor eax, eax
pop esi
add esp, 0x208
ret
lea eax, [esp + 8]
push 0
push eax
push 0x14
push 0x4121b8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x208
ret
Function at 0x408760
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x208
lea eax, [esp + 4]
lea ecx, [esp + 8]
push ebx
push esi
push edi
push eax
push ecx
xor ebx, ebx
push 0x200
push ebx
push str.regcode.dat
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
cmp eax, ebx
jne 0x40879b
mov dword [0x41f69c], ebx
pop edi
pop esi
pop ebx
add esp, 0x208
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push pe_nt_image_headers32
push 3
push ebx
push ebx
lea edx, [esp + 0x28]
push 0x80000000
push edx
mov byte [esp + eax + 0x30], bl
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4087d2
mov dword [0x41f69c], ebx
pop edi
pop esi
pop ebx
add esp, 0x208
ret
lea eax, [esp + 0xc]
push ebx
push eax
push 4
push 0x41f69c
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [esp + 0x14]
push 0x200
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, ebx
jne 0x408813
mov dword [0x41f69c], ebx
pop edi
pop esi
pop ebx
add esp, 0x208
ret
mov cl, byte [esp + eax + 0x13]
lea eax, [esp + eax + 0x14]
cmp cl, 0x5c
je 0x408833
mov edx, dword [str.oopext]
mov ecx, dword [0x40f360]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x40884f
mov edx, dword [0x40f354]
mov cx, word [0x40f358]
mov dword [eax], edx
mov dl, byte [0x40f35a]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push ebx
push pe_nt_image_headers32
push 3
push ebx
push ebx
lea eax, [esp + 0x28]
push 0x80000000
push eax
call edi
cmp eax, 0xffffffff
jne 0x40887a
mov dword [0x41f69c], ebx
pop edi
pop esi
pop ebx
add esp, 0x208
ret
push eax
call esi
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x409140
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e0b0
push 0x40af48
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 [0x41f720], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x41f71c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x41f718], ecx
shr eax, 0x10
mov dword [0x41f714], eax
call fcn.00409310
test eax, eax
jne 0x4091aa
push 0x1c
call fcn.004092e0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040ac50
call fcn.0040ac40
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41fb10], eax
call fcn.0040a810
mov dword [0x41f6e0], eax
test eax, eax
je 0x4091dd
mov eax, dword [0x41fb10]
test eax, eax
jne 0x4091e7
push 0xffffffffffffffff
call fcn.0040a170
add esp, 4
call fcn.0040a560
call fcn.0040a470
call fcn.0040a140
mov esi, dword [0x41fb10]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4092c6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40922e
test al, al
je 0x40922e
and eax, 0xff
push eax
call fcn.0040a410
add esp, 4
test eax, eax
je 0x409208
inc esi
mov dword [ebp - 0x64], esi
jmp 0x409208
cmp byte [esi], 0x22
jne 0x409237
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x409247
cmp al, 0x20
ja 0x409247
inc esi
mov dword [ebp - 0x64], esi
jmp 0x409237
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x409268
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40926d
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.0040a170
jmp 0x4092ab
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 0x409237
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4092c6

Function at 0x40a1b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x41f750]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40a1cf
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 [0x41f74c], 1
mov byte [0x41f748], bl
jne 0x40a229
mov ecx, dword [0x41fb08]
test ecx, ecx
je 0x40a217
mov esi, dword [0x41fb04]
sub esi, 4
cmp esi, ecx
jb 0x40a217
mov eax, dword [esi]
test eax, eax
je 0x40a210
call eax
mov ecx, dword [0x41fb08]
sub esi, 4
cmp esi, ecx
jae 0x40a202
push 0x40f014
push 0x40f010
call fcn.0040a260
add esp, 8
push 0x40f01c
push 0x40f018
call fcn.0040a260
add esp, 8
test ebx, ebx
jne 0x40a250
push ebp
mov dword [0x41f750], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x40a810
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x41f860]
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 0x40a852
call edi
mov esi, eax
test esi, esi
je 0x40a83c
mov eax, 1
jmp 0x40a84d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40a95f
mov eax, 2
mov dword [0x41f860], eax
cmp eax, 1
jne 0x40a8f2
test esi, esi
jne 0x40a86b
call edi
mov esi, eax
test esi, esi
je 0x40a95f
cmp word [esi], 0
mov eax, esi
je 0x40a885
add eax, 2
cmp word [eax], 0
jne 0x40a873
add eax, 2
cmp word [eax], 0
jne 0x40a873
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 0x40a8e4
push edi
call fcn.00408cc0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a8e4
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 0x40a8d6
push ebx
call fcn.00408c30
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 0x40a95f
test ebx, ebx
jne 0x40a903
call ebp
mov ebx, eax
test ebx, ebx
je 0x40a95f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40a91b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40a90b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40a90b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00408cc0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40a93d
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 0x40b060
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x411588
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40b084
add eax, 8
inc ebp
cmp eax, 0x411618
jb 0x40b075
cmp ecx, dword [ebp*8 + 0x411588]
jne 0x40b22b
mov eax, dword [0x41f6e8]
cmp eax, 1
je 0x40b1ed
test eax, eax
jne 0x40b0b0
cmp dword [0x40f3a8], 1
je 0x40b1ed
cmp ecx, 0xfc
je 0x40b22b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b0eb
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 0x40b134
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 0x40e3d4
add ebx, ecx
push ebx
call fcn.0040c050
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, 0x40e3b4
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 + 0x41158c]
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.0040bfc0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x41fa00]
test eax, eax
je 0x40b1fe
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40b208
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41158c]
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 0x401390
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
push edi
xor esi, esi
push esi
call fcn.0040b780
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
cmp dword [0x441764], esi
je 0x40141a
push esi
call fcn.0040cff0
mov eax, dword [0x441760]
add esp, 4
cmp eax, esi
je 0x4013e5
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x441764]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4013e5
mov ecx, dword [0x441764]
push ecx
call edi
jmp 0x401414
mov eax, dword [0x441764]
cmp eax, esi
je 0x40141a
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x401414
mov eax, dword [esp + 8]
mov ecx, dword [0x441764]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x441764], esi
mov eax, dword [0x441760]
cmp eax, esi
je 0x40142c
push eax
call edi
mov dword [0x441760], esi
mov eax, dword [0x44175c]
cmp eax, esi
je 0x40143e
push eax
call edi
mov dword [0x44175c], esi
pop edi
pop esi
pop ecx
ret