joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441536
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test ebx, ebx
jg 0x44155a
jl 0x441551
test esi, esi
jne 0x44155a
xor eax, eax
xor edx, edx
jmp 0x44164d
cmp dword [edi + 0x38], 0
je 0x44156f
push ebx
push esi
push dword [ebp + 8]
call fcn.00412cf4
jmp 0x44164d
mov eax, dword [edi + 0x1c]
mov ecx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4415c3
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4415c3
cmp eax, esi
jb 0x441595
mov eax, esi
mov dword [ebp - 4], esi
push eax
push ecx
push dword [ebp + 8]
call fcn.00463590
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp + 8]
sub ecx, edx
add eax, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0xc], ecx
sub dword [eax], edx
mov eax, dword [edi + 0x1c]
add dword [eax], edx
jmp 0x4415c9
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [edi + 0x4c], 0
je 0x441641
mov ecx, edi
call fcn.00440eb6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
cmp eax, 0xfff
jbe 0x44161d
mov ecx, dword [ebp - 4]
push dword [edi + 0x4c]
push 0xfff
push 1
push ecx
call fcn.004709f8
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edx, dword [ebp - 8]
add ecx, eax
sub edx, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
cmp eax, 0xfff
jne 0x441619
cmp edx, eax
ja 0x4415e6
jmp 0x441620
sub esi, edx
jmp 0x441646
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, eax
test eax, eax
je 0x441644
push dword [edi + 0x4c]
push edx
push 1
push dword [ebp - 4]
call fcn.004709f8
mov ecx, dword [ebp - 0xc]
add esp, 0x10
sub ecx, eax
jmp 0x441644
mov ecx, dword [ebp - 0xc]
sub esi, ecx
sbb ebx, 0
mov eax, esi
mov edx, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x44e6d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x47b87b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047b6f1

Function at 0x48653d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x486591
test byte [esi + 0x48], 1
je 0x486591
test byte [esi + 0x48], 2
je 0x486560
mov eax, dword [esi]
call dword [eax + 0x34]
mov eax, dword [esi + 0x68]
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x486585
lea eax, [esi + 0x50]
push eax
call fcn.004218ca
pop ecx
mov eax, dword [ebp - 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
jmp 0x486594
or eax, 0xffffffff
pop esi
leave
ret 0xc

Function at 0x486808
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x486898
test byte [esi + 0x48], 2
je 0x486898
push edi
xor edi, edi
test byte [esi + 0x48], 8
je 0x486869
push 2
lea ecx, [ebp - 8]
xorps xmm0, xmm0
push ecx
push edi
push eax
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x48685d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48685a
lea eax, [esi + 0x50]
push eax
call fcn.004218ca
pop ecx
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x68]
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48688c
lea eax, [esi + 0x50]
push eax
call fcn.004218ca
pop ecx
mov eax, dword [ebp - 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], edi
pop edi
jmp 0x48689b
or eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x1266e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], esi
je 0x126dc
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov dword [ebp - 4], eax
mov ebx, esi
mov ecx, dword [eax + 0x1c]
add ecx, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 8], ecx
cmp dword [eax + 0x14], esi
jbe 0x126db
mov eax, dword [ecx + ebx*4]
add eax, edi
push 0x11510
push eax
call dword [0x16010]
pop ecx
test eax, eax
mov eax, dword [ebp - 4]
pop ecx
je 0x126c9
mov ecx, dword [ebp - 8]
inc ebx
cmp ebx, dword [eax + 0x14]
jb 0x126a4
jmp 0x126db
mov eax, dword [eax + 0x24]
mov esi, dword [ebp - 0xc]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
mov esi, dword [esi + eax*4]
add esi, edi
pop ebx
call fcn.000136d3
sub eax, dword [0x16040]
xor ecx, ecx
cmp eax, 0x7fff
pop edi
cmova esi, ecx
mov eax, esi
pop esi
leave
ret
Function at 0x133ab
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x11180
mov dword [ebp - 8], ecx
call edi
push eax
call dword [0x16008]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x133f6
add esi, 0x2a
push 0x20
push esi
call dword [0x16004]
pop ecx
pop ecx
test eax, eax
jne 0x133fd
push 0xffffffffffffffff
push 0x111ac
mov ecx, 0x16044
call fcn.00012558
xor al, al
pop edi
pop esi
pop ebx
leave
ret
sub eax, esi
sar eax, 1
cmp eax, 2
jae 0x13422
push 0xffffffffffffffff
mov esi, 0x16044
push 0x111c0
mov ecx, esi
call fcn.00012558
push 0xffffffffffffffff
call edi
push eax
mov ecx, esi
jmp 0x133f1
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x1344a
push 0xffffffffffffffff
push 0x111d4
jmp 0x133ec
push edi
push esi
push ebx
call dword [0x1601c]
add esp, 0xc
xor eax, eax
mov word [edi + ebx], ax
push ebx
xor ebx, ebx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x13497
push 0xffffffffffffffff
push 0x111e8
mov esi, 0x16044
mov ecx, esi
call fcn.00012558
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.000124da
jmp 0x133f6
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push ebx
push ebx
push 4
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x134b4
push 0xffffffffffffffff
push 0x111fc
jmp 0x13476
push 0x20
push ebx
push dword [ebp - 8]
call dword [0x1601c]
add esp, 0xc
call fcn.00013606
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x133f6
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x20]
add eax, 0x18
mov dword [ebp - 4], ecx
mov edx, eax
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.000135b0
test al, al
je 0x133f6
lea edx, [ebp - 4]
mov ecx, edi
call fcn.000135b0
test al, al
je 0x133f6
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ebp - 8]
push 2
push dword [eax]
call esi
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x1352a
push 0xffffffffffffffff
push 0x11210
jmp 0x13476
mov eax, dword [ebx + 0x24]
lea esi, [ebx + 0x28]
add eax, 0xa
lea eax, [ebx + eax*4]
mov dword [ebp - 0xc], eax
cmp esi, eax
je 0x1355b
mov edx, dword [esi]
add edx, ecx
mov ecx, edi
call fcn.000135b0
test al, al
je 0x133f6
mov ecx, dword [ebp - 8]
add esi, 4
cmp esi, dword [ebp - 0xc]
jne 0x1353d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x13574
push 0xffffffffffffffff
push 0x11224
jmp 0x13476
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call edi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push ebx
call edi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x133f8
Function at 0x10016550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x1001655f
pop dword [ebp - 0x38]
mov eax, 0x1001655f
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x41b41
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x4846eb33
add ecx, 0xb7b961e6
mov edx, eax
mov ebx, 0x59025a58
add ebx, 0xb70163a8
add ebx, dword [ebp - 0x38]
mov edi, 0xeaa072c
sub edi, 0x2378ac14
add dword [ebp - 4], eax
mov esi, dword [ebx]
add dword [ebp - 4], ebx
sub esi, edi
mov dword [ebp - 0x28], 0xa9703a5f
mov dword [edx], esi
xor dword [ebp - 4], 0x857742fd
add edx, 0x2e85164
sub edx, 0x2e85160
add ebx, 0xafefaf16
sub ebx, 0xafefaf12
loop 0x100165b4
add eax, 0xd0d18ceb
add eax, 0x2f2f9a4c
xor ebx, ebx
add ebx, eax
add eax, 0x83de5d53
sub eax, 0x83de5d4e
mov ecx, 0x10000000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.10016550
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.10016550
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x10001523
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10001532
pop dword [ebp - 8]
mov eax, 0x10001532
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x6244d373
sub dword [ebp - 0x18], 0x13f28e28
mov dword [ebp - 0x14], 0xb18ea97a
sub dword [ebp - 0x14], 0x7f5b5d35
mov dword [ebp - 0x10], 0xa8048c1a
sub dword [ebp - 0x10], 0x5bb847ec
mov dword [ebp - 0xc], 0x293023d3
sub dword [ebp - 0xc], 0x293023d3
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xf1a10b04
add dword [ebp - 0x18], 0x82d15e52
mov dword [ebp - 0x14], 0x16e3d83e
sub dword [ebp - 0x14], 0xd57776c9
mov dword [ebp - 0x10], 0x70153f6c
add dword [ebp - 0x10], 0xf35a2d00
mov dword [ebp - 0xc], 0x737636fc
add dword [ebp - 0xc], 0x8c89c904
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xc30a62a8
add eax, 0x4cf7edd4
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3c7e3
push 0
call eax
mov ecx, 0x3b4d1abc
sub ecx, 0x3b4cce4c
xor ebx, ebx
add ebx, eax
mov esi, 0xa3642a8c
add esi, 0x6c9ee174
add esi, dword [ebp - 8]
mov edx, 0x362d1065
add edx, 0x6f52c391
sub dword [ebp - 4], edi
mov edi, dword [esi]
xor dword [ebp - 4], ecx
sub edi, edx
xor dword [ebp - 4], ebx
mov dword [ebx], edi
xor dword [ebp - 4], eax
add ebx, 0xcefa1f0e
add ebx, 0x3105e0f6
add esi, 0xd6962c65
sub esi, 0xd6962c61
loop 0x1000164c
add eax, 0x56743339
sub eax, 0x56730ea6
mov ebx, eax
add eax, 0x9cd4cdc2
sub eax, 0x9cd4cdbd
mov ecx, 0xb53f4bcb
sub ecx, 0xa53f4bcb
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x1001c6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c73b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c6f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c6f2
cmp esi, ebx
jge 0x1001c6f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c74d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x1001c970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001c998
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001c9b2
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10001523
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022650
leave
ret 4

Function at 0x1001cb80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001cbb6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cc15
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.10001523
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10001523
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10001523
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022650
leave
ret 0x10

Function at 0x1001cc30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cc5c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cc8d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cc8b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10001523
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cc8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022650
leave
ret 8
Function at 0x10053065
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10173ccf
call fcn.1015f12a
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100530c6
call fcn.1005032d
mov esi, eax
jmp 0x1005319e
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100530e4
call fcn.1005032d
jmp 0x10053195
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x100530da
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x10053117
mov esi, 0x8007000e
jmp 0x10053197
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1014b6df
mov dword [ebp - 4], 1
jmp 0x1005314b
cmp dword [ebp - 0x418], 0
je 0x1005310d
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100530da
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.1014b6df
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100531b7
lea ecx, [ebp - 0x418]
call fcn.1005324b
lea ecx, [ebp - 0x428]
call fcn.1005025b
mov eax, esi
call fcn.1015f183
ret 0x10
Function at 0x1015e104
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003d3d0]
jne 0x1015ef7f
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x101c73e0], eax
mov dword [0x101c73dc], ecx
mov dword [0x101c73d8], edx
mov dword [0x101c73d4], ebx
mov dword [0x101c73d0], esi
mov dword [0x101c73cc], edi
mov word [0x101c73f8], ss
mov word [0x101c73ec], cs
mov word [0x101c73c8], ds
mov word [0x101c73c4], es
mov word [0x101c73c0], fs
mov word [0x101c73bc], gs
pushfd
pop dword [0x101c73f0]
mov eax, dword [ebp]
mov dword [0x101c73e4], eax
mov eax, dword [ebp + 4]
mov dword [0x101c73e8], eax
lea eax, [ebp + 8]
mov dword [0x101c73f4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x101c7330], 0x10001
mov eax, dword [0x101c73e8]
mov dword [0x101c72e4], eax
mov dword [0x101c72d8], 0xc0000409
mov dword [0x101c72dc], 1
mov eax, dword [0x1003d3d0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x101c20a4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x101c7328], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x1003d5c4
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x101c7328], 0
jne 0x1015f06b
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x415f63
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x433b84
push 0x433b7c
push str.FlsGetValue
push 2
call fcn.00415e68
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x415f94
mov ecx, esi
call fcn.00411065
call esi
jmp 0x415f9a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x415f9d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x433b8c
push 0x433b84
push str.FlsSetValue
push 3
call fcn.00415e68
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x415fd1
mov ecx, esi
call fcn.00411065
call esi
jmp 0x415fd7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x4012b6
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403eb4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403eb0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401191
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403eb0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403eb8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401380
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401367
mov eax, dword [0x403eb4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x401970
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004019d0
Function at 0x402370
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4023a8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40239e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x4023aa
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x402390
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4015245
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4008bc0]
jne 0x401524e
ret
jmp fcn.040155ef

Function at 0x4015f13
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x4015f22
pop dword [ebp - 0x28]
mov eax, 0x9324d5cb
sub eax, 0x8f2376a9
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x14483596
sub dword [ebp - 0x38], 0xc5f5f04b
mov dword [ebp - 0x34], 0x1c6c9baa
add dword [ebp - 0x34], 0x15c6b09b
mov dword [ebp - 0x30], 0x2567c80a
add dword [ebp - 0x30], 0x26e47c24
mov dword [ebp - 0x2c], 0x878fa04f
add dword [ebp - 0x2c], 0x78705fb1
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x80a18c5c
add dword [ebp - 0x38], 0xf3d0dcfa
mov dword [ebp - 0x34], 0x79695fa
add dword [ebp - 0x34], 0x39d5cb7b
mov dword [ebp - 0x30], 0xa2aa8a75
sub dword [ebp - 0x30], 0x3f3b1e09
mov dword [ebp - 0x2c], 0x402cd22d
add dword [ebp - 0x2c], 0xbfd32dd3
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xff8deb29
add eax, 0x472254f
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x381b0
push 0
call eax
mov ecx, 0xf1746498
sub ecx, 0xf1741633
mov edi, eax
mov ebx, 0x30e74d8c
add ebx, 0xd322b274
add ebx, dword [ebp - 0x28]
mov edx, 0x99776ccb
add edx, 0xc83adafa
sub dword [ebp - 0x1c], eax
mov esi, dword [ebx]
mov dword [ebp - 0x24], 0x123563ba
add esi, edx
xor dword [ebp - 0x20], 0x8b08bd75
mov dword [edi], esi
sub dword [ebp - 4], 0xa3fb5b35
add edi, 0xb5ec9f70
add edi, 0x4a136094
add ebx, 0x6c2da63e
sub ebx, 0x6c2da63a
loop 0x401603f
add eax, 0xca6725c7
add eax, 0x359a06a0
mov ebx, eax
add eax, 0xc591d54f
add eax, 0x3a6e2ab6
mov ecx, 0x606edbfe
add ecx, 0xa3912402
add ecx, dword [ebp - 0x28]
call ebx
leave
ret