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

Disassembly:
mov eax, dword [edx + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x10001e01
push dword [esp + 8]
push dword [esp + 8]
push edx
call ecx
add esp, 0xc
ret
push dword [eax + 0x38]
push dword [esp + 0xc]
push 1
push dword [esp + 0x10]
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
ret

Function at 0x10005305
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x10005333
push esi
call fcn.10009b3e
cmp dword [esi + 0x40], 0
pop ecx
je 0x1000532c
xor eax, eax
mov dword [esi + 0x14], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x100053a3
mov eax, dword [esi + 0x1b4]
cmp dword [eax + 0x10], 0
je 0x10005395
mov eax, dword [esi + 8]
test eax, eax
je 0x10005354
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b4]
push esi
call dword [eax]
pop ecx
test eax, eax
je 0x10005391
cmp eax, 2
je 0x10005395
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10005349
cmp eax, 3
je 0x10005378
cmp eax, 1
jne 0x10005349
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x10005349
mov ecx, dword [esi + 0x140]
add dword [eax + 8], ecx
jmp 0x10005349
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x100053c1
cmp eax, 0xcc
je 0x100053c1
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.100051d0
pop esi
ret

Function at 0x10013389
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10013398
pop dword [ebp - 0x34]
mov eax, 0x10013398
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x86701cc
add dword [ebp - 0x44], 0x45eb437f
mov dword [ebp - 0x40], 0x95e20a7d
sub dword [ebp - 0x40], 0x63aebe38
mov dword [ebp - 0x3c], 0xe13c74f3
add dword [ebp - 0x3c], 0x6b0fcf3b
mov dword [ebp - 0x38], 0xebbbfdc6
sub dword [ebp - 0x38], 0xebbbfdc6
lea eax, [ebp - 0x44]
push eax
mov eax, 0x893f9416
sub eax, 0x793da3d6
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xb878ae5d
sub dword [ebp - 0x44], 0x44064507
mov dword [ebp - 0x40], 0xbc5726ec
add dword [ebp - 0x40], 0x85153a89
mov dword [ebp - 0x3c], 0x32897d7c
add dword [ebp - 0x3c], 0x30e5eef0
mov dword [ebp - 0x38], 0xa088e669
sub dword [ebp - 0x38], 0xa088e669
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xf5250864
add eax, 0x1adce7e0
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x39229
push 0
call eax
mov ecx, 0x841cf916
add ecx, 0x7be34fc4
xor edx, edx
add edx, eax
mov ebx, 0xa0a82394
sub ebx, 0x90a53194
add ebx, dword [ebp - 0x34]
mov esi, 0x531a2829
add esi, 0x17ab3bf1
add dword [ebp - 0x24], 0x4ab36e65
mov edi, dword [ebx]
add edi, esi
mov dword [edx], edi
xor dword [ebp - 0x1c], 0xcac0cb7f
add edx, 4
add ebx, 0x43b428c
add ebx, 0xfbc4bd78
loop 0x100134b7
add eax, 0x1163b
mov ebx, eax
add eax, 0x595d6b6c
add eax, 0xa6a29499
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x100030b9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10003548]
jne 0x10009f63
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1000c4d0], eax
mov dword [0x1000c4cc], ecx
mov dword [0x1000c4c8], edx
mov dword [0x1000c4c4], ebx
mov dword [0x1000c4c0], esi
mov dword [0x1000c4bc], edi
mov word [0x1000c4e8], ss
mov word [0x1000c4dc], cs
mov word [0x1000c4b8], ds
mov word [0x1000c4b4], es
mov word [0x1000c4b0], fs
mov word [0x1000c4ac], gs
pushfd
pop dword [0x1000c4e0]
mov eax, dword [ebp]
mov dword [0x1000c4d4], eax
mov eax, dword [ebp + 4]
mov dword [0x1000c4d8], eax
lea eax, [ebp + 8]
mov dword [0x1000c4e4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1000c420], 0x10001
mov eax, dword [0x1000c4d8]
mov dword [0x1000c3d4], eax
mov dword [0x1000c3c8], 0xc0000409
mov dword [0x1000c3cc], 1
mov eax, dword [0x10003548]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1000c198]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1000c418], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x1000a064
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1000c418], 0
jne 0x1000a04f
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 0x100076a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100076b2
pop dword [ebp - 0x40]
mov eax, 0x6038c8dd
add eax, 0xafc7add5
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x4020160b
add dword [ebp - 0x50], 0xe322f40
mov dword [ebp - 0x4c], 0x455aab0
sub dword [ebp - 0x4c], 0xd2225e6b
mov dword [ebp - 0x48], 0x2397b340
sub dword [ebp - 0x48], 0xd74b6f12
mov dword [ebp - 0x44], 0x2656dc4d
add dword [ebp - 0x44], 0xd9a923b3
lea eax, [ebp - 0x50]
push eax
mov eax, 0xe6bedf3
add eax, 0x1942309
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xa766cc41
sub dword [ebp - 0x50], 0x32f462eb
mov dword [ebp - 0x4c], 0xe8367e51
add dword [ebp - 0x4c], 0x5935e324
mov dword [ebp - 0x48], 0xe0c8839f
add dword [ebp - 0x48], 0x82a6e8cd
mov dword [ebp - 0x44], 0x8f810081
sub dword [ebp - 0x44], 0x8f810081
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3a745
push 0
call eax
mov ecx, 0x4e7f
xor edx, edx
add edx, eax
mov ebx, 0xa4875ee5
add ebx, 0x6b79891b
add ebx, dword [ebp - 0x40]
mov edi, 0x94657379
sub dword [ebp - 0x1c], esi
mov esi, dword [ebx]
add dword [ebp - 0x18], eax
add esi, edi
add dword [ebp - 0x34], 0xbd65fca7
mov dword [edx], esi
xor dword [ebp - 8], eax
add edx, 0x9ee54add
add edx, 0x611ab527
add ebx, 4
loop 0x100077c5
add eax, 0x12ccf
mov ebx, eax
add eax, 0x54199967
sub eax, 0x54199962
mov ecx, 0xaac42ce
add ecx, 0x553bd32
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x100081d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x10003548]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 3
push ebx
xor edi, edi
mov dword [ebp - 0x40c], 0x201
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x1000823f
push 0x402
lea eax, [ebp - 0x408]
push esi
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
js 0x10008239
lea esi, [ebp - 0x408]
xor edi, edi
test esi, esi
jne 0x10008241
mov esi, ebx
push 1
push 0
push esi
push 0x10008278
push 0x10004064
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x10008262
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100030b9
leave
ret 4
Function at 0x6d417400
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [0x6d41e7f8]
mov eax, dword [eax]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x22c]
call eax
test eax, eax
je 0x6d417450
push 0x502
push str..._.._.._src_share_demo_jvmti_hprof_hprof_util.c
push str.Unable_to_get_potential_JVMTI_capabilities.
push 0
push 0
call fcn.6d405ce0
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.6d405ca0
ret

Function at 0x6d417460
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x6d41e7f8]
mov eax, dword [eax]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x234]
call eax
test eax, eax
je 0x6d4174a3
push 0x50f
push str..._.._.._src_share_demo_jvmti_hprof_hprof_util.c
push str.Unable_to_get_necessary_JVMTI_capabilities.
push 0
push 0
call fcn.6d405ce0
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.6d405ca0
ret

Function at 0x6d417d33
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d41e108]
jne 0x6d417d3d
repz ret
jmp fcn.6d4181c2

Function at 0x6d417e7f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x6d417e8e
pop dword [ebp - 0x40]
mov eax, 0xd0ebb800
add eax, 0x9c55c68e
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x5c74cad2
sub dword [ebp - 0x50], 0xe228587
mov dword [ebp - 0x4c], 0x20f6edae
add dword [ebp - 0x4c], 0x113c5e97
mov dword [ebp - 0x48], 0xa18a6b9e
sub dword [ebp - 0x48], 0x553e2770
mov dword [ebp - 0x44], 0x632bd79
sub dword [ebp - 0x44], 0x632bd79
lea eax, [ebp - 0x50]
push eax
mov eax, 0x5910455f
sub eax, 0xebceb513
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x833cb31
add dword [ebp - 0x50], 0x6c3e9e25
mov dword [ebp - 0x4c], 0x413edf79
add dword [ebp - 0x4c], 0x2d81fc
mov dword [ebp - 0x48], 0xab1c1ebc
sub dword [ebp - 0x48], 0x47acb250
mov dword [ebp - 0x44], 0x30ba8df6
sub dword [ebp - 0x44], 0x30ba8df6
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x36bfb
push 0
call eax
mov ecx, 0xf0bb74b7
sub ecx, 0xf0bb2bbc
mov ebx, eax
mov edi, 0x93bc7e7f
add edi, 0xd9859b81
add edi, dword [ebp - 0x40]
mov edx, 0xb8c5eca6
sub edx, 0x8c5387bd
xor dword [ebp - 0x24], ebx
mov esi, dword [edi]
sub dword [ebp - 0x20], 0x65f60d0b
xor esi, edx
add dword [ebp - 8], eax
mov dword [ebx], esi
add ebx, 0xd51a0678
sub ebx, 0xd51a0674
add edi, 0x302f2d81
sub edi, 0x302f2d7d
loop 0x6d417fab
add eax, 0x116bf
xor ebx, ebx
add ebx, eax
add eax, 0xcae6d2bf
add eax, 0x35192d46
mov ecx, 0xa2eabd02
sub ecx, 0x35aabd02
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00406dc2
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00406dc2
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00406dc2
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00406dc2
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00406dc2
mov dword [0x41203c], eax
call fcn.00406dc2
test eax, eax
jge 0x402550
push 8
call fcn.00406dc2
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00406dc2
pop ecx
push 1
call fcn.00406dc2
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00406dc2
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00406dc2
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00406dc2
jmp 0x402495

Function at 0x406dc2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x406dd1
pop dword [ebp - 0x30]
mov eax, 0x65fc12e0
add eax, 0x9a445af1
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3c8d5
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x59e616aa
sub ecx, 0x59e5c1a3
mov edx, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x30]
mov esi, 0x8d6c5921
add dword [ebp - 0x20], esi
mov ebx, dword [edi]
xor dword [ebp - 0x24], 0xea89532f
add ebx, esi
xor dword [ebp - 0x18], 0x9a20138d
mov dword [edx], ebx
add dword [ebp - 0x20], 0x1f0f3d75
add edx, 0x3a40e7a6
add edx, 0xc5bf185e
add edi, 0x5831ea04
add edi, 0xa7ce1600
loop 0x406e1f
add eax, 0x730c587a
sub eax, 0x730b118b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x10015af3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10015b02
pop dword [ebp - 0x44]
mov eax, 0x26eb42d8
add eax, 0xe916182a
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xe5feb7c9
add dword [ebp - 0x54], 0x68538d82
mov dword [ebp - 0x50], 0x3c3356a5
sub dword [ebp - 0x50], 0xa000a60
mov dword [ebp - 0x4c], 0xa3e1e09b
add dword [ebp - 0x4c], 0xa86a6393
mov dword [ebp - 0x48], 0xbde237e6
sub dword [ebp - 0x48], 0xbde237e6
lea eax, [ebp - 0x54]
push eax
mov eax, 0xff0280c8
add eax, 0x10ff1f40
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xbaa6d5db
sub dword [ebp - 0x54], 0x46346c85
mov dword [ebp - 0x50], 0xb4907e5
add dword [ebp - 0x50], 0x36235990
mov dword [ebp - 0x4c], 0x90e3f2d
sub dword [ebp - 0x4c], 0xa59ed2c1
mov dword [ebp - 0x48], 0xafafb5f0
add dword [ebp - 0x48], 0x50504a10
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x487bc726
sub eax, 0x387a271a
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3cd32
push 0
call eax
mov ecx, 0x910215a2
add ecx, 0x6efe3c71
mov ebx, eax
mov esi, 0x6cdbc054
add esi, 0xa32689ac
add esi, dword [ebp - 0x44]
mov edx, 0xb4e8f42e
mov edi, dword [esi]
sub dword [ebp - 8], 0xa1bc9f1a
add edi, edx
sub dword [ebp - 0x20], eax
mov dword [ebx], edi
xor dword [ebp - 0x20], 0xc316a78e
add ebx, 0x8359ab1d
sub ebx, 0x8359ab19
add esi, 0xbbf32a1f
sub esi, 0xbbf32a1b
loop 0x10015c1e
add eax, 0x5c6ec7fc
add eax, 0xa3927323
xor ebx, ebx
add ebx, eax
add eax, 0x47de003b
sub eax, 0x47de0036
mov ecx, 0x6e0e251d
add ecx, 0xa1f1dae3
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4025b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x402619
push str.CreateToolhelp32Snapshot
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push str.Process32First
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push str.Process32Next
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x402638
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
je 0x402638
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x4026ba
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x402643
jmp 0x4026ba
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x4026ba
push str.ZwQuerySystemInformation
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push 0x420a98
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
push 0x420aa8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
push 0x420ab4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x402710
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00402790
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402736
xor al, al
jmp 0x402783
mov edx, dword [ebp - 4]
push edx
push 0x402bd0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x1388
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402769
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0xc], eax
jmp 0x402770
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0xc], 1
sete al
mov esp, ebp
pop ebp
ret 4
Function at 0x403b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.DATA
push 0x83
mov eax, dword [0x429e1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403b99
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x429e1c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403b99
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x429e1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
mov dword [edx], eax
cmp dword [ebp + 8], 0
ja 0x403b77
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x403b99
cmp dword [ebp + 0xc], 0
je 0x403b87
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____DATA_Resource_found_
call fcn.00408e70
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x403ba8
push str.CheckDataRes____No_DATA_Resource_found_
call fcn.00408e70
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404200
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
push 0x4213d4
push 0x88
mov eax, dword [0x429e1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x404233
xor eax, eax
jmp 0x404329
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [0x429e1c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404254
xor eax, eax
jmp 0x404329
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [0x429e1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
ja 0x40427f
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x404329
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40431c
push str.setup.cfg
push 0x429e38
push 0x4213f0
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411a1b
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40431c
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.ExtractCFGRes____Writefile__s__d
call fcn.00408e70
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4052c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x427330]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.00411070
add esp, 0xc
cmp dword [ebp - 4], 0
jle 0x4053c9
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.004114c7
add esp, 0xc
mov edx, dword [ebp - 4]
movzx eax, word [ebp + edx*2 - 0x21a]
cmp eax, 0x5c
jne 0x405345
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [ebp + edx*2 - 0x21a], cx
movzx eax, word [ebp - 0x218]
test eax, eax
jne 0x405354
xor eax, eax
jmp 0x4053cc
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4053c9
push 0x5c
lea edx, [ebp - 0x218]
push edx
call fcn.00406ad0
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4053b1
xor eax, eax
mov ecx, dword [ebp - 0x21c]
mov word [ecx], ax
lea edx, [ebp - 0x218]
push edx
call fcn.004052c0
add esp, 4
mov dword [ebp - 8], eax
mov eax, 0x5c
mov ecx, dword [ebp - 0x21c]
mov word [ecx], ax
cmp dword [ebp - 8], 0
je 0x4053c9
push 0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00411054
mov esp, ebp
pop ebp
ret

Function at 0x4053e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x427330]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call fcn.00410c60
add esp, 4
mov dword [ebp - 4], eax
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea ecx, [ebp - 0x117]
push ecx
call fcn.00411070
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x4054e0
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x118]
push eax
call fcn.00410bc8
add esp, 0xc
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 0x119]
cmp edx, 0x5c
jne 0x405463
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x119], 0
movsx ecx, byte [ebp - 0x118]
test ecx, ecx
jne 0x405472
xor eax, eax
jmp 0x4054e3
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4054e0
push 0x5c
lea eax, [ebp - 0x118]
push eax
call fcn.00406a90
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4054c8
mov ecx, dword [ebp - 0x11c]
mov byte [ecx], 0
lea edx, [ebp - 0x118]
push edx
call fcn.004053e0
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x11c]
mov byte [eax], 0x5c
cmp dword [ebp - 8], 0
je 0x4054e0
push 0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00411054
mov esp, ebp
pop ebp
ret