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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044ad0e
xor ebx, ebx
cmp dword [0x489a14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x459b75
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x459ae0
xor eax, eax
jmp 0x459c39
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x473fa0
push edi
call esi
cmp eax, ebx
je 0x459ad9
push eax
call fcn.0044acab
mov dword [esp], 0x473f90
push edi
mov dword [0x489a14], eax
call esi
push eax
call fcn.0044acab
mov dword [esp], 0x473f7c
push edi
mov dword [0x489a18], eax
call esi
push eax
call fcn.0044acab
mov dword [0x489a1c], eax
lea eax, [ebp - 8]
push eax
call fcn.00445d77
test eax, eax
pop ecx
pop ecx
je 0x459b43
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044730b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x459b75
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044acab
cmp eax, ebx
pop ecx
mov dword [0x489a24], eax
je 0x459b75
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044acab
pop ecx
mov dword [0x489a20], eax
mov eax, dword [0x489a20]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x459bee
cmp dword [0x489a24], esi
je 0x459bee
push eax
call fcn.0044ad17
pop ecx
call eax
cmp eax, ebx
je 0x459bbb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x489a24]
call fcn.0044ad17
pop ecx
call eax
test eax, eax
je 0x459bbb
test byte [ebp - 0x18], 1
jne 0x459bee
lea eax, [ebp - 0xc]
push eax
call fcn.00445e26
test eax, eax
pop ecx
je 0x459bd6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044730b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x459be5
or dword [ebp + 0x10], 0x200000
jmp 0x459c1f
or dword [ebp + 0x10], 0x40000
jmp 0x459c1f
mov eax, dword [0x489a18]
cmp eax, esi
je 0x459c1f
push eax
call fcn.0044ad17
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x459c1f
mov eax, dword [0x489a1c]
cmp eax, esi
je 0x459c1f
push dword [ebp - 4]
push eax
call fcn.0044ad17
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 [0x489a14]
call fcn.0044ad17
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46ad81
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4834f0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046abf9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00440ab0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46add0
cmp dword [ebp - 0x1c], 5
jb 0x46ade8
jmp 0x46ade4
cmp dword [ebp - 0x10], 1
jne 0x46ade8
cmp dword [ebp - 0x1c], 4
ja 0x46ade4
jne 0x46ade8
cmp dword [ebp - 0x18], 0
jbe 0x46ade8
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x475c08
call fcn.0046a9b6
test eax, eax
jge 0x46ae09
mov byte [0x485222], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043e6bd
add ebp, 0x78
leave
ret
Function at 0x450290
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x443015
lea edi, [esi - 0x42015]
push edi
jmp 0x4502aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4502b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4502a0
mov eax, 1
add ebx, ebx
jne 0x4502c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4502d4
jne 0x4502f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4502f3
dec eax
add ebx, ebx
jne 0x4502e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4502b8
add ebx, ebx
jne 0x4502ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x450345
xor ecx, ecx
sub eax, 3
jb 0x45030b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45037a
sar eax, 1
mov ebp, eax
jmp 0x450316
add ebx, ebx
jne 0x450316
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4502e4
inc ecx
add ebx, ebx
jne 0x450324
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4502e4
add ebx, ebx
jne 0x450331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x450326
jne 0x450342
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x450326
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x450364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x450356
jmp 0x4502a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x450364
add edi, ecx
jmp 0x4502a6
pop esi
mov edi, esi
mov ecx, 0x197c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x450382
cmp byte [edi], 2
jne 0x450382
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 0x450387
lea edi, [esi + 0x4e000]
mov eax, dword [edi]
or eax, eax
je 0x4503ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x50530]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5056c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4503b4
mov ecx, edi
jns 0x4503e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x50574]
or eax, eax
je 0x4503f9
mov dword [ebx], eax
add ebx, 4
jmp 0x4503d1
call dword [esi + 0x50570]
mov ebp, dword [esi + 0x50578]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x450433
sub esp, 0xffffff80
jmp 0x401f4c
Function at 0x4033e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x403441
cmp word [0x406208], 0xd7b2
jne 0x403409
cmp dword [0x406210], 0
jbe 0x403409
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403468
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40501c], 0
jne 0x40345d
push 0
push 0x405050
push 0x405058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40394c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4039b2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403658
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402988
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40399c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4039b9
lea eax, [ebp - 0x10]
call fcn.00403564
ret

Function at 0x40433c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00403670
xor eax, eax
push ebp
push 0x4043f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [edi + 4]
mov edx, dword [ebp - 4]
call fcn.004035b8
mov eax, dword [ebp - 4]
call fcn.00403680
push eax
call sub.kernel32.dll_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x4043db
push 0xc
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x10]
mov edx, esi
call fcn.00404204
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4043db
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], eax
push 0x40
push 0x1000
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov dword [edi + 0xc], esi
test esi, esi
je 0x4043db
mov edx, esi
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0xc]
call fcn.004028d0
lea eax, [edi + 0x10]
xor ecx, ecx
mov edx, 0x200
call fcn.00402968
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4043f8
lea eax, [ebp - 4]
call fcn.00403564
ret
Function at 0x4044dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
xor ebx, ebx
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40453b
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x40453b
mov edx, esi
mov eax, edi
mov ecx, dword [ebp + 8]
call fcn.004028d0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40477c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 0xc]
push eax
push esi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4047de
push esp
push 0x40
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4047de
mov edx, esi
mov eax, edi
mov ecx, ebp
call fcn.004028d0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
mov eax, ebx
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4047e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
mov ebx, eax
push 0x40
push 0x1000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp], eax
cmp dword [esp], 0
je 0x404813
mov eax, dword [esp]
mov ecx, 0xcc
mov edx, ebx
call fcn.00402968
mov eax, dword [esp]
pop edx
pop ebx
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x6185a
mov esi, 0x59c143c
adc al, 0x9c
add eax, 0xd9bafe31
inc esi
pop ds
push es
mov esi, 0x1400060
mov ebx, 0x219798
xor esi, ebx
mov edx, 0x1dee1825
xor esi, edx
xor esi, 0x1c8f8fdd
xor esi, esi
jmp 0x403f60

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4065ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004023c3
xor ebx, ebx
cmp dword [0x410a94], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x406690
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406770
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ca0c
push edi
call esi
cmp eax, ebx
je 0x406770
push eax
call fcn.00402355
mov dword [esp], 0x40c9fc
push edi
mov dword [0x410a94], eax
call esi
push eax
call fcn.00402355
mov dword [esp], 0x40c9e8
push edi
mov dword [0x410a98], eax
call esi
push eax
call fcn.00402355
mov dword [0x410a9c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401791
test eax, eax
pop ecx
pop ecx
je 0x40665e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040214a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x406690
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402355
cmp eax, ebx
pop ecx
mov dword [0x410aa4], eax
je 0x406690
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402355
pop ecx
mov dword [0x410aa0], eax
mov eax, dword [0x410aa0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x406715
cmp dword [0x410aa4], ecx
je 0x406715
push eax
call fcn.004023cc
push dword [0x410aa4]
mov esi, eax
call fcn.004023cc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x406715
cmp edi, ebx
je 0x406715
call esi
cmp eax, ebx
je 0x4066e2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4066e2
test byte [ebp - 0x18], 1
jne 0x406715
lea eax, [ebp - 0x10]
push eax
call fcn.004017c8
test eax, eax
pop ecx
je 0x4066fd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040214a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40670c
or dword [ebp + 0x10], 0x200000
jmp 0x406750
or dword [ebp + 0x10], 0x40000
jmp 0x406750
mov eax, dword [0x410a98]
cmp eax, dword [ebp - 8]
je 0x406750
push eax
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406750
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x406750
mov eax, dword [0x410a9c]
cmp eax, dword [ebp - 8]
je 0x406750
push eax
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406750
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410a94]
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406770
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406772
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x4090a0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x4090a4]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.00402b1c
jmp 0x4011d3
mov eax, dword [0x4090a4]
test eax, eax
jne 0x4011c9
mov dword [0x4090a4], 1
mov dword [esp + 4], 0x40c014
mov dword [esp], 0x40c00c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x40901c], 1
mov eax, dword [0x4090a4]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x40c008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x4090a4], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x4090a0
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.00401ff9
mov dword [esp], 0x402114
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x409074], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.00401998
mov eax, dword [0x409004]
mov dword [esp + 4], 0x409008
mov dword [esp], eax
call fcn.004013c8
call fcn.004017d4
mov eax, dword [0x405014]
mov edx, dword [0x40900c]
mov dword [eax], edx
mov ecx, dword [0x40900c]
mov edx, dword [0x409008]
mov eax, dword [0x409004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004041f4
mov dword [0x409014], eax
mov eax, dword [0x409018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x409014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x40901c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x409014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40904c], 1
mov dword [0x409050], 1
mov dword [0x409054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x4019a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040298c
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort

Function at 0x402574
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402593
mov eax, 0
jmp 0x4025d7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x4025b6
mov eax, 0
jmp 0x4025d7
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4025d2
mov eax, 0
jmp 0x4025d7
mov eax, 1
leave
ret
Function at 0x4025d9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402638
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402630
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402630
mov eax, dword [ebp - 4]
jmp 0x40264c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40260d
mov eax, 0
leave
ret
Function at 0x1004d135
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x95
mov esi, dword [ebp - 9]
mov cx, word [ebp - 0x1b]
lea eax, [ebp - 0x7f]
lea edx, [ebp - 7]
mov ebx, 0x8ff3
mov edx, dword [0x103a296b]
sub edi, ebx
test dword [0x103a302f], ebx
je 0x1004d181
and edi, ecx
mov ecx, ebx
mov edx, 0x383f
mov dword [0x103a2c1f], eax
add eax, eax
mov ebx, ecx
test edi, edx
jne 0x1004d181
xor edi, ecx
movzx edi, bl
mov esi, dword [0x103a1df0]
mov eax, dword [ebp - 0x7d]
xor eax, esi
mov edx, dword [ebp - 0x55]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x73], edi
mov edi, dword [ebp - 0x1f]
mov ecx, dword [0x103a24cb]
or edi, dword [0x103a20a9]
movzx ebx, byte [ebp - 0x3a]
and dword [0x103a2785], edi
mov ebx, dword [0x103a130a]
mov ecx, dword [ebp - 0x80]
lea ebx, [0x103a2800]
mov edx, dword [0x103a239f]
mov cx, word [0x103a27fa]
mov edx, ecx
movzx eax, bl
mov ecx, ecx
mov edx, dword [0x103a30b2]
mov ecx, dword [0x103a2618]
and dword [0x103a1183], edi
mov dword [0x103a265f], eax
add dword [ebp - 0x7f], ebx
mov eax, eax
mov edx, dword [0x103a2826]
and dword [0x103a1e26], edx
or ebx, ebx
cmp ecx, 0xee885957
jae 0x1004d271
lea esi, [0x103a1ed0]
mov dword [ebp - 0x28], edi
sub ecx, ebx
mov ecx, dword [ebp - 0x3b]
mov ecx, dword [ebp - 0x37]
test dword [0x103a22fc], edi
je 0x1004d237
mov dword [0x103a28fd], edx
call sub.USER32.dll_EnumWindows
add edi, 0xefbf
mov eax, esi
and ecx, edi
sub edx, 0xe757
movzx eax, cl
movzx edi, ch
mov edi, edi
xor esi, edi
lea ebx, [ebp - 0x22]
mov eax, dword [0x103a132f]
movzx eax, bl
sub si, di
mov dword [ebp - 0x4a], ecx
mov ecx, dword [ebp - 0x4f]
lea ebx, [ebp - 0x39]
sub edx, dword [ebp - 0x45]
movzx eax, dh
mov dword [ebp - 0x86], eax
mov edx, esi
mov dword [0x103a1fd4], edi
and esi, eax
mov eax, dword [ebp - 0x86]
and edx, dword [ebp - 0x7c]
mov dword [ebp - 0x47], edx
mov dword [ebp - 0x91], ecx
or edx, dword [0x103a17bf]
mov eax, edx
lea edx, [ebp - 0x75]
leave
ret