joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b1be
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040b2b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b259
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4e8f70]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40b259
cmp eax, 1
je 0x40b27a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b259
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b226
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b255
xor eax, eax
inc eax
jmp 0x40b299
cmp edi, eax
jae 0x40b25d
xor eax, eax
jmp 0x40b299
cmp eax, esi
jae 0x40b264
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4e8f70]
jmp 0x40b27d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b7a4
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4e62c8
call fcn.0040b9e0
mov edi, 0x94
mov eax, edi
call fcn.0040b2b0
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 [0x4e8f70], ecx
mov eax, dword [esi + 4]
mov dword [0x4e8f7c], eax
mov edx, dword [esi + 8]
mov dword [0x4e8f80], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4e8f74], esi
cmp ecx, 2
je 0x40b804
or esi, 0x8000
mov dword [0x4e8f74], esi
shl eax, 8
add eax, edx
mov dword [0x4e8f78], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40b83f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b83f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40b857
cmp eax, 0x20b
je 0x40b844
mov dword [ebp - 0x1c], esi
jmp 0x40b86b
cmp dword [ecx + 0x84], 0xe
jbe 0x40b83f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40b865
cmp dword [ecx + 0x74], 0xe
jbe 0x40b83f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040c5b6
pop ecx
test eax, eax
jne 0x40b897
cmp dword [0x4e8ee4], 1
jne 0x40b884
call fcn.0040f0e6
push 0x1c
call fcn.0040ef6f
push 0xff
call fcn.0040dea0
pop ecx
pop ecx
call fcn.0040f88f
mov dword [ebp - 4], esi
call fcn.0040f6e4
test eax, eax
jge 0x40b8b0
push 0x1b
call fcn.0040b77f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4ea4e4], eax
call fcn.0040f5c2
mov dword [0x4e8edc], eax
call fcn.0040f520
test eax, eax
jge 0x40b8d6
push 8
call fcn.0040b77f
pop ecx
call fcn.0040f2ed
test eax, eax
jge 0x40b8e7
push 9
call fcn.0040b77f
pop ecx
push 1
call fcn.0040ded0
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40b8fd
push eax
call fcn.0040b77f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040f290
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40b91e
movzx eax, word [ebp - 0x40]
jmp 0x40b921
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00403d50
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40b93f
push edi
call fcn.0040dffb
call fcn.0040e01d
jmp 0x40b971
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040ba1b
ret
Function at 0x40d80d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40d83b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40d842
cmp ebx, dword [eax + 4]
jae 0x40d842
xor eax, eax
jmp 0x40da32
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40d853
xor eax, eax
inc eax
jmp 0x40da31
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40d869
cmp ecx, edx
jae 0x40d9ae
cmp dword [eax + 4], 0
je 0x40d872
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40d85a
cmp dword [ebp + 8], 0
je 0x40d894
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40d9ae
cmp eax, esi
jae 0x40d9ae
mov eax, dword [0x4e8f08]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40d8b9
cmp dword [esi*4 + 0x4e8f10], edi
je 0x40d9b2
inc esi
cmp esi, eax
jl 0x40d8a7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40da2e
cmp dword [ebp - 8], 0x1000000
jne 0x40da2e
test byte [ebp - 0xc], 0xcc
je 0x40d937
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40da2e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40da2e
cmp word [eax + 0x18], 0x10b
jne 0x40da2e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40da2e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40d937
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40d937
test byte [ecx + 0x27], 0x80
jne 0x40d9ae
push 1
push 0x4e8f50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40d84b
mov ecx, dword [0x4e8f08]
test ecx, ecx
mov edx, ecx
jle 0x40d96b
lea eax, [ecx*4 + 0x4e8f0c]
cmp dword [eax], edi
je 0x40d96b
dec edx
sub eax, 4
test edx, edx
jg 0x40d95f
test edx, edx
jne 0x40d99c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40d978
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40d990
lea eax, [edx*4 + 0x4e8f10]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40d97e
cmp ecx, 0x10
jge 0x40d99c
inc ecx
mov dword [0x4e8f08], ecx
push 0
push 0x4e8f50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40d84b
xor eax, eax
jmp 0x40da31
test esi, esi
jle 0x40d84b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4e8f50
call ebx
test eax, eax
jne 0x40d84b
cmp dword [esi*4 + 0x4e8f10], edi
je 0x40da08
mov eax, dword [0x4e8f08]
lea esi, [eax - 1]
test esi, esi
jl 0x40d9f6
cmp dword [esi*4 + 0x4e8f10], edi
je 0x40d9f2
dec esi
jns 0x40d9e6
test esi, esi
jge 0x40da06
cmp eax, 0x10
jge 0x40da01
inc eax
mov dword [0x4e8f08], eax
lea esi, [eax - 1]
jmp 0x40da08
je 0x40da20
xor ecx, ecx
test esi, esi
jl 0x40da20
lea eax, [ecx*4 + 0x4e8f10]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40da0e
push 0
push 0x4e8f50
call ebx
jmp 0x40d84b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40df3a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4e8fb0], esi
push edi
jne 0x40df5a
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 [0x4e8fac], esi
mov byte [0x4e8fa8], al
jne 0x40dfc0
mov ecx, dword [0x4ea288]
test ecx, ecx
je 0x40dfa1
mov eax, dword [0x4ea284]
sub eax, 4
cmp eax, ecx
jmp 0x40df9a
mov eax, dword [eax]
test eax, eax
je 0x40df8c
call eax
mov eax, dword [0x4ea284]
sub eax, 4
cmp eax, dword [0x4ea288]
mov dword [0x4ea284], eax
jae 0x40df84
mov eax, 0x4e803c
mov esi, 0x4e8044
cmp eax, esi
mov edi, eax
jae 0x40dfc0
mov eax, dword [edi]
test eax, eax
je 0x40dfb9
call eax
add edi, 4
cmp edi, esi
jb 0x40dfb1
mov eax, 0x4e8048
mov esi, 0x4e8050
cmp eax, esi
mov edi, eax
jae 0x40dfdf
mov eax, dword [edi]
test eax, eax
je 0x40dfd8
call eax
add edi, 4
cmp edi, esi
jb 0x40dfd0
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40dff9
push dword [ebp + 8]
mov dword [0x4e8fb0], 1
call fcn.0040dea0
pop ebp
ret

Function at 0x40ef6f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4e833c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4e84c0]
je 0x40efa4
inc eax
cmp eax, 0x13
jb 0x40ef95
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4e84c0]
jne 0x40f0ca
mov eax, dword [0x4e8ee4]
cmp eax, 1
je 0x40f0a2
cmp eax, edx
jne 0x40efd4
cmp dword [0x4e8364], 1
je 0x40f0a2
cmp ecx, 0xfc
je 0x40f0ca
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f00a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040fdc0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040d6c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40f03e
mov eax, edi
push eax
call fcn.0040d6c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4e637c
push edi
call fcn.0040fec0
add esp, 0x10
push edi
call fcn.0040d6c0
push dword [esi + 0x4e84c4]
mov ebx, eax
call fcn.0040d6c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040b2b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040fdc0
push edi
push ebx
call fcn.0040fdd0
push 0x4e6378
push ebx
call fcn.0040fdd0
push dword [esi + 0x4e84c4]
push ebx
call fcn.0040fdd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040fcc5
add esp, 0x2c
jmp 0x40f0ca
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4e84c4]
push dword [esi]
call fcn.0040d6c0
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040ac43
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40fcc5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4e90f4], ebx
push esi
push edi
jne 0x40fd45
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40fd80
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4e90f4], eax
je 0x40fd80
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4e90f8], eax
call esi
cmp dword [0x4e8f70], 2
mov dword [0x4e90fc], eax
jne 0x40fd45
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4e9104], eax
je 0x40fd45
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4e9100], eax
mov eax, dword [0x4e9100]
test eax, eax
je 0x40fd8a
call eax
test eax, eax
je 0x40fd71
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4e9104]
test eax, eax
je 0x40fd71
test byte [ebp - 8], 1
jne 0x40fd8a
cmp dword [0x4e8f7c], 4
jb 0x40fd84
or byte [ebp + 0x12], 0x20
jmp 0x40fda9
xor eax, eax
jmp 0x40fdb9
or byte [ebp + 0x12], 4
jmp 0x40fda9
mov eax, dword [0x4e90f8]
test eax, eax
je 0x40fda9
call eax
mov ebx, eax
test ebx, ebx
je 0x40fda9
mov eax, dword [0x4e90fc]
test eax, eax
je 0x40fda9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4e90f4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410bbf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4ea164]
mov eax, dword [0x4e833c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x410d85
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4ea180]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x410d85
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x410c29
xor eax, eax
jmp 0x410d99
test al, 0x20
je 0x410c3a
push 2
push edi
push edi
push ecx
call fcn.00411c31
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x410d0f
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x410d56
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x410c9c
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x410c8d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x410c6f
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410cdc
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x410ce8
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x410c63
jmp 0x410cea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x410d80
cmp dword [ebp + 0x3a4], edi
je 0x410d56
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x410d48
mov dword [0x4e8f68], eax
jmp 0x410d8c
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410d3a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x410cea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x410cea
push dword [ebp + 0x3a4]
call fcn.00411b1c
pop ecx
jmp 0x410d96
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x410d6e
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x410c22
mov dword [0x4e8f64], 0x1c
mov dword [0x4e8f68], edi
jmp 0x410d96
sub eax, dword [ebp - 0x7c]
jmp 0x410d99
and dword [0x4e8f68], 0
mov dword [0x4e8f64], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040ac43
add ebp, 0x39c
leave
ret
Function at 0x40f160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f18d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f18d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43a83b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x43a84a
pop dword [ebp - 0x1c]
mov eax, 0xef2b4d46
add eax, 0x11185b04
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x6f135cc9
add dword [ebp - 0x2c], 0xdf3ee882
mov dword [ebp - 0x28], 0x6a4f62eb
add dword [ebp - 0x28], 0xc7e3e95a
mov dword [ebp - 0x24], 0x43bbe544
add dword [ebp - 0x24], 0x8905eea
mov dword [ebp - 0x20], 0xef03927d
sub dword [ebp - 0x20], 0xef03927d
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x2ed89734
add eax, 0xd16d1930
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xb13ac137
sub dword [ebp - 0x2c], 0x3cc857e1
mov dword [ebp - 0x28], 0x7d9393e1
sub dword [ebp - 0x28], 0x3c27326c
mov dword [ebp - 0x24], 0x1a796098
sub dword [ebp - 0x24], 0xb709f42c
mov dword [ebp - 0x20], 0xc636891f
sub dword [ebp - 0x20], 0xc636891f
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x87e60f95
add eax, 0x785fa0eb
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x4e823
push 0
call eax
mov ecx, 0x743ba8aa
sub ecx, 0x743b5bd1
mov edx, eax
mov edi, 0x690bcca0
add edi, 0x973b9360
add edi, dword [ebp - 0x1c]
mov esi, 0x6a41819f
add esi, 0x2584ccd8
add dword [ebp - 0x14], 0x6e0b7b79
mov ebx, dword [edi]
xor dword [ebp - 0x14], ebx
sub ebx, esi
xor dword [ebp - 0xc], esi
mov dword [edx], ebx
xor dword [ebp - 0x10], 0x760f613c
add edx, 4
add edi, 0xc7afa89
add edi, 0xf385057b
loop 0x43a96c
add eax, 0x8c217953
add eax, 0x73dface4
mov ebx, eax
add eax, 5
mov ecx, 0x40d223be
add ecx, 0xbf6ddc42
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x10003e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10003e44
xor eax, eax
jmp 0x10003ec4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003e5b
xor eax, eax
jmp 0x10003ec4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x10003ea7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x10003ea7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x10003e7e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x10003eb3
xor eax, eax
jmp 0x10003ec4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x10003ec1
xor eax, eax
jmp 0x10003ec4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x405267
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42c4a0], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40528b
test al, 0x10
jne 0x40528e
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42c4a0
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052b9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405321
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055c0
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405355
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f0a8], eax
jmp 0x4054da
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405373
test eax, eax
je 0x40548b
test byte [ebp + 0xc], 2
je 0x40548b
mov esi, 0x42b4a0
push edi
push esi
call fcn.004059d3
test ebx, ebx
je 0x405390
push 0x4092f8
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405396
push edi
call fcn.00405527
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405481
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040550b
cmp byte [eax], 0
je 0x4053e7
cmp byte [ebp - 0x18], 0
je 0x4053e7
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053fd
mov al, byte [esi + 1]
test al, al
je 0x405460
cmp al, 0x2e
jne 0x4053fd
cmp byte [esi + 2], 0
je 0x405460
push esi
push ebx
call fcn.004059d3
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x405423
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405460
push dword [ebp + 0xc]
push edi
call fcn.00405321
jmp 0x405460
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405458
test byte [ebp + 0xc], 4
je 0x405450
push edi
push 0xfffffffffffffff1
call fcn.00404d82
push 0
push edi
call fcn.0040571b
jmp 0x405460
inc dword [0x42f0a8]
jmp 0x405460
push edi
push 0xfffffffffffffff2
call fcn.00404d82
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053c5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40548b
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054da
cmp dword [ebp - 8], esi
jne 0x4054a0
inc dword [0x42f0a8]
jmp 0x4054da
push edi
call fcn.00405ca8
test eax, eax
je 0x4054da
push edi
call fcn.004054e0
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054d2
test byte [ebp + 0xc], 4
je 0x405498
push edi
push 0xfffffffffffffff1
call fcn.00404d82
push esi
push edi
call fcn.0040571b
jmp 0x4054da
push edi
push 0xffffffffffffffe5
call fcn.00404d82
pop edi
pop esi
leave
ret 8