joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410999
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42ce40
call fcn.00412fbc
mov edi, 0x94
mov eax, edi
call fcn.0040f000
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x438070], ecx
mov eax, dword [esi + 4]
mov dword [0x43807c], eax
mov edx, dword [esi + 8]
mov dword [0x438080], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x438074], esi
cmp ecx, 2
je 0x4109f9
or esi, 0x8000
mov dword [0x438074], esi
shl eax, 8
add eax, edx
mov dword [0x438078], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x410a34
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410a34
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x410a4c
cmp eax, 0x20b
je 0x410a39
mov dword [ebp - 0x1c], esi
jmp 0x410a60
cmp dword [ecx + 0x84], 0xe
jbe 0x410a34
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x410a5a
cmp dword [ecx + 0x74], 0xe
jbe 0x410a34
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00412447
pop ecx
test eax, eax
jne 0x410a74
push 0x1c
call fcn.00410975
pop ecx
call fcn.00413db6
test eax, eax
jne 0x410a85
push 0x10
call fcn.00410975
pop ecx
call fcn.00415f68
mov dword [ebp - 4], esi
call fcn.00415d6a
test eax, eax
jge 0x410a9e
push 0x1b
call fcn.00410950
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4398d0], eax
call fcn.00415c48
mov dword [0x438060], eax
call fcn.00415ba6
test eax, eax
jge 0x410ac4
push 8
call fcn.00410950
pop ecx
call fcn.00415973
test eax, eax
jge 0x410ad5
push 9
call fcn.00410950
pop ecx
call fcn.00410c41
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x410ae8
push eax
call fcn.00410950
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041590a
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x410b09
movzx eax, word [ebp - 0x34]
jmp 0x410b0c
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0041af2a
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x410b2a
push edi
call fcn.00410d79
call fcn.00410d9b
jmp 0x410b5c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00412ff7
ret
Function at 0x410ca6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004123fc
xor esi, esi
inc esi
cmp dword [0x4380b0], esi
pop ecx
jne 0x410cce
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4380ac], esi
mov byte [0x4380a8], al
jne 0x410d34
mov ecx, dword [0x4398c8]
test ecx, ecx
je 0x410d15
mov eax, dword [0x4398c4]
sub eax, 4
cmp eax, ecx
jmp 0x410d0e
mov eax, dword [eax]
test eax, eax
je 0x410d00
call eax
mov eax, dword [0x4398c4]
sub eax, 4
cmp eax, dword [0x4398c8]
mov dword [0x4398c4], eax
jae 0x410cf8
mov eax, 0x434090
mov esi, 0x434098
cmp eax, esi
mov edi, eax
jae 0x410d34
mov eax, dword [edi]
test eax, eax
je 0x410d2d
call eax
add edi, 4
cmp edi, esi
jb 0x410d25
mov eax, 0x43409c
mov esi, 0x4340a4
cmp eax, esi
mov edi, eax
jae 0x410d53
mov eax, dword [edi]
test eax, eax
je 0x410d4c
call eax
add edi, 4
cmp edi, esi
jb 0x410d44
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x410d64
push 8
call fcn.00412368
jmp 0x410d76
push dword [ebp + 8]
mov dword [0x4380b0], 1
call fcn.00410bff
pop ecx
pop ebp
ret

Function at 0x41535e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040f000
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4153f3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x438070]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4153f3
cmp eax, 1
je 0x41540b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4153f3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4153c8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4153ef
xor eax, eax
inc eax
jmp 0x415427
cmp esi, ebx
jae 0x4153f7
xor eax, eax
jmp 0x415427
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x438070]
jmp 0x41540d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4155f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x435230]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4358c0]
je 0x415623
inc eax
cmp eax, 0x12
jb 0x415614
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4358c0]
jne 0x415757
mov eax, dword [0x438068]
cmp eax, 1
je 0x415732
cmp eax, edx
jne 0x415653
cmp dword [0x43522c], 1
je 0x415732
cmp ecx, 0xfc
je 0x415757
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41568c
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00415180
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00411100
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4156ce
lea eax, [ebp - 0x10c]
push eax
call fcn.00411100
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d910
push edi
call fcn.00417800
add esp, 0x10
push edi
call fcn.00411100
push dword [esi + 0x4358c4]
mov ebx, eax
call fcn.00411100
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040f000
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00415180
push edi
push ebx
call fcn.00415190
push 0x42d8f0
push ebx
call fcn.00415190
push dword [esi + 0x4358c4]
push ebx
call fcn.00415190
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041859c
add esp, 0x2c
jmp 0x415757
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4358c4]
push dword [esi]
call fcn.00411100
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00410b9c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417dc6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x435230]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x417def
xor eax, eax
jmp 0x417f5d
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x439560]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x417e22
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004191db
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x417ef4
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x417f2f
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x417e7d
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x417e6e
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x417e51
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417ebd
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x417ec6
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x417e42
jmp 0x417ec8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x417f58
cmp dword [ebp - 8], edi
je 0x417f2f
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x417f21
call fcn.0041218a
mov dword [eax], 9
call fcn.00412193
mov dword [eax], esi
jmp 0x417f2a
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417f16
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x417ec8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x417ec8
push dword [ebp - 8]
call fcn.0041219c
pop ecx
or eax, 0xffffffff
jmp 0x417f5b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x417f44
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x417f44
xor eax, eax
jmp 0x417f5b
call fcn.0041218a
mov dword [eax], 0x1c
call fcn.00412193
mov dword [eax], edi
jmp 0x417f2a
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00410b9c
leave
ret
Function at 0x41859c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4384a0], ebx
push esi
push edi
jne 0x41861c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x418657
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42dc24
push edi
call esi
test eax, eax
mov dword [0x4384a0], eax
je 0x418657
push 0x42dc14
push edi
call esi
push 0x42dc00
push edi
mov dword [0x4384a4], eax
call esi
cmp dword [0x438070], 2
mov dword [0x4384a8], eax
jne 0x41861c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4384b0], eax
je 0x41861c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4384ac], eax
mov eax, dword [0x4384ac]
test eax, eax
je 0x418661
call eax
test eax, eax
je 0x418648
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4384b0]
test eax, eax
je 0x418648
test byte [ebp - 8], 1
jne 0x418661
cmp dword [0x43807c], 4
jb 0x41865b
or byte [ebp + 0x12], 0x20
jmp 0x418680
xor eax, eax
jmp 0x418690
or byte [ebp + 0x12], 4
jmp 0x418680
mov eax, dword [0x4384a4]
test eax, eax
je 0x418680
call eax
mov ebx, eax
test ebx, ebx
je 0x418680
mov eax, dword [0x4384a8]
test eax, eax
je 0x418680
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4384a0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419609
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4197cf
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x439560]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4197cf
test cl, 0x48
je 0x41966f
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41966f
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4196c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4196a9
call fcn.0041218a
mov dword [eax], 9
call fcn.00412193
mov dword [eax], esi
jmp 0x4196b9
cmp eax, 0x6d
je 0x4197cf
push eax
call fcn.0041219c
pop ecx
or eax, 0xffffffff
jmp 0x4197d1
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4197ca
test edx, edx
je 0x4196e4
cmp byte [ebx], 0xa
jne 0x4196e4
or al, 4
jmp 0x4196e6
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4197c4
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4197b4
cmp al, 0xd
je 0x41971a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4197a6
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x419734
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41972f
add dword [ebp + 0x10], 2
jmp 0x419788
mov dword [ebp + 0x10], eax
jmp 0x4197a2
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41975c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4197a2
cmp dword [ebp - 0xc], 0
je 0x4197a2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41977d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x419788
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4197a5
cmp ebx, dword [ebp + 0xc]
jne 0x41978d
cmp byte [ebp - 1], 0xa
jne 0x41978d
mov byte [ebx], 0xa
jmp 0x4197a5
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417ca7
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4197a6
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4196fe
jmp 0x4197c4
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4197c4
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4197d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a561
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x41a5cc
push 0x3d
push dword [ebp + 8]
call fcn.004112e3
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x41a5cc
cmp dword [ebp + 8], esi
je 0x41a5cc
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x438090]
cmp eax, dword [0x438094]
jne 0x41a5b2
mov edi, eax
call fcn.0041a500
mov dword [0x438090], eax
cmp eax, ebx
jne 0x41a60b
cmp dword [ebp + 0xc], ebx
je 0x41a5d4
cmp dword [0x438098], ebx
je 0x41a5d4
call fcn.0041901b
test eax, eax
je 0x41a60b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x41a70f
push 4
call fcn.0040ef7c
cmp eax, ebx
pop ecx
mov dword [0x438090], eax
je 0x41a5cc
mov dword [eax], ebx
cmp dword [0x438098], ebx
jne 0x41a60b
push 4
call fcn.0040ef7c
cmp eax, ebx
pop ecx
mov dword [0x438098], eax
je 0x41a5cc
mov dword [eax], ebx
mov ebx, dword [0x438090]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0041a4b3
mov edi, eax
test edi, edi
pop ecx
jl 0x41a664
cmp dword [ebx], 0
je 0x41a664
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040ef8e
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41a64c
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x41a69a
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41a643
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0041135e
test eax, eax
pop ecx
pop ecx
je 0x41a69a
jmp 0x41a695
cmp dword [ebp - 4], 0
jne 0x41a708
test edi, edi
jge 0x41a674
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0041135e
test eax, eax
pop ecx
pop ecx
je 0x41a5cc
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x438090], eax
cmp dword [ebp + 0xc], 0
je 0x41a6f1
push dword [ebp + 8]
call fcn.00411100
inc eax
inc eax
push eax
call fcn.0040ef7c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41a6f1
push dword [ebp + 8]
push esi
call fcn.00415180
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41a6ea
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040ef8e
pop ecx
cmp dword [ebp - 4], 0
je 0x41a700
push dword [ebp + 8]
call fcn.0040ef8e
pop ecx
mov eax, dword [ebp - 8]
jmp 0x41a5cf
push esi
call fcn.0040ef8e
pop ecx
xor eax, eax
jmp 0x41a5cf
Function at 0x41cb04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x41cb3b
call fcn.00425273
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41cb4c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x41cb85
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x41cb6a
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41cb72
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x41cb83
test ax, ax
jne 0x41cb83
test si, si
je 0x41cb85
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x41cb94
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41cde6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x428448
call fcn.00410be0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00425273
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x41ce34
call fcn.00425273
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41ce45
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41ce51
or eax, 0xffffffff
jmp 0x41cf54
mov ecx, esi
call fcn.0041c92e
mov dword [ebp - 0x14], eax
call fcn.0041ee40
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x41ce94
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41ce94
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41ce94
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.004200ac
push dword [ebp - 0x14]
call fcn.0041ed98
push edi
push eax
push ebx
mov ecx, esi
call fcn.0041cbd9
xor ebx, ebx
cmp eax, ebx
je 0x41cf08
test byte [esi + 0x38], 0x10
je 0x41ced6
push 4
pop edi
mov ecx, esi
call fcn.0041d1f8
test ah, 1
je 0x41cece
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041e83c
cmp dword [esi + 0x1c], ebx
je 0x41cf08
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041d424
jmp 0x41cf08
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x41cf1c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x41cf35
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41cf35
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041c968
cmp dword [esi + 0x54], ebx
je 0x41cf51
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41d7d6
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4284f8
call fcn.00410be0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x41d7f0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41d83c
call fcn.00420cc5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401270
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x41f7f6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x41f830
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00405d60
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00405c83
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x420a19
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x420a5c
call fcn.00425273
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x420a5c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x420a77
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041fb80
test ebx, ebx
mov esi, eax
je 0x420a75
test edi, edi
je 0x420a75
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4211c2
Capabilities:
Get disk information

Disassembly:
mov eax, 0x42863d
call fcn.00410be0
sub esp, 0x14c
mov eax, dword [0x435230]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x42120c
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x4212a1
push ebx
call fcn.00420cc5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.00421180
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x421293
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x421296
test byte [ebp + 8], 2
jne 0x421261
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x421293
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x421293
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.00401270
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.00410b9c
leave
ret 8