joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451ee0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451ef7
add esp, 0xfffffff0
call fcn.00404388
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ded0
mov eax, dword [0x4636cc]
cmp word [eax + 2], 0
jne 0x451f1f
mov eax, dword [0x4636cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004535b8
mov eax, dword [0x463784]
cmp word [eax + 2], 0
jne 0x451f39
mov eax, dword [0x463784]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004537b0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4161c8]
call fcn.00404034
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4161c8]
call fcn.00404034
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4203cc]
call fcn.00427c98
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4520c0
mov eax, dword [0x4635e4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428068
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453d50
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4635e4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d6e8
test eax, eax
je 0x45202e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004098ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d710
test eax, eax
je 0x452042
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.004050e8
mov eax, dword [0x4634b8]
cmp byte [eax], 0
jne 0x452076
mov eax, ebx
call fcn.004521e8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00453f2c
mov eax, ebx
call fcn.004548f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4520b6
call fcn.004043e0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452468
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x464bb4]
cmp dword [eax + 0x30], 0
je 0x452512
cmp dword [ebx + 0x94], 0
jne 0x45250c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4523f8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45250c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4524d2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45250c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418530
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4524e1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453074
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4530a9
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404f68
jmp 0x4530b6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ecc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454108
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454149
mov eax, esi
call fcn.0043a8e4
test al, al
je 0x454149
mov eax, dword [ebx + 0x84]
call fcn.0043a624
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454149
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a624
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x432001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x27156033
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..text_1
mov ebx, 0x42f314
nop
nop
mov ecx, 0x3eef43dc
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40176b
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x404122], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4043bc], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404350], eax
mov dword [0x40411a], eax
mov dword [0x40433c], 0x30
mov dword [0x404340], 2
jmp 0x4017b0
mov dword [0x404344], 0x403300
mov dword [0x404348], 0
mov dword [0x40434c], 0
mov dword [0x404364], 0x4042e7
mov dword [0x40435c], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404354], eax
mov dword [0x404368], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x404358], eax
push 0x40433c
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40411a]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.please_wait
push str.cokun
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x4043b4], eax
push 5
push dword [0x4043b4]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x4043b4]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x40436c]
jmp 0x401884
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x401876
mov eax, dword [0x404374]
jmp 0x40189f
call 0x402d98
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x127d4a09
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x60143958
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x7c6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007c61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7c607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c606a
add dl, dl
jne 0x7c6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c60dc
xor eax, eax
add dl, dl
jne 0x7c6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c617d
add dl, dl
jne 0x7c60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7c60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7c6075
mov eax, 1
add dl, dl
jne 0x7c60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c60e1
sub eax, ebx
mov ebx, 1
jne 0x7c6128
mov ecx, 1
add dl, dl
jne 0x7c610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7c6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7c613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7c614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c6136
cmp eax, 0x7d00
jae 0x7c616d
cmp eax, 0x500
jb 0x7c6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c6075
cmp eax, 0x7f
ja 0x7c6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7c619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7c6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40adff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x821d78]
jne 0x40ae09
repz ret
jmp fcn.0040da2c

Function at 0x40d443
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x821d78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406494
and dword [ebp - 0x14], 0
cmp dword [0x825744], 0
mov dword [ebp - 0x18], eax
jne 0x40d4f6
push 0x402c4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d59e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c40
push ebx
call edi
test eax, eax
je 0x40d59e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402c30
push ebx
mov dword [0x825744], eax
call edi
push eax
call esi
push 0x402c1c
push ebx
mov dword [0x825748], eax
call edi
push eax
call esi
push 0x402c00
push ebx
mov dword [0x82574c], eax
call edi
push eax
call esi
mov dword [0x825754], eax
test eax, eax
je 0x40d4f6
push 0x402be8
push ebx
call edi
push eax
call esi
mov dword [0x825750], eax
mov eax, dword [0x825750]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d54f
cmp dword [0x825754], ecx
je 0x40d54f
push eax
call esi
push dword [0x825754]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d54f
test ebx, ebx
je 0x40d54f
call edi
test eax, eax
je 0x40d546
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d546
test byte [ebp - 8], 1
jne 0x40d54f
or dword [ebp + 0x10], 0x200000
jmp 0x40d582
mov eax, dword [0x825748]
cmp eax, dword [ebp - 0x18]
je 0x40d582
push eax
call esi
test eax, eax
je 0x40d582
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d582
mov eax, dword [0x82574c]
cmp eax, dword [ebp - 0x18]
je 0x40d582
push eax
call esi
test eax, eax
je 0x40d582
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x825744]
call esi
test eax, eax
je 0x40d59e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d5a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040adff
leave
ret
Function at 0x809190
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1420
call fcn.0040e9b0
cmp dword [0x26676c4], 0x37
jne 0x809247
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x403430
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x824]
push eax
push 0x403448
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0xc20]
push edx
push 0
push 0x4034a0
push 0x4034b8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x403558
push 0x403618
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov eax, dword [0x26676c8]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x82a854]
mov byte [eax + esi], dl
add esp, 0x1420
ret

Function at 0x809280
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x64
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov edx, dword [0x822380]
push ebx
push ebp
mov ebp, dword [0x82237c]
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x822378]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x822384]
mov ebx, 0xc6ef3720
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x8092d4
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x20]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub esi, edx
mov ecx, esi
shl ecx, 4
mov dword [0x265d674], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0x26676c4], 0x1be
lea edi, [ebx + esi]
jne 0x809329
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, esi
shr eax, 5
add eax, ebp
xor eax, edi
xor dword [esp + 0x10], eax
mov dword [0x265d678], 0xff6b3619
mov dword [0x265d67c], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov ecx, dword [0x26676c4]
cmp ecx, 0x93
je 0x80936d
lea eax, [esp + 0x18]
call fcn.00809270
mov ebx, dword [esp + 0x18]
dec dword [esp + 0x1c]
jne 0x8092d0
cmp ecx, 0x8d4
jne 0x8093a1
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x64
ret 4
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x64
ret 4
Function at 0x8093c0
Capabilities:
Manipulate console buffer

Disassembly:
push ecx
mov eax, dword [0x26676c4]
shr eax, 3
push esi
mov esi, dword [0x82a854]
test eax, eax
je 0x809404
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push edi
mov edi, eax
mov edi, edi
cmp dword [0x26676c4], 0x1c
jne 0x8093f6
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.00809280
add esi, 8
dec edi
jne 0x8093e0
pop edi
pop ebx
pop esi
pop ecx
ret
Function at 0x403351
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [edi + 4]
xor ebx, ebx
cmp dword [0x2420900], 0x594
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
jne 0x40339e
push 0x402df8
push 0x402e04
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402e18
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4284a8]
mov dword [ebp - 0x28], eax
mov eax, dword [str.p_Yo]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00403347
mov eax, dword [0x4284b0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4284b4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4033dc
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2420900], 0xc
mov dword [ebp - 4], eax
jne 0x403441
push ebx
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2420900]
cmp eax, 0xfa9
jne 0x40345d
mov dword [0x241fe9c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40346a
mov dword [0x241f84c], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add eax, esi
shr esi, cl
mov dword [ebp - 0x14], eax
mov dword [0x241fe98], 0xf4ea3dee
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor esi, dword [ebp - 4]
cmp dword [0x2420900], 0x213
mov dword [ebp - 0x14], esi
jne 0x4034a7
push 0x402e30
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + edx]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
call fcn.0040334e
add dword [ebp - 0x10], 0x61c88647
dec dword [ebp - 0x20]
jne 0x4033d9
cmp dword [0x2420900], 0xa6d
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
jne 0x403513
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403ed2
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
jmp 0x403eeb
nop
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x403f0a
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x403f01
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x403ef9
mov eax, ebx
leave
ret

Function at 0x403f4c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 4
mov esp, ebp
pop ebp
jmp 0x403f6e
nop
pop edx
pop eax
pop ecx
push edx
pushal
mov ebx, eax
mov edi, ecx
xor al, al
scasb al, byte es:[edi]
jne 0x403f7a
dec edi
sub edi, ecx
xchg ecx, edi
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + eax + 0x78]
lea esi, [esi + ebx + 0x18]
lodsd eax, dword [esi]
xchg edx, eax
lodsd eax, dword [esi]
push eax
lodsd eax, dword [esi]
xchg ebp, eax
lodsd eax, dword [esi]
xchg ebp, eax
add eax, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
dec edx
je 0x403fc9
mov esi, dword [eax + edx*4]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x403fb5
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x403f9f
shl edx, 1
add ebp, edx
movzx eax, word [ebp + ebx]
shl eax, 2
add eax, dword [esp]
mov eax, dword [ebx + eax]
add eax, ebx
pop ecx
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x41db20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a709b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049c1a5
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41dba2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049a08c
mov eax, dword [eax]
push 0x20bac90
push eax
call fcn.0048c2d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049c430
test bl, bl
je 0x41dba2
push 0x20bac90
lea ecx, [esp + 0xc]
call fcn.0049c7c0
push 0x20bac9c
lea ecx, [esp + 0xc]
call fcn.0049c7c0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41dbde
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049c430
jmp 0x41dca9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41dc62
lea edx, [esp + 0x7c]
push 0x20bac98
push edx
call fcn.0048c2d4
add esp, 8
test eax, eax
je 0x41dc62
lea eax, [esp + 0x7c]
push 0x20bac94
push eax
call fcn.0048c2d4
add esp, 8
test eax, eax
je 0x41dc62
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41dbf2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0049c430
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41e4b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41e512
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc