joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10dde0a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10e34748
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push ebp
mov ebp, 1
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], 0x81
mov dword [esi + 8], 0xc6c
mov dword [esi + 0xc], 0x1e
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov eax, dword [esp + 0x24]
lea edi, [esi + 0x44]
add eax, 7
mov dword [esi], 0x10ea0910
sar eax, 3
push ebp
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [edi], ebx
mov dword [edi + 4], eax
mov dword [edi + 8], eax
call fcn.109b8e40
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x48]
mov edx, dword [edi]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
xor eax, eax
mov edx, ecx
shr ecx, 2
and edx, 3
rep stosd dword es:[edi], eax
mov ecx, edx
rep stosb byte es:[edi], al
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
or eax, 0x80000000
mov dword [esi + 8], eax
pop edi
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x10dde190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10e34765
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
xor ebp, ebp
mov eax, 1
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], 0x81
mov dword [esi + 8], 0xc6c
mov dword [esi + 0xc], 0x1e
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], 0xffffffff
mov ebx, dword [esp + 0x28]
lea edi, [esi + 0x44]
mov dword [esi], 0x10ea08a8
add ebx, 7
sar ebx, 3
push eax
mov ecx, edi
mov dword [esp + 0x20], ebp
mov dword [edi], ebp
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.109b8e40
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 8]
mov dword [esi + 0x50], eax
mov eax, 1
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x24]
or edx, 0x80000000
cmp eax, ebp
mov byte [esp + 0x1c], 1
mov dword [esi + 0x54], ebp
mov dword [esi + 8], edx
je 0x10dde259
mov ecx, dword [edi]
push ebx
push eax
push ecx
call fcn.10902f60
add esp, 0xc
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x10dfd750
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x70
mov eax, dword [0x10f80b60]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x6c], eax
push ebx
xor ebx, ebx
xor eax, eax
mov dword [esp + 5], eax
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov word [esp + 0x11], ax
push esi
mov byte [esp + 0x17], al
mov eax, edx
push edi
mov byte [esp + 0xc], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10dfd785
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x10ee6be4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0x67452301
mov dword [esp + 0x34], 0xefcdab89
mov dword [esp + 0x38], 0x98badcfe
mov dword [esp + 0x3c], 0x10325476
call fcn.10dfd580
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.10dfd640
mov edi, dword [esp + 0x84]
mov ebx, dword [0x10e43738]
xor esi, esi
jmp 0x10dfd7f0
movzx edx, byte [esp + esi + 0xc]
push edx
push str._02X
push edi
call ebx
add esp, 0xc
inc esi
add edi, 2
cmp esi, 0x10
jl 0x10dfd7f0
mov ecx, dword [esp + 0x78]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.10ddeddf
add esp, 0x70
ret

Function at 0x10dfe5a0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x490
mov eax, dword [0x10f80b60]
push ebx
push esi
mov esi, dword [esp + 0x49c]
push edi
push 0x10ecdbd8
push esi
mov dword [esp + 0x4a0], eax
call dword [0x10e436c4]
mov edi, eax
xor ebx, ebx
add esp, 8
cmp edi, ebx
jne 0x10dfe5fa
push esi
push str._s_cant_be_opened_n
call dword [0x10e436c0]
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48c]
call fcn.10ddeddf
add esp, 0x490
ret
mov esi, dword [0x10e435dc]
push edi
push 0x400
lea eax, [esp + 0xa0]
push 1
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
call esi
add esp, 0x10
cmp eax, ebx
je 0x10dfe66c
push eax
lea ecx, [esp + 0x9c]
push ecx
lea ebx, [esp + 0x24]
call fcn.10dfe410
push edi
push 0x400
lea edx, [esp + 0xa8]
push 1
push edx
call esi
add esp, 0x18
test eax, eax
jne 0x10dfe641
lea eax, [esp + 0xc]
push ebp
push eax
lea esi, [esp + 0x24]
call fcn.10dfe4d0
push edi
call dword [0x10e43534]
mov ebp, dword [0x10e43738]
add esp, 8
xor esi, esi
lea edi, [esp + 0x79]
mov bl, byte [esp + esi + 0x10]
movzx ecx, bl
push ecx
lea edx, [edi - 1]
push str._02x
push edx
call ebp
shl bl, 4
movzx eax, bl
push eax
push str._02x
push edi
call ebp
add esp, 0x18
inc esi
add edi, 2
cmp esi, 0x10
jl 0x10dfe691
mov eax, dword [esp + 0x4a8]
mov edi, eax
pop ebp
mov ecx, 8
lea esi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x498]
pop edi
pop esi
mov byte [eax + 0x20], 0
mov eax, 1
pop ebx
call fcn.10ddeddf
add esp, 0x490
ret
Function at 0x113e7070
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x113fde98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x11403034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x14], edi
push 0x113ea130
call fcn.113ed504
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
push 0x113ffd14
call fcn.113e9a40
call fcn.113e8d40
push eax
push 0x113ffd18
call fcn.113e9a40
call fcn.113e8fd0
push eax
call fcn.113e9a40
push 0x1140452c
call fcn.113e9a40
add esp, 0x14
call fcn.113e80b0
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x113e71cc
push 0x113ffd20
call fcn.113e9a40
add esp, 4
call fcn.113e81b0
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x113e71cc
push 0x113ffd24
call fcn.113e9a40
add esp, 4
call fcn.113e7550
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x10], eax
call fcn.113eadd0
call fcn.113e7640
test al, al
je 0x113e71cc
push 0x113ffd28
call fcn.113e9a40
add esp, 4
call fcn.113e8c70
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x113e7170
push esi
push 0x113ffd2c
call fcn.113e9a40
push esi
push 1
jmp 0x113e71c4
push 0x113ffd38
call fcn.113e9a40
add esp, 4
call fcn.113e9020
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x113e719b
push esi
push 0x113ffd3c
call fcn.113e9a40
push esi
push 2
jmp 0x113e71c4
push 0x113ffd48
call fcn.113e9a40
add esp, 4
call fcn.113e8da0
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x113e71e0
push esi
push 0x113ffd08
call fcn.113e9a40
push esi
push 3
call fcn.113ead80
add esp, 0x10
call fcn.113e8d60
lea esi, [ebp - 0x14]
call fcn.113ea150
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x113ffd4c
call fcn.113e9a40
add esp, 4
call fcn.113e8d60
lea esi, [ebp - 0x14]
call fcn.113ea150
call fcn.113e9650
cmp eax, 1
jne 0x113e7214
push edi
push edi
push edi
push 0x113e9480
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], edi
call fcn.113e7010
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x113e7236
push eax
call fcn.113ed504
add esp, 4
mov dword [ebp - 0x14], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x113e7640
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x408
mov eax, dword [0x11403034]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea esi, [esp + 4]
mov ecx, eax
call fcn.113e9e00
cmp eax, 1
je 0x113e768b
mov al, 1
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.113ebef6
add esp, 0x408
ret
push ebx
mov dword [esp + 8], 0
xor bl, bl
call fcn.113e7550
mov esi, eax
call fcn.113e9cf0
test eax, eax
jne 0x113e76a8
mov bl, 1
test bl, bl
sete al
push edi
push eax
call fcn.113e9ba0
mov edi, esi
call fcn.113ea2a0
cmp bl, 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x113e7741
lea edi, [esp + 0xc]
call fcn.113e9c80
call ebx
sub eax, dword [esp + 0xc]
cmp eax, 0x2710
jae 0x113e7741
push 0x3ff
lea ecx, [esp + 0x15]
push 0
push ecx
mov byte [esp + 0x1c], 0
call fcn.113eed70
push 0x113ffd70
lea edx, [esp + 0x20]
push 0x3ff
push edx
call fcn.113ebf80
push 0x113ffdbc
call fcn.113e9a40
add esp, 0x1c
push 0
push 0x113ffdd0
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.113ebef6
add esp, 0x408
ret
call ebx
push eax
call fcn.113e9c10
mov ecx, dword [esp + 0x410]
pop edi
pop ebx
pop esi
xor ecx, esp
mov al, 1
call fcn.113ebef6
add esp, 0x408
ret
Function at 0x113e90f0
Capabilities:
Create process memory minidump

Disassembly:
sub esp, 0x288
mov eax, dword [0x11403034]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push 0x104
lea eax, [esp + 0x185]
push 0
push eax
mov byte [esp + 0x18c], 0
call fcn.113eed70
push 0x103
lea ecx, [esp + 0x8d]
push 0
push ecx
mov byte [esp + 0x94], 0
call fcn.113eed70
push 0x63
lea edx, [esp + 0x35]
push 0
push edx
mov byte [esp + 0x3c], 0
call fcn.113eed70
push 0
call fcn.113ec62e
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x34], edx
call fcn.113ec92f
add esp, 0x2c
push 0x104
lea ecx, [esp + 0x80]
push ecx
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x113e91c8
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x113e9195
sub eax, edx
cmp byte [esp + eax + 0x7b], 0x5c
lea eax, [esp + eax + 0x7b]
je 0x113e91c8
jmp 0x113e91b0
cmp byte [eax], 0x2f
je 0x113e91c8
lea edx, [esp + 0x7c]
cmp eax, edx
je 0x113e91c8
mov byte [eax], 0
sub eax, 1
cmp byte [eax], 0x5c
jne 0x113e91b0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push eax
add ecx, 1
push ecx
add edx, 0x76c
push edx
push 0x113fff38
lea eax, [esp + 0x34]
push 0x64
push eax
call fcn.113ebf80
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0xa4]
push edx
push 0x113fff58
lea eax, [esp + 0x1b0]
push 0x104
push eax
call fcn.113ebf80
add esp, 0x38
push 0
push 0
push 2
push 0
push 1
push 0x10000000
lea ecx, [esp + 0x198]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x113e9280
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 2
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x288]
pop esi
xor ecx, esp
call fcn.113ebef6
add esp, 0x288
ret
Function at 0x113e9650
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x11403034]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.113eed70
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x113e96e7
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x113e96a0
sub eax, edx
cmp byte [esp + eax - 1], 0x5c
lea eax, [esp + eax - 1]
je 0x113e96cd
cmp byte [eax], 0x2f
je 0x113e96cd
lea edx, [esp]
cmp eax, edx
je 0x113e96cd
mov byte [eax], 0
sub eax, 1
cmp byte [eax], 0x5c
jne 0x113e96b6
push 0x113ffeb8
lea eax, [esp + 4]
push eax
mov ecx, eax
push 0x113ffffc
push ecx
call fcn.113ebf05
add esp, 0x10
lea eax, [esp]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x113e96f0
mov edx, dword [0x113fff90]
mov ecx, dword [0x113fff94]
mov dword [eax], edx
mov dx, word [0x113fff98]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp]
push eax
push 0
push 0x113fff9c
push 0x113fffa4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x104]
sub eax, 1
neg eax
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.113ebef6
add esp, 0x108
ret

Function at 0x113e9750
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x11403034]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.113eed70
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x113e97e7
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x113e97a0
sub eax, edx
cmp byte [esp + eax - 1], 0x5c
lea eax, [esp + eax - 1]
je 0x113e97cd
cmp byte [eax], 0x2f
je 0x113e97cd
lea edx, [esp]
cmp eax, edx
je 0x113e97cd
mov byte [eax], 0
sub eax, 1
cmp byte [eax], 0x5c
jne 0x113e97b6
push 0x113ffeb8
lea eax, [esp + 4]
push eax
mov ecx, eax
push 0x113ffffc
push ecx
call fcn.113ebf05
add esp, 0x10
lea eax, [esp]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x113e97f0
mov edx, dword [0x113fff90]
mov ecx, dword [0x113fff94]
mov dword [eax], edx
mov dx, word [0x113fff98]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp]
push eax
push 0
push 0x113fffa8
push 0x113fffa4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x104]
sub eax, 1
neg eax
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.113ebef6
add esp, 0x108
ret
Function at 0x113e9860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push 0x113fffb0
push edi
call fcn.113eca17
mov esi, eax
add esp, 8
test esi, esi
je 0x113e98b2
push ebx
push 2
push 0
push esi
call fcn.113ece98
push esi
call fcn.113ecda3
push 0
push 0
push esi
mov ebx, eax
call fcn.113ece98
push esi
call fcn.113ecf8f
add esp, 0x20
cmp ebx, 0x7d000
pop ebx
jle 0x113e98b2
push edi
call fcn.113ed2fd
add esp, 4
push 0x113fffb4
push edi
call fcn.113eca17
mov esi, eax
add esp, 8
test esi, esi
jne 0x113e98cc
lea eax, [esi + 1]
pop esi
pop ebp
ret
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x113e98d1
push esi
sub eax, edx
push eax
push 1
push ebp
call fcn.113ecb89
push esi
call fcn.113ecf8f
add esp, 0x14
pop esi
xor eax, eax
pop ebp
ret

Function at 0x113e9cf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10c
mov eax, dword [0x11403034]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.113eed70
push 0x113ffd60
lea ecx, [esp + 0x24]
push 0x113ffff4
push ecx
call fcn.113ebf05
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x18
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], eax
xor esi, esi
nop
call ebp
sub eax, dword [esp + 0x10]
cmp eax, 0xc8
jae 0x113e9d80
lea edx, [esp + 0x14]
push edx
push 0
push 0xf001f
call edi
push 0x64
mov esi, eax
call ebx
test esi, esi
je 0x113e9d50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x113e9d92
test esi, esi
je 0x113e9d8f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x113e9d92
or eax, 0xffffffff
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.113ebef6
add esp, 0x10c
ret

Function at 0x113e9db0
Capabilities:
Enumerate processes

Disassembly:
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x113e9de8
push edi
push esi
mov dword [edi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x113e9de1
cmp dword [edi + 8], ebx
je 0x113e9ded
push edi
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x113e9dd1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
Function at 0x113e9e00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
mov eax, dword [0x11403034]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push edi
push 0
push 2
mov ebx, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x113e9e60
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x113e9e59
cmp dword [esp + 0x10], ebx
je 0x113e9e79
lea ecx, [esp + 8]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x113e9e44
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.113ebef6
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x20]
lea edi, [esp + 0x130]
call fcn.113e9db0
cmp eax, 0xffffffff
je 0x113e9e60
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.113f871d
add esp, 8
test eax, eax
jne 0x113e9e60
mov ecx, dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x25c]
pop edi
pop ebx
xor ecx, esp
call fcn.113ebef6
mov esp, ebp
pop ebp
ret

Function at 0x113e9f50
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [0x1140581c]
sub esp, 0x1c
test eax, eax
jne 0x113e9fb3
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push 0x1c
lea eax, [esp + 4]
push eax
push 0x113e9ed0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 4]
test eax, eax
je 0x113e9fb3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp word [eax], 0x5a4d
mov dword [0x1140581c], eax
jne 0x113e9fb3
cmp dword [ecx], 0x4550
jne 0x113e9fb3
mov ecx, dword [ecx + 0x50]
mov dword [0x11405820], ecx
mov edx, dword [esp + 0x20]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
add esp, 0x1c
ret

Function at 0x113ea0a0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
push esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x1c
lea eax, [esp + 8]
push eax
xor esi, esi
push ecx
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 8]
cmp eax, esi
jne 0x113ea0e1
xor eax, eax
pop esi
add esp, 0x1c
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp word [eax], 0x5a4d
jne 0x113ea0f8
cmp dword [ecx], 0x4550
jne 0x113ea0f8
mov esi, dword [ecx + 0x50]
mov edx, dword [esp + 0x24]
mov dword [edx], esi
pop esi
add esp, 0x1c
ret
Function at 0x113ea480
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.113ea530
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
mov dword [esp + 0xc], eax
jbe 0x113ea4aa
call fcn.113ec5b9
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x113ea4b6
cmp ebx, edi
je 0x113ea4bb
call fcn.113ec5b9
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0xc]
je 0x113ea51c
test ebx, ebx
jne 0x113ea4ce
call fcn.113ec5b9
cmp esi, dword [ebx + 8]
jb 0x113ea4d8
call fcn.113ec5b9
cmp dword [esi + 0x104], 0
je 0x113ea51c
cmp esi, dword [ebx + 8]
jb 0x113ea4eb
call fcn.113ec5b9
mov edx, dword [esi + 0x104]
push 0
push 0
push 0
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
push eax
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x113eb5a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, eax
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x113eb5bd
pop edi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x113eb5dd
pop esi
pop edi
add esp, 0x1c
ret
mov eax, dword [esi + 0x3c]
movzx edx, word [eax + esi + 0x14]
add eax, esi
push ebx
push ebp
movzx ebp, word [eax + 6]
sub edi, esi
xor ebx, ebx
test ebp, ebp
lea ecx, [edx + eax + 0x18]
jbe 0x113eb622
lea eax, [ecx + 0x10]
lea esp, [esp]
mov edx, dword [eax]
mov esi, dword [eax - 8]
cmp edx, esi
mov ecx, dword [eax - 4]
ja 0x113eb60e
mov edx, esi
cmp edi, ecx
jb 0x113eb618
add edx, ecx
cmp edi, edx
jbe 0x113eb62c
add ebx, 1
add eax, 0x28
cmp ebx, ebp
jb 0x113eb600
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
mov eax, dword [esp + 0x34]
add ebx, 1
pop ebp
mov dword [eax], ebx
sub edi, ecx
mov ecx, dword [esp + 0x34]
pop ebx
pop esi
mov dword [ecx], edi
mov eax, 1
pop edi
add esp, 0x1c
ret

Function at 0x113ebe90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x11403034]
xor eax, esp
mov dword [esp + 0x404], eax
mov ecx, dword [esp + 0x40c]
push esi
lea eax, [esp + 0x414]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.113ed73f
mov edx, dword [0x1140570c]
add esp, 0xc
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
xor ecx, esp
call fcn.113ebef6
add esp, 0x408
ret

Function at 0x113ebef6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x11403034]
jne 0x113ebf00
repz ret
jmp fcn.113edfa8