joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40659d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004039cc
xor ebx, ebx
cmp dword [0x40e418], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x406672
push 0x40c744
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4065dd
xor eax, eax
jmp 0x406736
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40c738
push edi
call esi
cmp eax, ebx
je 0x4065d6
push eax
call fcn.00401c19
mov dword [esp], 0x40c728
push edi
mov dword [0x40e418], eax
call esi
push eax
call fcn.00401c19
mov dword [esp], 0x40c714
add byte [edi - 0x5d], dl
sbb al, 0xe4
inc eax
add bh, bh
salc
push eax
call fcn.00401c19
mov dword [0x40e420], eax
lea eax, [ebp - 8]
push eax
call fcn.00401380
test eax, eax
pop ecx
pop ecx
je 0x406640
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407e0d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x406672
push 0x40c6f8
push edi
call esi
push eax
call fcn.00401c19
cmp eax, ebx
pop ecx
mov dword [0x40e428], eax
je 0x406672
push 0x40c6e0
push edi
call esi
push eax
call fcn.00401c19
pop ecx
mov dword [0x40e424], eax
mov eax, dword [0x40e424]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4066eb
cmp dword [0x40e428], esi
je 0x4066eb
push eax
call fcn.00406bac
pop ecx
call eax
cmp eax, ebx
je 0x4066b8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40e428]
call fcn.00406bac
pop ecx
call eax
test eax, eax
je 0x4066b8
test byte [ebp - 0x18], 1
jne 0x4066eb
lea eax, [ebp - 0xc]
push eax
call fcn.004031d4
test eax, eax
pop ecx
je 0x4066d3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407e0d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4066e2
or dword [ebp + 0x10], 0x200000
jmp 0x40671c
or dword [ebp + 0x10], 0x40000
jmp 0x40671c
mov eax, dword [0x40e41c]
cmp eax, esi
je 0x40671c
push eax
call fcn.00406bac
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40671c
mov eax, dword [0x40e420]
cmp eax, esi
je 0x40671c
push dword [ebp - 4]
push eax
call fcn.00406bac
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40e418]
call fcn.00406bac
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408773
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b1f8]
jne 0x40877d
repz ret
jmp fcn.00406c6d

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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x408942
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
mov edi, 0xf77b3de9
call fcn.0040896e
add edi, edi
xor dword [eax], ecx
add esi, 1
inc eax
dec esi
cmp eax, ebx
jne fcn.00408942
sub edi, 0xb88826e4
add edi, 0x2090c114
ret

Function at 0x1002df80
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002e144
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x1002dfaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002dfb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002dfa0
mov eax, 1
add ebx, ebx
jne 0x1002dfc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002dfb8
jne 0x1002dfd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002dfb8
xor ecx, ecx
sub eax, 3
jb 0x1002dfe8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002e05a
mov ebp, eax
add ebx, ebx
jne 0x1002dff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002e000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002e024
inc ecx
add ebx, ebx
jne 0x1002e010
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002e005
jne 0x1002e021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002e005
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002e044
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002e035
jmp 0x1002dfa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002e044
add edi, ecx
jmp 0x1002dfa6
pop esi
mov edi, esi
mov ecx, 0xc42
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002e062
cmp byte [edi], 0x11
jne 0x1002e062
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1002e067
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x1002e0d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e44c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e49c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002e094
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e4a0]
or eax, eax
je 0x1002e0d0
mov dword [ebx], eax
add ebx, 4
jmp 0x1002e0b1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002e107
cmp al, 0xef
ja 0x1002e0fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002e0dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002e0e9
mov ebp, dword [esi + 0x2e4a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1002e13b
sub esp, 0xffffff80
jmp 0x10013194
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x408200
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
lea eax, [ebp - 0x48]
mov esi, ecx
push eax
push 0xe
mov ebx, 0x400
mov edi, edx
push ebx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0x4010fc
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_sprintf_s]
add esp, 0x10
lea eax, [ebp - 0x44]
push 0x20
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
test eax, eax
jne 0x408276
lea eax, [ebp - 0x24]
push eax
push edi
push esi
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0xc
mov eax, 0x80004005
jmp 0x4082a8
movsx eax, byte [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
pop ecx
test eax, eax
je 0x40828e
mov byte [eax], 0
lea eax, [ebp - 0x44]
push eax
push edi
push esi
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0xc
test eax, eax
je 0x4082a6
mov byte [esi], 0
jmp 0x40826f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417690
leave
ret 4
Function at 0x4094f4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebx
push esi
push edi
movzx edi, dx
lea eax, [edi - 0x9c41]
cmp eax, 0xa
ja case.default.0x40950b
jmp dword [eax*4 + 0x409640]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push 0
push dword [0x41c4f4]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
push edi
mov dword [0x41c4f4], edi
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
xor edx, edx
pop edi
pop esi
pop ebx
jmp fcn.004093fd
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
xor ecx, ecx
cmp dword [0x41c4e8], ecx
sete cl
mov dword [0x41c4e8], ecx
shl ecx, 3
push ecx
push 0x9c4a
push eax
jmp 0x409534
push 1
and dword [0x41c93c], 0
call fcn.00409dcb
jmp case.default.0x40950b
push 0
jmp 0x40956a
xor eax, eax
inc eax
mov dword [0x41c93c], eax
push eax
call fcn.00409e3a
jmp case.default.0x40950b
mov dword [0x41c93c], 1
push 0
jmp 0x409588
mov ebx, 0x41c420
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4095aa
sub ecx, edx
lea edi, [ecx + 1]
push edi
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je case.default.0x40950b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je case.default.0x40950b
push ebx
push edi
push eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x41c500]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
push 0
push 0x409770
push ecx
push 0x40117c
push dword [0x41c510]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp case.default.0x40950b
pop edi
pop esi
pop ebx
jmp fcn.00409d4c
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
ret
Function at 0x409bd3
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
xor ebx, ebx
push eax
push ebx
mov byte [0x41c838], bl
mov byte [ebp - 0x108], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov esi, 0x4012c4
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x4012c8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x4012d8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
mov esi, 0x4012e4
push eax
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_sprintf_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x409d27
push edi
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_sprintf_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x409d27
push edi
lea eax, [ebp - 0x108]
push eax
push 0x4012f8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x108]
push eax
push 0x401304
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_sprintf_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x409d3d
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x41c838
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417690
leave
ret
Function at 0x40a6ed
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x5c], ecx
mov ecx, edi
mov dword [ebp - 0x58], edx
call fcn.0040a672
test eax, eax
jns 0x40a722
mov eax, 0x80004005
jmp 0x40a7c1
test ebx, ebx
je 0x40a7bf
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40a7be
cmp dword [0x41c93c], 0
je 0x40a7ae
mov eax, dword [ebp - 0x5c]
xor edx, edx
sub eax, dword [0x41c830]
div dword [edi + 0xc]
mov dword [ebp - 0x58], eax
cmp eax, 0x4f
ja 0x40a7be
push 0x4f
lea eax, [ebp - 0x54]
push 0x20
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
add esp, 0xc
mov byte [ebp + eax - 0x54], 0
push 0
push ecx
push eax
lea eax, [ebp - 0x54]
push eax
push dword [0x41c944]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 0xc]
imul eax, esi
push 0
sub eax, dword [0x41c830]
add eax, dword [ebp - 0x5c]
mov dword [0x41c830], eax
lea eax, [ebp - 0x58]
push eax
push esi
push ebx
push dword [0x41c944]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40a7be
push esi
push ebx
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [edi]
call dword [sym.imp.GDI32.dll_TextOutA]
pop esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00417690
leave
ret 0xc

Function at 0x40a7d1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x41c93c], 0
je 0x40a804
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x401388
push dword [0x41c944]
call dword [sym.imp.KERNEL32.dll_WriteFile]
and dword [0x41c830], 0
xor eax, eax
leave
ret
test ecx, ecx
jne 0x40a80f
mov eax, 0x80004005
leave
ret
inc dword [ecx + 0x14]
mov eax, dword [ecx + 0x14]
cmp eax, dword [ecx + 0x1c]
jb 0x40a800
call fcn.0040a6b0
leave
ret
Function at 0x417164
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x407e7c
push GetEffectiveClientRect
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417247
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], 1
push eax
lea eax, [ebp - 0x108]
mov edi, 0x104
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], edi
push eax
push ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417236
cmp dword [ebp - 0x10c], 2
mov byte [ebp - 5], bl
jne 0x417207
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x417236
lea ecx, [ebp - 0x108]
sub ecx, esi
lea eax, [edi + 0x7ffffefa]
test eax, eax
je 0x417228
mov al, byte [ecx + esi]
test al, al
je 0x417228
mov byte [esi], al
inc esi
sub edi, 1
jne 0x41720f
test edi, edi
jne 0x41722d
dec esi
mov byte [esi], bl
xor ebx, ebx
test edi, edi
setne bl
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x417249
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00417690
leave
ret
Function at 0x41741a
Capabilities:
Terminate process

Disassembly:
call fcn.004b6000
jmp 0x41741a
push 0x58
push 0x417bd0
call fcn.00417b18
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x41c9fc
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41746c
cmp eax, esi
jne 0x41745f
xor esi, esi
inc esi
mov edi, esi
jmp 0x41746f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x417443
xor esi, esi
inc esi
cmp dword [0x41ca00], esi
jne 0x417481
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4174bb
cmp dword [0x41ca00], ebx
jne 0x4174b5
mov dword [0x41ca00], esi
push 0x401018
push 0x40100c
call fcn.004175f9
pop ecx
pop ecx
test eax, eax
je 0x4174bb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4175e9
mov dword [0x41c0d4], esi
cmp dword [0x41ca00], esi
jne 0x4174de
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x41ca00], 2
test edi, edi
jne 0x4174eb
xor eax, eax
mov ecx, 0x41c9fc
xchg dword [ecx], eax
cmp dword [0x41ca04], 0
je 0x417517
push 0x41ca04
call fcn.00417970
pop ecx
test eax, eax
je 0x417517
push ebx
push 2
push ebx
mov esi, dword [0x41ca04]
mov ecx, esi
call dword [0x41d284]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x417575
test cl, cl
je 0x417544
test edi, edi
jne 0x417575
test cl, cl
je 0x417544
cmp cl, 0x20
ja 0x417544
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x417533
test byte [ebp - 0x3c], 1
je 0x417550
movzx eax, word [ebp - 0x38]
jmp 0x417553
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x41c0d0], eax
cmp dword [0x41c0e8], 0
jne 0x4175ce
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x417586
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x417599
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x417524
cmp dword [0x41c0d4], 0
jne 0x4175e2
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x41c0d0]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417854
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x417bf0
call fcn.00417b18
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4178b4
cmp eax, 0xffffffff
je 0x4178b4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4178ad
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4178ad
cmp edx, 0x10000000
jae 0x4178ad
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4178aa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x417920
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41795e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x417956
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x417960
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x417946
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x417a30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x417a61
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417a61
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x417a61
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret