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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040feaa
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x411364
jmp 0x411530
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], 0
jne 0x4113af
mov dword [ebp - 0xc], 0x20000
push 1
push dword [ebp - 0xc]
call fcn.0040e2a9
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4113ad
mov dword [ebp - 0x1c], 0x8007000e
push dword [ebp - 0x1c]
push 0x312
push 0x405ffc
call fcn.0040e33f
jmp 0x411530
jmp 0x4113f4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call fcn.0040e2cb
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4113ee
mov dword [ebp - 0x1c], 0x8007000e
push dword [ebp - 0x1c]
push 0x319
push 0x405ffc
call fcn.0040e33f
jmp 0x411530
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
and dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411458
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.00407c6d
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x41143c
mov dword [ebp - 0x1c], 0x80004005
push dword [ebp - 0x1c]
push 0x321
push 0x405ffc
call fcn.0040e33f
jmp 0x411530
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call fcn.00411545
mov dword [ebp - 0x1c], eax
push 0x7a
call fcn.00407c6d
cmp eax, dword [ebp - 0x1c]
je 0x411364
cmp dword [ebp - 0x1c], 0
jge 0x411496
jmp 0x411530
push 1
push dword [ebp - 4]
call fcn.0040e2a9
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x4114cc
mov dword [ebp - 0x1c], 0x8007000e
push dword [ebp - 0x1c]
push 0x32a
push 0x405ffc
call fcn.0040e33f
jmp 0x411530
push 1
mov eax, dword [ebp - 8]
push dword [eax + 0x20]
call fcn.0040e2a9
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x411505
mov dword [ebp - 0x1c], 0x8007000e
push dword [ebp - 0x1c]
push 0x32d
push 0x405ffc
call fcn.0040e33f
jmp 0x411530
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00439b40
add esp, 0xc
mov eax, dword [ebp - 8]
push dword [eax + 0x20]
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
call fcn.00439b40
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x41153e
push dword [ebp - 0x18]
call fcn.0040e2f0
mov eax, dword [ebp - 0x1c]
leave
ret 4
Function at 0x411aad
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x450060]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x34], 0
or dword [ebp - 0x2c], 0xffffffff
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push dword [ebp + 8]
call fcn.004103b7
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x411b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
call fcn.00407c6d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x411b09
mov dword [ebp - 0x34], 0x80004005
push dword [ebp - 0x34]
push 0x40d
push 0x405ffc
call fcn.0040e33f
jmp 0x411c56
and dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
call fcn.00407c6d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x411b63
mov dword [ebp - 0x34], 0x80004005
push dword [ebp - 0x34]
push 0x414
push 0x405ffc
call fcn.0040e33f
jmp 0x411c56
cmp dword [ebp - 0x30], 0x24
je 0x411b9f
push 0x1e
call fcn.00407c6d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x411b9f
jmp 0x411c56
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x28]
je 0x411be5
cmp dword [ebp + 0xc], 0
jne 0x411bd1
cmp dword [ebp - 0x28], 0xb0c50000
je 0x411be5
cmp dword [ebp - 0x28], 0xb0c50001
je 0x411be5
cmp dword [ebp - 0x28], 0xb0c50002
je 0x411be5
cmp dword [ebp - 0x28], 0xb0c50003
je 0x411be5
push 0xd
call fcn.00407c6d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x411be5
jmp 0x411c56
cmp dword [ebp + 0x10], 0
je 0x411c14
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
call fcn.0043bb79
add esp, 0xc
test eax, eax
je 0x411c14
push 0xd
call fcn.00407c6d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x411c14
jmp 0x411c56
cmp dword [ebp + 0x14], 0
je 0x411c4a
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0xffffffff
jne 0x411c2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x411c4a
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x14]
je 0x411c4a
push 0xd
call fcn.00407c6d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x411c4a
jmp 0x411c56
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
or dword [ebp - 0x2c], 0xffffffff
cmp dword [ebp - 0x2c], 0xffffffff
je 0x411c69
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cd6d
leave
ret 0x14
Function at 0x411c7a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x450060]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x38], 0
and dword [ebp - 0x2c], 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040feaa
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x411cc7
jmp 0x411e23
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
call fcn.00407c6d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x411d03
mov dword [ebp - 0x34], 0x80004005
push dword [ebp - 0x34]
push 0x458
push 0x405ffc
call fcn.0040e33f
jmp 0x411e23
cmp dword [ebp - 0x2c], 0x24
je 0x411d3f
push 0x1e
call fcn.00407c6d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x411d3f
jmp 0x411e23
push 0
push dword [ebp - 0x10]
call fcn.0040e2a9
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x411d75
mov dword [ebp - 0x34], 0x8007000e
push dword [ebp - 0x34]
push 0x462
push 0x405ffc
call fcn.0040e33f
jmp 0x411e23
push 0x24
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call fcn.00439b40
add esp, 0xc
mov dword [ebp - 0x38], 0x24
and dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411deb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
call fcn.00407c6d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x411dd5
mov dword [ebp - 0x34], 0x80004005
push dword [ebp - 0x34]
push 0x46c
push 0x405ffc
call fcn.0040e33f
jmp 0x411e23
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x2c], 0
jne 0x411d91
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x10]
je 0x411e16
push 0x1e
call fcn.00407c6d
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x411e16
jmp 0x411e23
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x14], ecx
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
je 0x411e31
push dword [ebp - 0x30]
call fcn.0040e2f0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cd6d
leave
ret 4
Function at 0x429f94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00442c76
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00429f29
leave
ret 0xc

Function at 0x42cd6d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450060]
jne 0x42cd77
repz ret
jmp fcn.0042ed2a

Function at 0x43329b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x450060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042e50a
and dword [ebp - 0x14], 0
cmp dword [0x451f30], 0
mov dword [ebp - 0x18], eax
jne 0x43334e
push 0x402080
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4333f6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402074
push ebx
call edi
test eax, eax
je 0x4333f6
mov esi, dword [fcn.00403194]
push eax
call esi
push 0x402064
push ebx
mov dword [0x451f30], eax
call edi
push eax
call esi
push 0x402050
push ebx
mov dword [0x451f34], eax
call edi
push eax
call esi
push 0x402034
push ebx
mov dword [0x451f38], eax
call edi
push eax
call esi
mov dword [0x451f40], eax
test eax, eax
je 0x43334e
push 0x40201c
push ebx
call edi
push eax
call esi
mov dword [0x451f3c], eax
mov eax, dword [0x451f3c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00403190]
cmp eax, ecx
je 0x4333a7
cmp dword [0x451f40], ecx
je 0x4333a7
push eax
call esi
push dword [0x451f40]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4333a7
test ebx, ebx
je 0x4333a7
call edi
test eax, eax
je 0x43339e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43339e
test byte [ebp - 8], 1
jne 0x4333a7
or dword [ebp + 0x10], 0x200000
jmp 0x4333da
mov eax, dword [0x451f34]
cmp eax, dword [ebp - 0x18]
je 0x4333da
push eax
call esi
test eax, eax
je 0x4333da
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4333da
mov eax, dword [0x451f38]
cmp eax, dword [ebp - 0x18]
je 0x4333da
push eax
call esi
test eax, eax
je 0x4333da
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x451f30]
call esi
test eax, eax
je 0x4333f6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4333f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cd6d
leave
ret

Function at 0x449340
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
pop ebp
ret 4
Function at 0x449fc0
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x450060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x24]
push edi
mov ecx, ebx
and ecx, 0x3f
mov edi, 0x40
sub edi, ecx
cmp edi, 8
mov dword [ebp - 0x50], eax
ja 0x449ff5
add edi, 0x40
lea edx, [edi - 8]
push edx
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0042cd80
mov ecx, dword [esi + 0x20]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, 0x1d
or ecx, edx
add esp, 0xc
mov dword [ebp - 0x58], ecx
push 2
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp + edi - 0x54]
lea eax, [ebx*8]
push edx
mov byte [ebp - 0x4c], 0x80
mov dword [ebp - 0x54], eax
call fcn.0044a0b0
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.00449eb0
mov ecx, dword [ebp - 0x50]
push 8
push esi
push ecx
call fcn.0044a0b0
xor eax, eax
push 0x40
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
push eax
add esi, 0x28
push esi
call fcn.0042cd80
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cd6d
mov esp, ebp
pop ebp
ret 8
Function at 0x402f7f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 1
mov ecx, dword [ebp - 8]
call fcn.004025ae
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004192c5
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.00418f5c
test eax, eax
je 0x40300c
push 1
mov ecx, dword [ebp - 8]
call fcn.004036a0
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x402574
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0
je 0x403005
push 2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
jmp 0x40300e
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406947
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x3c], 5
mov byte [ebp - 0x3b], 5
mov byte [ebp - 0x3a], 5
mov byte [ebp - 0x39], 0
mov byte [ebp - 0x38], 1
mov byte [ebp - 0x37], 2
mov byte [ebp - 0x36], 6
mov byte [ebp - 0x35], 7
mov byte [ebp - 0x34], 8
mov byte [ebp - 0x33], 3
mov byte [ebp - 0x32], 4
mov byte [ebp - 0x31], 5
mov byte [ebp - 0x30], 9
mov byte [ebp - 0x2f], 0xa
mov byte [ebp - 0x2e], 0xb
mov byte [ebp - 0x2d], 0x12
mov byte [ebp - 0x2c], 0x13
mov byte [ebp - 0x2b], 0x14
mov byte [ebp - 0x2a], 0xc
mov byte [ebp - 0x29], 0xd
mov byte [ebp - 0x28], 0xe
mov byte [ebp - 0x27], 0xf
mov byte [ebp - 0x26], 0x10
mov byte [ebp - 0x25], 0x11
mov byte [ebp - 0x24], 0x15
mov byte [ebp - 0x23], 0x16
mov byte [ebp - 0x22], 0x17
mov byte [ebp - 0x21], 0x18
mov byte [ebp - 0x20], 0x19
mov byte [ebp - 0x1f], 0x1a
mov byte [ebp - 0x1e], 0x1b
mov byte [ebp - 0x1d], 0x1c
mov byte [ebp - 0x1c], 0x1d
mov byte [ebp - 0x1b], 0x17
mov byte [ebp - 0x1a], 0x17
mov byte [ebp - 0x19], 0x17
mov byte [ebp - 0x18], 0xe
mov byte [ebp - 0x17], 0xe
mov byte [ebp - 0x16], 0xe
mov byte [ebp - 0x15], 0x21
mov byte [ebp - 0x14], 0x22
mov byte [ebp - 0x13], 0x20
mov byte [ebp - 0x12], 0x1f
mov byte [ebp - 0x11], 0x1e
mov byte [ebp - 0x10], 0x17
mov byte [ebp - 0xf], 0x17
mov byte [ebp - 0xe], 0x27
mov byte [ebp - 0xd], 0x23
mov byte [ebp - 0xc], 0x24
mov byte [ebp - 0xb], 0x25
mov byte [ebp - 0xa], 0x26
mov byte [ebp - 9], 0x44
mov byte [ebp - 8], 0x45
mov ecx, dword [ebp - 0x40]
call fcn.00409500
push eax
call fcn.00406a75
add esp, 4
mov byte [ebp - 4], al
mov eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0xff
jne 0x406a6e
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov dl, byte [ecx + 0x2b]
cmp edx, 0x35
jge 0x406a6a
mov ecx, dword [ebp - 0x40]
call fcn.00406610
and eax, 0xff
mov al, byte [ebp + eax - 0x3c]
mov byte [ebp - 4], al
jmp 0x406a6e
mov byte [ebp - 4], 0x45
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40971d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00409caa
push 2
mov eax, dword [ebp + 0xc]
and eax, 0xffff
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409795
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 8]
call fcn.00409eec
and eax, 0xffff
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 4]
lea edx, [ecx + eax*4 + 0x28]
mov eax, dword [ebp - 8]
mov dword [eax + 4], edx
mov eax, 1
jmp 0x409797
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x411db9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov byte [ebp - 0x420], 0x31
mov byte [ebp - 0x41f], 0x32
mov byte [ebp - 0x41e], 0x33
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0xc], 0
push 5
mov ecx, dword [ebp + 8]
call fcn.004183f7
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x80000000
jne 0x411e05
mov eax, 5
jmp 0x411fa1
push 2
mov ecx, dword [ebp + 8]
call fcn.004183f7
mov word [ebp - 8], ax
mov eax, dword [ebp - 8]
and eax, 0xffff
cmp eax, 0x8000
jne 0x411e2c
mov eax, 5
jmp 0x411fa1
mov ecx, dword [ebp - 8]
and ecx, 0xffff
cmp ecx, 0xffff
jne 0x411e43
mov word [ebp - 8], 0
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x820]
push eax
mov ecx, 0x492f90
call fcn.004179a5
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x418]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp + eax - 0x420]
mov byte [ecx], dl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0x2e
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
jne 0x411ead
jmp 0x411ee1
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx]
cmp eax, 0xa
jne 0x411ecd
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
jmp 0x411ee1
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x411e96
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx]
test eax, eax
jne 0x411eee
jmp 0x411f12
mov cl, byte [ebp - 0xc]
add cl, 1
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
and edx, 0xff
cmp edx, 3
jl 0x411f0d
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
jmp 0x411f12
jmp 0x411e6a
call fcn.0040b922
test eax, eax
je 0x411f3d
mov ecx, dword [0x4b5fd8]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
call fcn.00449d96
mov edx, dword [0x4b6a68]
push edx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [ebp - 8]
and eax, 0xffff
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.0042de12
add esp, 8
and eax, 0xff
mov dword [ebp - 0x41c], eax
mov edx, dword [ebp - 0x41c]
add edx, 1
push edx
mov ecx, dword [ebp + 8]
call fcn.004184eb
call fcn.0040b922
test eax, eax
je 0x411f9c
cmp dword [ebp - 4], 0
jne 0x411f9c
push 0
mov eax, dword [0x4b5fd8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4b6a68]
push ecx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x418ed4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.00418e90
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x419102
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x41915a
mov dword [ebp - 0xc], 0
jmp 0x419125
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x419154
cmp dword [ebp - 0xc], 5
jle 0x419152
xor eax, eax
jmp 0x419161
jmp 0x419156
jmp 0x419158
jmp 0x41911c
jmp 0x41915e
xor eax, eax
jmp 0x419161
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x41923c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x419274
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x419274
xor eax, eax
jmp 0x419277
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4193a5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4193db
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4193db
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret