joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41354d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
call fcn.004136d9
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0x10], 0
je 0x413573
mov dword [ebp - 0x1c], 2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41358b
xor eax, eax
jmp 0x4136d2
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4135a3
xor eax, eax
jmp 0x4136d2
push 0xfffffffffffffff4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov word [ebp - 0x74], ax
movsx eax, word [ebp - 0x74]
cmp eax, 0x514
je 0x4135c8
xor eax, eax
jmp 0x4136d2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
cmp eax, 0x23
jle 0x4135eb
xor eax, eax
jmp 0x4136d2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x50
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
push str.static
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x413631
xor eax, eax
jmp 0x4136d2
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 0xf
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 7
je 0x413659
xor eax, eax
jmp 0x4136d2
mov eax, dword [ebp + 0x10]
mov dword [0x421b8c], eax
push 0
push dword [0x4232e0]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x50000000
push str.CutWinName
push 0x421bb4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4136bf
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
push dword [ebp - 0x78]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x78]
jmp 0x4136d2
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x415c95
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x415cb2
xor eax, eax
jmp 0x415d00
push 0x105
lea eax, [ebp - 0x108]
push eax
push 0x489
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
add eax, 0x30f
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
mov dword [eax + 0x62c], 1
mov eax, 1
jmp 0x415d00
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415d2c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
cmp dword [0x421e90], 0
je 0x415d4c
mov eax, 1
jmp 0x415f08
push 0x1003
push 0x9c4
call fcn.00418ee0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x415d72
mov eax, 0xffffffff
jmp 0x415f08
push 0x32c
push dword [ebp - 0xc]
call fcn.00419550
mov dword [0x421e8c], eax
cmp dword [0x421e8c], 0
jne 0x415d9b
mov eax, 0xffffffff
jmp 0x415f08
mov eax, dword [ebp + 8]
mov ecx, dword [0x421e8c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x421e8c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x421e8c]
mov byte [eax + 0x226], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x421e8c]
mov dword [ecx], eax
mov eax, dword [0x421e8c]
mov dword [eax + 4], 0
mov eax, dword [0x421e8c]
mov dword [eax + 0x18], 0
mov eax, dword [0x421e8c]
mov dword [eax + 0x14], 0
mov eax, dword [0x421e8c]
mov dword [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 6
je 0x415e17
cmp dword [ebp + 8], 7
jne 0x415e41
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xffff
movzx eax, ax
movzx eax, ah
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jge 0x415e41
mov eax, dword [0x421e8c]
mov dword [eax + 0x10], 0
push dword [ebp + 0x10]
mov eax, dword [0x421e8c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x14]
mov eax, dword [0x421e8c]
add eax, 0x121
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.ISMSG16_REBOOT
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421ea4], eax
push str.ISMSG16_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421ea8], eax
push str.ISMSG32_REBOOT
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421eac], eax
push str.ISMSG32_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421eb0], eax
push str.ISMSG32_DELETEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421eb4], eax
push str.ISMSG32_RENAMEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421eb8], eax
push str.ISMSG32_STRINGLEN
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421ebc], eax
push str.ISMSG32_CHARS
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421ec0], eax
push str.ISMSG32_DOFILEOP
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421ec4], eax
mov dword [0x421e90], 1
xor eax, eax
jmp 0x415f08
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x41666a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push dword [ebp + 8]
push str.file_d
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x421e8c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x108]
push eax
push 0x421f88
push str.main
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x421fa0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4166dd
xor eax, eax
jmp 0x4166fd
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00416702
add esp, 8
mov eax, 1
jmp 0x4166fd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416702
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00416082
mov dword [ebp - 0x214], 0
jmp 0x41672b
inc dword [ebp - 0x214]
cmp dword [ebp - 0x214], 0x64
jge 0x4167af
push dword [ebp - 0x214]
push str.alt_d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x421e8c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x421fb8
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.NOWAYVALUEXX
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41679e
jmp 0x4167af
lea eax, [ebp - 0x210]
push eax
call fcn.00416082
jmp 0x416725
mov eax, 1
jmp 0x4167b9
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
push ebx
push esi
push edi
push 0x105
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x422008
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.0040d248
push str.tmpdelis.bat
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040d248
push 0x422028
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040d248
push str.winstart.isk
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040d248
mov eax, dword [0x421e8c]
mov dword [eax + 0x14], 0
mov eax, dword [0x421e8c]
mov dword [eax + 0x18], 0
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00416a63
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00416b6c
add esp, 0x10
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00416c9e
add esp, 0xc
mov eax, 1
jmp 0x416a5e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41733a
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor eax, eax
jmp 0x417354
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417479
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x20
jae 0x4174aa
xor eax, eax
jmp 0x41753c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1b58
mov dword [ebp - 4], eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41750d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 4]
jae 0x41750d
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x28], eax
jmp 0x4174c7
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x417535
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
jmp 0x41753c
xor eax, eax
jmp 0x41753c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41783e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push dword [eax + 0x21c]
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.0040b3af
push dword [ebp + 8]
call fcn.00417f07
add esp, 4
mov dword [ebp - 0x368], 1
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x110], 1
cmp dword [ebp - 0x368], 0
je 0x4179c2
cmp dword [ebp - 0x114], 0
je 0x4178f1
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x4178ec
mov dword [ebp - 0x110], 0
jmp 0x4179c2
jmp 0x417932
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x417932
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x110], 0
jmp 0x4179c2
mov dword [ebp - 0x114], 0
mov eax, dword [ebp + 8]
test byte [eax + 4], 2
je 0x417956
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov eax, dword [ebp + 8]
test byte [eax + 4], 4
je 0x41797f
test byte [ebp - 0x258], 0x10
je 0x41797a
mov dword [ebp - 0x368], 0
jmp 0x4179bd
test byte [ebp - 0x258], 0x10
jne 0x4179bd
test byte [ebp - 0x258], 0xa0
jne 0x4179b3
cmp dword [ebp - 0x258], 0
je 0x4179b3
test byte [ebp - 0x258], 1
je 0x4179bd
mov dword [ebp - 0x368], 0
jmp 0x41789c
cmp dword [ebp - 0x110], 0
je 0x417a67
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push dword [ebp + 0xc]
call fcn.0040b491
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x105
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [ebp - 0x25c]
shl eax, 0x10
movzx ecx, word [ebp - 0x36c]
or eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20c], eax
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x210], eax
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x21c]
mov dword [ecx + 0x10c], eax
mov eax, dword [ebp + 0xc]
add eax, 0x105
jmp 0x417ad3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x224], 0
je 0x417acc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x224]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x364]
push eax
call fcn.0040c317
test eax, eax
je 0x417ab4
lea eax, [ebp - 0x364]
push eax
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x220]
push dword [ebp + 8]
call dword [ebp - 4]
jmp 0x417acc
lea eax, [ebp - 0x364]
push eax
push 2
mov eax, dword [ebp + 8]
push dword [eax + 0x220]
push dword [ebp + 8]
call dword [ebp - 4]
xor eax, eax
jmp 0x417ad3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417f07
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
jne 0x417f27
xor eax, eax
jmp 0x4180ae
lea eax, [ebp - 0x354]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x21c]
call fcn.0040b3af
push 1
lea eax, [ebp - 0x354]
push eax
call fcn.0040b491
push 0x422184
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x417f8a
xor eax, eax
jmp 0x4180ae
mov eax, dword [ebp + 8]
test byte [eax + 4], 2
je 0x417fa4
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
cmp dword [ebp - 0x10c], 0
je 0x4180a4
test byte [ebp - 0x24c], 0x10
je 0x418054
movsx eax, byte [ebp - 0x220]
cmp eax, 0x2e
je 0x418054
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x354]
push eax
call fcn.0040b3af
push 1
lea eax, [ebp - 0x108]
push eax
call fcn.0040b491
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea eax, [ebp - 0x108]
push eax
call fcn.0040b491
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
push dword [eax + 0x114]
call fcn.00419a70
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
push dword [eax + 0x114]
call fcn.00419b20
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x418085
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x4180ae
mov eax, dword [ebp + 8]
test byte [eax + 4], 2
je 0x41809f
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
jmp 0x417fa4
mov eax, 1
jmp 0x4180ae
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a2a0
Capabilities:
Get file size

Disassembly:
sub esp, 0x8c
push ebx
push esi
mov esi, dword [esp + 0x98]
push edi
push ebp
test esi, esi
jne 0x41a2bc
xor eax, eax
jmp 0x41a368
cmp dword [esi + 4], 0
je 0x41a2c9
xor eax, eax
jmp 0x41a368
push 0x2000
mov eax, dword [0x422190]
push eax
call fcn.00419550
mov edi, eax
test edi, edi
jne 0x41a2e6
xor eax, eax
jmp 0x41a368
lea eax, [esp + 0x14]
push 0
mov ecx, dword [esp + 0xa8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
mov ebx, eax
jne 0x41a306
xor eax, eax
jmp 0x41a368
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x2000
mov ebp, dword [sym.imp.KERNEL32.dll__lread]
mov dword [esp + 0x14], eax
push edi
push ebx
call ebp
sub dword [esp + 0x10], eax
test eax, eax
je 0x41a350
lea ecx, [esp + 0x10]
push ecx
push eax
push edi
push ebx
push esi
call fcn.0041a5d0
add esp, 0x14
test eax, eax
je 0x41a375
push 0x2000
push edi
push ebx
call ebp
sub dword [esp + 0x10], eax
test eax, eax
jne 0x41a32a
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
push edi
mov eax, dword [0x422190]
push eax
call fcn.00419110
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x8c
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
push edi
mov eax, dword [0x422190]
push eax
call fcn.00419110
xor eax, eax
jmp 0x41a368

Function at 0x41ab20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
push esi
push edi
mov esi, dword [esp + 0x118]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push eax
call edi
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x11c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push esi
call edi
pop edi
cmp ebx, 1
sbb eax, eax
pop esi
inc eax
pop ebx
add esp, 0x108
ret 8

Function at 0x41bc00
Capabilities:
Encode data using xor

Disassembly:
mov dl, 1
mov al, byte [esp + 4]
test al, al
je 0x41bc18
mov cl, al
shr al, 1
and cl, 1
xor dl, cl
test al, al
jne 0x41bc0a
xor eax, eax
mov al, dl
ret 4
Function at 0x41c7c0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x41d86c
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4223ec], eax
xor eax, eax
mov al, byte [0x4223ed]
mov dword [0x4223f8], eax
mov eax, dword [0x4223ec]
shr dword [0x4223ec], 0x10
and eax, 0xff
mov dword [0x4223f4], eax
shl eax, 8
add eax, dword [0x4223f8]
mov dword [0x4223f0], eax
call fcn.0041ca80
mov dword [ebp - 4], 0
call fcn.0041d690
call fcn.0041d680
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x424b50], eax
call fcn.0041d220
mov dword [0x4221ac], eax
test eax, eax
je 0x41c859
cmp dword [0x424b50], 0
jne 0x41c863
push 0xffffffffffffffff
call fcn.0041cb00
add esp, 4
call fcn.0041cfa0
call fcn.0041cec0
call fcn.0041cad0
mov esi, dword [0x424b50]
mov al, byte [esi]
cmp al, 0x22
je 0x41c88a
cmp al, 0x20
jbe 0x41c8b7
inc esi
cmp byte [esi], 0x20
ja 0x41c882
jmp 0x41c8b7
inc esi
cmp byte [esi], 0x22
je 0x41c8b6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x41c8b1
xor eax, eax
mov al, bl
push eax
call fcn.0041ce60
add esp, 4
test eax, eax
je 0x41c8ab
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x41c893
cmp byte [esi], 0x22
jne 0x41c8b7
inc esi
cmp byte [esi], 0
je 0x41c8c7
cmp byte [esi], 0x20
ja 0x41c8c7
inc esi
cmp byte [esi], 0
jne 0x41c8bc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x41c8eb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0041cb00
jmp 0x41c92c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cb40
Capabilities:
Terminate process

Disassembly:
mov dword [0x422424], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x422420], bl
jne 0x41cb9c
cmp dword [0x424b48], 0
je 0x41cb8a
mov esi, dword [0x424b40]
sub esi, 4
cmp esi, dword [0x424b48]
jb 0x41cb8a
mov eax, dword [esi]
test eax, eax
je 0x41cb7f
call eax
sub esi, 4
cmp esi, dword [0x424b48]
jae 0x41cb77
push 0x42101c
push 0x421014
call fcn.0041cbc0
add esp, 8
push 0x421024
push 0x421020
call fcn.0041cbc0
add esp, 8
test ebx, ebx
jne 0x41cbbd
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x41d220
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x4224c8], 0
push ebx
push esi
push edi
push ebp
jne 0x41d270
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x41d24e
mov dword [0x4224c8], 1
mov ebx, dword [esp + 0x10]
jmp 0x41d27e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x41d266
mov dword [0x4224c8], 2
jmp 0x41d27e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x4224c8], 1
jne 0x41d32d
test edi, edi
jne 0x41d2a1
call esi
mov edi, eax
test edi, edi
jne 0x41d2a1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x41d2bb
add esi, 2
cmp word [esi], 0
jne 0x41d2a9
add esi, 2
cmp word [esi], 0
jne 0x41d2a9
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x41d31c
push ebp
call fcn.0041c740
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x41d31c
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41d30b
push ebx
call fcn.0041c6f0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4224c8], 2
jne 0x41d3b1
test ebx, ebx
jne 0x41d350
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x41d350
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x41d365
inc ebp
cmp byte [ebp], 0
jne 0x41d357
inc ebp
cmp byte [ebp], 0
jne 0x41d357
sub ebp, ebx
inc ebp
push ebp
call fcn.0041c740
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x41d38a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret