joyce8/EMBER2024-capa huggingface dataset:
Function at 0x532da4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x532f5d
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x532ed6
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x532ed6
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x532ebd
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x532ebd
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.00534010
mov ebp, eax
test ebp, ebp
je 0x532eb5
push ebp
mov ecx, esi
call fcn.00535400
test eax, eax
je 0x532eb5
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x532eb5
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x532e76
xor eax, eax
jmp 0x532e7e
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.00535da0
inc ebx
xor ebp, ebp
jmp 0x532e07
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x532de0
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.00534320
test eax, eax
pop ebx
je 0x532f5d
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.00534010
mov edi, eax
cmp edi, ebp
je 0x532f5d
push edi
mov ecx, esi
call fcn.00535400
test eax, eax
je 0x532f5d
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.00534560
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.005345d0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.00535da0
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x53cfe0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x581347
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x95e14c
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.0056b1c1
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.0056b1c1
mov edi, dword [0x583684]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], 0x95e138
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [0x58356c]
lea ecx, [esp + 0xb0]
push ecx
call dword [0x58317c]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.0053db00
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x5623e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x582a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.005574c2
mov eax, dword [0x963270]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.005573f4
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00562eb0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x562487
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x56247e
cmp al, 0xff
je 0x56247e
dec al
mov byte [ecx], al
jmp 0x562487
push ecx
call fcn.0056d00c
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x5624b8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5624af
cmp al, 0xff
je 0x5624af
dec al
mov byte [ecx], al
jmp 0x5624b8
push ecx
call fcn.0056d00c
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x408380
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call fcn.004082d0
add esp, 4
lea eax, [ebp - 0x210]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x408423
push 0x40aec4
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004062c0
push str.Could_not_open_file_mapping_object.
push 0x104
mov edx, dword [ebp + 0xc]
add edx, 0x208
push edx
call fcn.004062c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x410], eax
xor eax, eax
jmp 0x40851e
push 0x1e78
push 0
push 0
push 4
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x408499
push 0x40af78
push 0x104
mov eax, dword [ebp + 0xc]
push eax
call fcn.004062c0
push str.Could_not_map_view_of_file.
push 0x104
mov ecx, dword [ebp + 0xc]
add ecx, 0x208
push ecx
call fcn.004062c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x410], eax
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40851e
mov dword [ebp - 4], 0xe3c
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
add esp, 0x10
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ReadSharedMemory__:
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004062c0
lea edx, [ebp - 0x210]
push edx
push str.succeeded._mapping_obj_name:__s
push 0x104
mov eax, dword [ebp + 0xc]
add eax, 0x208
push eax
call dword [sym.imp.MSVCR90.dll_swprintf_s]
invalid
Function at 0xf11dc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0xf2704c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0xf11ed3
cmp esi, ebx
je 0xf11ed3
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xf11df0
sub eax, edx
sar eax, 1
je 0xf11ed3
push 0x206
lea ecx, [esp + 0xe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x14], ax
call fcn.00f18090
add esp, 0xc
cmp dword [esp + 0x218], ebx
jne 0xf11e5a
cmp dword [0xf28070], 3
jne 0xf11e5a
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [0xf23020]
push 0xf24fd0
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.00f14572
add esp, 0xc
jmp 0xf11e6a
lea edx, [esp + 8]
push edx
push 0x104
call dword [0xf2308c]
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00f14572
push 0xf24fd4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.00f148c4
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0xf11ed3
push eax
push 1
push 0x200
push edi
call fcn.00f14bb7
mov eax, dword [esp + 0x14]
push eax
call fcn.00f14c4b
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00f14563
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00f14563
add esp, 0x210
ret

Function at 0xf11f90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0xf2704c]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0xe]
xor eax, eax
push edi
push ecx
mov word [esp + 0x14], ax
call fcn.00f18090
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0xf12042
lea edx, [esp + 8]
push edx
push 0x104
call dword [0xf2308c]
push 0xf24fb4
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00f14572
push 0xf24ff4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00f148c4
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0xf12027
push eax
push 1
push 0x200
push esi
call fcn.00f14e29
mov eax, dword [esp + 0x14]
push eax
call fcn.00f14c4b
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00f14563
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00f14563
add esp, 0x210
ret
Function at 0xf13096
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0xf24fd4
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00f148c4
add esp, 0xc
test eax, eax
je 0xf130c3
xor eax, eax
jmp 0xf1314e
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00f1540e
push dword [ebp - 4]
call fcn.00f15630
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00f1540e
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.00f1522c
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00f14bb7
push dword [ebp - 4]
call fcn.00f14c4b
push ebx
lea ebx, [edi + esi]
call fcn.00f13152
push 0xf24ff4
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00f148c4
add esp, 0x44
pop esi
test eax, eax
jne 0xf130bc
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00f14e29
push dword [ebp - 4]
call fcn.00f14c4b
add esp, 0x14
test edi, edi
je 0xf1314b
push edi
call fcn.00f152f6
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0xf13194
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0xf2704c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
xor edi, edi
lea eax, [ebp - 0x21f]
push edi
push eax
mov byte [ebp - 0x220], 0
call fcn.00f18090
push esi
lea eax, [ebp - 0x11b]
push edi
push eax
mov byte [ebp - 0x11c], 0
call fcn.00f18090
push esi
lea eax, [ebp - 0x323]
push edi
push eax
mov byte [ebp - 0x324], 0
call fcn.00f18090
mov esi, 0xf250b0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0xd]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
stosb byte es:[edi], al
lea eax, [ebp - 0x220]
push eax
mov ebx, 0x104
push ebx
call dword [0xf23040]
lea eax, [ebp - 0x18]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf13220
lea edi, [ebp - 0x220]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf13230
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
lea eax, [ebp - 0x11c]
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [0xf23044]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x324]
push ebx
push eax
call fcn.00f156d2
lea eax, [ebp - 0x324]
push 0x5c
push eax
call fcn.00f151b0
add esp, 0x14
test eax, eax
je 0xf13284
mov byte [eax], 0
lea eax, [ebp - 0x220]
push 0xf250bc
push eax
call fcn.00f157fe
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0xf133cf
push esi
xor edi, edi
inc edi
push edi
push 9
push 0xf250c0
call fcn.00f14e29
push esi
push edi
push 5
push 0xf250cc
call fcn.00f14e29
lea eax, [ebp - 0x11c]
add esp, 0x20
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xf132cc
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00f14e29
push esi
push edi
push 2
mov ebx, 0xf250d4
push ebx
call fcn.00f14e29
push esi
push edi
push 0xa
push 0xf250d8
call fcn.00f14e29
lea eax, [ebp - 0x11c]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xf1330d
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00f14e29
push esi
push edi
push 0xf
push 0xf250e4
call fcn.00f14e29
push esi
push edi
push 7
push 0xf250f4
call fcn.00f14e29
lea eax, [ebp - 0x324]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xf1334d
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.00f14e29
push esi
push edi
push 3
push ebx
call fcn.00f14e29
push esi
push edi
push 5
push 0xf250cc
call fcn.00f14e29
lea eax, [ebp - 0x220]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xf13389
push esi
sub eax, ecx
push edi
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00f14e29
push esi
push edi
push edi
push 0xf250fc
call fcn.00f14e29
push esi
call fcn.00f14c4b
add esp, 0x24
xor eax, eax
push eax
push eax
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0xf25100
push eax
call dword [0xf2316c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00f14563
leave
ret
Function at 0x403908
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 0
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x422730]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
push eax
call esi
mov ebx, eax
mov edi, 0x409
test ebx, ebx
jne 0x403956
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x403980
mov esi, dword [ebp + 8]
test esi, esi
je 0x403969
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403980
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp fcn.004039ea
cmp dword [0x422734], 0
jne 0x4039e8
or al, 0xc3
Function at 0x404255
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
invalid
invalid
lodsb al, byte [esi]
cld
invalid

Function at 0x4042b5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [eax - 0x18]
insb byte es:[edi], dx
idiv edi
call [ecx + 0x50]

Function at 0x40468a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.00403a28
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004039dd
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.00403a18
sbb byte [ebx + 0x4685946], 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x40470c
cmp dword [ebp - 0x398], 0
je 0x4048d6
cmp dword [ebp + 0xc], 1
je 0x4048d6
cmp dword [ebp + 0xc], 8
jne 0x40489e
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.00403a28
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004039dd
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
invalid
lea esp, [ecx - 7]
Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x4016ee
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4050b2], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4051a0], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x405134], eax
mov dword [0x4050aa], eax
mov dword [0x405120], 0x30
mov dword [0x405124], 2
jmp 0x401733
mov dword [0x405128], 0x4030e0
mov dword [0x40512c], 0
mov dword [0x405130], 0
mov dword [0x405148], 0x404182
mov dword [0x405140], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x405138], eax
mov dword [0x40514c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40513c], eax
push 0x405120
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4050aa]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push str.5_minutes
push str.return
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405198], eax
push 5
push dword [0x405198]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405198]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x405150]
jmp 0x401807
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 0x4017f9
mov eax, dword [0x405158]
jmp 0x401822
call 0x402c71
ret
Function at 0x100129d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x1003008]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x438], eax
push 0x100110c
lea eax, [ebp - 0x458]
push eax
call esi
lea eax, [ebp - 0x458]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x430]
push eax
xor ebx, ebx
push 1
lea eax, [ebp - 0x40c]
push eax
mov dword [ebp - 0x430], 0x18
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x424], 0xd0
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
test eax, eax
jge 0x1001324
xor al, al
jmp 0x10014ce
push edi
lea eax, [ebp - 0x404]
mov dword [ebp - 0x410], eax
push 0x10010f0
lea eax, [ebp - 0x448]
push eax
call esi
push 0x10010cc
lea eax, [ebp - 0x450]
push eax
call esi
push 0x10010ac
lea eax, [ebp - 0x460]
push eax
call esi
mov edi, dword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x43c]
push eax
mov byte [ebp - 0x405], 1
push 1
mov esi, 0x200
jmp 0x10014a1
push 1
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
je 0x1001492
mov eax, dword [ebp - 0x40c]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x430]
push eax
push 0xf0001
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x430], 0x18
mov dword [ebp - 0x424], 0x40
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
jl 0x1001492
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
mov word [ebp - 0x414], bx
mov word [ebp - 0x412], si
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
push dword [ebp - 0x418]
mov dword [ebp - 0x440], eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 0x440], ebx
jl 0x1001492
push 1
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
test al, al
jne 0x1001469
push 1
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
test al, al
je 0x1001492
movzx eax, word [ebp - 0x414]
mov ecx, dword [ebp - 0x410]
shr eax, 1
mov word [ecx + eax*2], bx
push dword [ebp - 0x410]
call dword [ebp - 0x438]
test al, al
jne 0x1001492
mov byte [ebp - 0x405], bl
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x43c]
push eax
push ebx
push 1
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x40c]
call edi
test eax, eax
jge 0x1001382
push dword [ebp - 0x40c]
call dword [sym.imp.ntdll.dll_NtClose]
mov al, byte [ebp - 0x405]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01002355
leave
ret 4