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

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 2
mov ebx, ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40831e
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x408319
mov edi, 0x41b568
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x41b568
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..lnk
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x128]
mov edx, dword [esp + 0x124]
mov ecx, ebp
push eax
and ecx, 3
push 0x4201c8
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebx
call fcn.004080f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0x10
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0x10
Function at 0x408360
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push edi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x408380
xor eax, eax
pop edi
ret 0x10
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4083ae
xor eax, eax
pop edi
ret 0x10
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
pop edi
inc eax
ret 0x10

Function at 0x4083d0
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4083f5
xor eax, eax
ret 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40840e
xor eax, eax
ret 0xc
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
ret 0xc

Function at 0x408430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov byte [0x4203d8], 0
push eax
push 0xf003f
push 0
push ecx
push edx
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408472
xor eax, eax
add esp, 8
ret 0xc
mov edx, dword [esp + 0x14]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push 0x4203d8
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4084aa
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
not eax
and eax, 0x4203d8
add esp, 8
ret 0xc

Function at 0x408530
Capabilities:
Copy file
Set file attributes

Disassembly:
sub esp, 0x408
lea eax, [esp + 4]
push esi
mov esi, ecx
push 0x104
push eax
mov ecx, dword [esi + 0x200]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x20c]
lea eax, [esp + 0x10c]
push edx
lea ecx, [esp + 0x310]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00411200
add esp, 0x14
lea ecx, [esp + 0x20c]
lea edx, [esp + 0x10c]
push ecx
push edx
mov ecx, esi
call fcn.00408330
push eax
push str._s_s_s
push 0x4201d0
call fcn.00410970
add esp, 0x14
push 0x4201d0
call fcn.0040d840
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 4
push pe_nt_image_headers32
push 0x4201d0
call esi
push 0
lea eax, [esp + 0xc]
push 0x4201d0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push pe_nt_image_headers32
push 0x4201d0
call esi
mov eax, 0x4201d0
pop esi
add esp, 0x408
ret
Function at 0x408900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push str.MSGTEXT
mov eax, dword [ebp + 4]
lea edi, [ebp + 0x30]
push 0x65
push eax
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4089ab
mov ecx, dword [ebp + 4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 4]
push esi
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x4089ab
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [ebx + eax - 1]
test cl, cl
je 0x40898e
mov ecx, ebx
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 0xff
rep movsb byte es:[edi], byte [esi]
jl 0x408978
mov ebx, 0xff
mov esi, dword [esp + 0x10]
mov byte [ebp + ebx + 0x30], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x100
push eax
push edi
call fcn.00410b40
add esp, 0xc
mov byte [ebp + 0x12f], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x409c30
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0x14]
xor eax, eax
lea ebp, [esi + 0x14]
push edi
test cl, cl
setne al
mov ecx, esi
mov edi, eax
call fcn.00409bd0
test edi, edi
je 0x409c57
inc dword [esi + 0x11c]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x409c64
mov eax, str.IDM_MUSIC
mov ecx, dword [esi]
push str.MIDI
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x409d14
mov edx, dword [esi]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x409d14
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x7d00
mov dword [esp + 0x18], eax
jbe 0x409cc0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push ebp
push 0
push 0x4201c8
push 0x41b694
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x41b690
push ebp
call fcn.00410fc0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add esp, 8
mov edi, eax
push edi
push ecx
push 1
push edx
call fcn.00411470
add esp, 0x10
push edi
call fcn.00411180
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 8]
push ebp
push eax
mov ecx, esi
call fcn.00409d20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x409f70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30c
push ebx
push esi
mov esi, dword [esp + 0x31c]
push edi
cmp byte [esi], 0
je 0x40a0c0
mov al, byte [esi]
movsx ecx, al
sub ecx, 0x2d
je 0x409fad
sub ecx, 4
je 0x409ff8
dec ecx
je 0x409fc2
test al, al
je 0x409fae
cmp al, 0x20
je 0x409fae
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x409f9f
jmp 0x409fae
inc esi
cmp byte [esi], 0
jne 0x409f89
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x40a0b4
push esi
call fcn.00411460
add esp, 4
test eax, eax
je 0x40a0b4
push esi
call fcn.00411460
add esp, 4
test eax, eax
jne 0x409fe1
pop edi
pop esi
pop ebx
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x40a0b4
push 0x41b690
push esi
call fcn.00410fc0
mov edi, eax
add esp, 8
test edi, edi
jne 0x40a02e
push 0x41b690
push esi
call fcn.00410fc0
mov edi, eax
add esp, 8
test edi, edi
je 0x40a01a
mov ecx, dword [esp + 0x31c]
lea eax, [esp + 0xc]
push 0x103
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
push 0x41b55c
push edx
call fcn.00410fc0
add esp, 8
mov ebx, eax
push ebx
call fcn.004115f0
add esp, 4
cmp eax, 0xffffffff
je 0x40a080
push edi
push eax
call fcn.004115c0
add esp, 8
push ebx
call fcn.004115f0
add esp, 4
cmp eax, 0xffffffff
jne 0x40a068
push edi
call fcn.00411180
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push esi
push str._s__2__s
push ecx
call fcn.00410970
add esp, 0x10
lea edx, [esp + 0x110]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30c
ret
Function at 0x40bd70
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x40be60
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40be60
mov ecx, dword [esi + 8]
push edi
push ebp
lea eax, [esp + 0xc]
push ebx
mov ebp, 1
push eax
push ecx
mov dword [esi + 0x40], ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edi, edx
sub ebx, ecx
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push ebp
or eax, 0xffffffff
push ebx
sub edx, ebx
push edi
sub eax, edi
push edx
push eax
push ecx
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 8]
mov dword [esi + 0x48], 0
push edx
push 0x40bb60
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push edx
push ebp
call fcn.00401610
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
add esp, 0x10
push eax
push ecx
push edx
push ebp
call fcn.00401610
add esp, 0x10
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push ebp
push ebx
push edi
push eax
push ecx
push edx
mov dword [esi + 0x48], 1
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 8]
push ebp
push ebp
push eax
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esi + 0x40], ebp
pop ebx
pop ebp
pop edi
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0040ba10
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
add esp, 0x50
ret 4
Function at 0x40c3b0
Capabilities:
Find taskbar

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
mov edx, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
xor ebp, ebp
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
push edi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi], 0x418258
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movsx ecx, ax
push ecx
call fcn.004104e0
add esp, 4
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
push ebp
cmp ebx, ebp
je 0x40c470
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebp
push 0xa
push edi
mov dword [esi + 0x10], eax
call ebp
push edi
push 0
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
sub eax, edx
cmp eax, ecx
jl 0x40c496
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
sub ecx, edx
add eax, ecx
mov dword [esi + 0x14], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebx
push 0xa
push edi
mov dword [esi + 0x10], eax
call ebx
push edi
push ebp
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x40d800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40d840
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x318
mov edx, dword [esp + 0x31c]
lea eax, [esp + 0x214]
lea ecx, [esp]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push eax
push ecx
push edx
call fcn.00411200
add esp, 0x14
lea eax, [esp + 0x224]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ebx
push ebx
push eax
push ecx
push edx
call fcn.00411380
mov al, byte [esp + 0x30]
add esp, 0x14
xor esi, esi
cmp al, bl
je 0x40d909
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp esi, 3
jle 0x40d8d8
mov al, byte [esp + esi + 0x1c]
push eax
call fcn.0040d820
add esp, 4
test eax, eax
je 0x40d8d8
lea ecx, [esp + 0x120]
mov byte [esp + esi + 0x120], bl
push ecx
call edi
cmp eax, 0xffffffff
jne 0x40d8d8
lea edx, [esp + 0x120]
push ebx
push edx
call ebp
test eax, eax
je 0x40d8fc
mov al, byte [esp + esi + 0x1c]
mov byte [esp + esi + 0x120], al
mov al, byte [esp + esi + 0x1d]
inc esi
cmp al, bl
jne 0x40d89d
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x318
ret
Function at 0x411430
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x411447
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411449
xor eax, eax
test eax, eax
je 0x41145a
push eax
call fcn.00414d00
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4119a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418930
push 0x414f98
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 [0x421fe0], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x421fdc], ecx
shl ecx, 8
add ecx, edx
mov dword [0x421fd8], ecx
shr eax, 0x10
mov dword [0x421fd4], eax
call fcn.00413500
test eax, eax
jne 0x411a0a
push 0x1c
call fcn.00411b40
add esp, 4
mov dword [ebp - 4], 0
call fcn.004144a0
call fcn.00414be0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4234d4], eax
call fcn.00415600
mov dword [0x421fac], eax
test eax, eax
je 0x411a3d
mov eax, dword [0x4234d4]
test eax, eax
jne 0x411a47
push 0xffffffffffffffff
call fcn.004133b0
add esp, 4
call fcn.00415350
call fcn.00415260
call fcn.00413380
mov esi, dword [0x4234d4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x411b26
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x411a8e
test al, al
je 0x411a8e
and eax, 0xff
push eax
call fcn.00415200
add esp, 4
test eax, eax
je 0x411a68
inc esi
mov dword [ebp - 0x64], esi
jmp 0x411a68
cmp byte [esi], 0x22
jne 0x411a97
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x411aa7
cmp al, 0x20
ja 0x411aa7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x411a97
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x411ac8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x411acd
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.004133b0
jmp 0x411b0b
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 0x411a97
inc esi
mov dword [ebp - 0x64], esi
jmp 0x411b26
Function at 0x4133f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x422010]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x41340f
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 [0x42200c], 1
mov byte [0x422008], bl
jne 0x413469
mov ecx, dword [0x4234cc]
test ecx, ecx
je 0x413457
mov esi, dword [0x4234c8]
sub esi, 4
cmp esi, ecx
jb 0x413457
mov eax, dword [esi]
test eax, eax
je 0x413450
call eax
mov ecx, dword [0x4234cc]
sub esi, 4
cmp esi, ecx
jae 0x413442
push 0x41a028
push 0x41a020
call fcn.004134a0
add esp, 8
push 0x41a034
push 0x41a02c
call fcn.004134a0
add esp, 8
test ebx, ebx
jne 0x413490
push ebp
mov dword [0x422010], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x414d70
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4234c0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x414f1d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x4233c0]
lea edi, [ecx*4 + 0x4233c0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x414f1d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x414dde
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x414def
push 2
push ebp
push eax
call fcn.004143e0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x414f4e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x414e99
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x414e4a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x414e37
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 0x414e1a
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 0x414f3f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x414e95
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x414e16
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x414f0e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x414ee2
cmp eax, 5
jne 0x414ecb
mov dword [0x421fcc], eax
mov dword [0x421fc8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00414d00
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 0x414f02
cmp byte [ebp], 0x1a
jne 0x414f02
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x421fc8], 0x1c
jmp 0x414f27
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x421fc8], 9
pop edi
pop esi
pop ebp
mov dword [0x421fcc], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x414e95
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 0x414f7f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x414e99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x414e99
Function at 0x415600
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x422250]
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 0x415642
call edi
mov esi, eax
test esi, esi
je 0x41562c
mov eax, 1
jmp 0x41563d
call ebp
mov ebx, eax
test ebx, ebx
je 0x41574f
mov eax, 2
mov dword [0x422250], eax
cmp eax, 1
jne 0x4156e2
test esi, esi
jne 0x41565b
call edi
mov esi, eax
test esi, esi
je 0x41574f
cmp word [esi], 0
mov eax, esi
je 0x415675
add eax, 2
cmp word [eax], 0
jne 0x415663
add eax, 2
cmp word [eax], 0
jne 0x415663
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 0x4156d4
push edi
call fcn.00410c90
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4156d4
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 0x4156c6
push ebx
call fcn.00410c40
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 0x41574f
test ebx, ebx
jne 0x4156f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x41574f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x41570b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4156fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4156fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00410c90
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41572d
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