joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004270
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100185e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x10020284]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.10003300
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100042c4
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.10003a40
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.10003300
cmp dword [esp + 0x24], 8
jb 0x1000430a
mov eax, dword [esp + 0x10]
push eax
call fcn.10005c0d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x100045b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
test edi, edi
push ebx
je 0x10004629
test eax, eax
je 0x10004629
push 0x1001ae70
push eax
push esi
xor bl, bl
call fcn.100063d0
add esp, 0xc
test eax, eax
jne 0x1000460d
mov eax, dword [esi]
test eax, eax
je 0x10004622
push eax
push 2
lea eax, [esp + 0x10]
push 1
push eax
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], 0xfe
call fcn.1000657f
mov ecx, dword [esi]
push ecx
push str.__xml_version_1.0____r_n
call fcn.10006262
add esp, 0x18
push edi
push esi
call fcn.10004630
test al, al
je 0x1000460d
mov bl, 1
mov eax, dword [esi]
test eax, eax
je 0x10004622
push eax
call fcn.10006673
add esp, 4
mov dword [esi], 0
mov al, bl
pop ebx
add esp, 8
ret
xor al, al
pop ebx
add esp, 8
ret
Function at 0x10004980
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100049b8
lea eax, [esp + 0xc]
push eax
push ebx
mov dword [esp + 0x14], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x100049c3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
call fcn.100051b0
mov ecx, dword [edi]
push ecx
push str._Threads__r_n
mov esi, eax
call fcn.10006262
add esp, 8
lea ebx, [ebx]
cmp dword [esp + 0x18], ebp
jne 0x10004a16
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 8]
push eax
push str._Thread_id__d__basePriority__d____r_n
shr ecx, 1
push ecx
push edx
call fcn.10005c12
mov eax, dword [edi]
mov ecx, dword [esi + 8]
add esp, 0x14
push eax
push ecx
call fcn.10006262
add esp, 8
lea edx, [esp + 0xc]
push edx
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100049e0
mov eax, dword [edi]
push eax
push str.__Threads__r_n
call fcn.10006262
push esi
call fcn.10005330
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret 4
Function at 0x100051b0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x10018278
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10020284]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [0x100222bc]
push 0xffffffffffffffff
xor edi, edi
push ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x28], edi
cmp dword [0x1002230c], edi
jbe 0x10005268
mov eax, dword [0x10022308]
mov esi, dword [eax]
cmp esi, eax
jne 0x10005211
call fcn.10005e53
mov eax, dword [0x10022308]
mov ebx, dword [esi + 8]
mov esi, dword [eax]
cmp esi, eax
jne 0x10005228
call fcn.10005e53
mov eax, dword [0x10022308]
cmp esi, eax
je 0x10005247
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
push esi
mov dword [edx + 4], eax
call fcn.10005c0d
add esp, 4
sub dword [0x1002230c], 1
cmp ebp, edi
je 0x10005252
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x14
call fcn.10005b94
add esp, 4
cmp eax, edi
je 0x1000528c
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0x2800
mov esi, eax
jmp 0x1000528e
xor esi, esi
cmp esi, edi
mov ebx, esi
je 0x10005301
mov ecx, dword [esi + 0x10]
push ecx
mov dword [esi], 1
call fcn.10005932
add esp, 4
cmp eax, edi
mov dword [esi + 8], eax
je 0x100052cc
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x10005247
mov edx, dword [esi + 8]
push edx
call fcn.10005d24
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x100052df
push eax
call fcn.10005d24
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x100052ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10005c0d
add esp, 4
lea esi, [esp + 0x18]
call fcn.10005170
jmp 0x1000530c
cmp ebp, edi
je 0x1000530c
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x10005610
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1001876c
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x10020284]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10020284]
xor eax, esp
push eax
lea eax, [esp + 0x2f4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x304]
xor ebp, ebp
push ebp
mov esi, ecx
lea ecx, [esp + 0xe8]
push ecx
push 0x104
push ebp
push esi
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x1000582f
push 0x40
lea edx, [esp + 0x84]
push ebp
push edx
call fcn.10009ae0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ebx, 1
mov eax, esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x7c], 0x44
mov dword [esp + 0xa8], ebx
mov word [esp + 0xac], 5
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], ebp
mov word [esp + 0xcc], bp
lea edx, [eax + 2]
jmp 0x100056e0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100056e0
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0xd0]
call fcn.10003b10
mov eax, esi
push eax
lea edi, [esp + 0x64]
mov dword [esp + 0x300], ebp
call fcn.100043d0
add esp, 4
mov byte [esp + 0x2fc], bl
push eax
mov ebx, 0x1001b19c
lea esi, [esp + 0x48]
call fcn.10004270
add esp, 4
mov ebx, dword [esp + 0x14]
push eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x300], 2
call fcn.10004270
add esp, 4
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xd0]
mov byte [esp + 0x304], 3
call fcn.10003300
mov esi, 8
cmp dword [esp + 0x40], esi
jb 0x10005774
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.10005c0d
add esp, 4
cmp dword [esp + 0x5c], esi
mov edi, 7
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], bp
jb 0x10005799
mov edx, dword [esp + 0x48]
push edx
call fcn.10005c0d
add esp, 4
cmp dword [esp + 0x78], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
jb 0x100057b9
mov eax, dword [esp + 0x64]
push eax
call fcn.10005c0d
add esp, 4
cmp dword [esp + 0xe0], esi
mov eax, dword [esp + 0xcc]
jae 0x100057d0
lea eax, [esp + 0xcc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x80]
push edx
push ebp
push ebp
push 0x20
push ebp
push ebp
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10005810
cmp dword [esp + 0xe0], esi
jb 0x10005809
mov eax, dword [esp + 0xcc]
push eax
call fcn.10005c0d
add esp, 4
mov eax, 1
jmp 0x10005832
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0xe0], esi
jb 0x1000582f
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.10005c0d
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x2f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.10005bfe
add esp, 0x2ec
ret

Function at 0x10005bfe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10020284]
jne 0x10005c08
repz ret
jmp fcn.10009cca
Function at 0x10005c89
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x10005cb6
call fcn.1000713f
mov dword [eax], esi
call fcn.1000712c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10005e2f
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x10005c92
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10005ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10007152
pop ecx
call fcn.1000712c
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x10005d0c
test al, 1
je 0x10005d0c
test byte [esp + 0xc], 2
je 0x10005d0c
call fcn.1000713f
mov dword [eax], 5
call fcn.1000712c
mov dword [eax], 0xd
jmp 0x10005cdc
xor eax, eax
pop esi
ret
Function at 0x10007170
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x1000719d
call fcn.1000713f
mov dword [eax], esi
call fcn.1000712c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10005e2f
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100071bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10007152
pop ecx
jmp 0x10007198
test byte [esp + 0xc], 0x80
je 0x100071c7
and eax, 0xfffffffe
jmp 0x100071ca
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100071ac
xor eax, eax
pop esi
ret

Function at 0x1000ba5c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10020570]
je 0x1000ba77
inc edi
cmp edi, 0x17
jb 0x1000ba68
cmp edi, 0x17
jae 0x1000bbf7
push ebp
push 3
call fcn.10012ac6
cmp eax, 1
pop ecx
je 0x1000bbc3
push 3
call fcn.10012ac6
test eax, eax
pop ecx
jne 0x1000baab
cmp dword [0x100217fc], 1
je 0x1000bbc3
cmp ebx, 0xfc
je 0x1000bbf6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10021bb8
push ebp
call fcn.10007401
add esp, 0xc
test eax, eax
je 0x1000bae1
push esi
push esi
push esi
push esi
push esi
call fcn.10005d33
add esp, 0x14
push 0x104
mov esi, 0x10021bd1
push esi
push 0
mov byte [0x10021cd5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000bb25
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10007401
add esp, 0xc
test eax, eax
je 0x1000bb25
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10005d33
add esp, 0x14
push esi
call fcn.10007480
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000bb6a
push esi
call fcn.10007480
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10021ecc
push 0x1001a294
sub ecx, eax
push ecx
push eax
call fcn.10010776
add esp, 0x14
test eax, eax
je 0x1000bb6a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10005d33
add esp, 0x14
jmp 0x1000bb6c
xor esi, esi
push 0x1001a290
push ebx
push ebp
call fcn.10010705
add esp, 0xc
test eax, eax
je 0x1000bb8c
push esi
push esi
push esi
push esi
push esi
call fcn.10005d33
add esp, 0x14
push dword [edi*8 + 0x10020574]
push ebx
push ebp
call fcn.10010705
add esp, 0xc
test eax, eax
je 0x1000bbae
push esi
push esi
push esi
push esi
push esi
call fcn.10005d33
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10012909
add esp, 0xc
jmp 0x1000bbf6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000bbf6
cmp ebp, 0xffffffff
je 0x1000bbf6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10020574]
push dword [esi]
call fcn.10007480
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10012909
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000a377
xor ebx, ebx
cmp dword [0x100221e0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100129df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10012abf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10012abf
push eax
call fcn.1000a309
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100221e0], eax
call esi
push eax
call fcn.1000a309
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100221e4], eax
call esi
push eax
call fcn.1000a309
mov dword [0x100221e8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000b809
test eax, eax
pop ecx
pop ecx
je 0x100129ad
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10005d33
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100129df
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000a309
cmp eax, ebx
pop ecx
mov dword [0x100221f0], eax
je 0x100129df
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000a309
pop ecx
mov dword [0x100221ec], eax
mov eax, dword [0x100221ec]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10012a64
cmp dword [0x100221f0], ecx
je 0x10012a64
push eax
call fcn.1000a380
push dword [0x100221f0]
mov esi, eax
call fcn.1000a380
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10012a64
cmp edi, ebx
je 0x10012a64
call esi
cmp eax, ebx
je 0x10012a31
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10012a31
test byte [ebp - 0x18], 1
jne 0x10012a64
lea eax, [ebp - 0x10]
push eax
call fcn.1000b840
test eax, eax
pop ecx
je 0x10012a4c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10005d33
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10012a5b
or dword [ebp + 0x10], 0x200000
jmp 0x10012a9f
or dword [ebp + 0x10], 0x40000
jmp 0x10012a9f
mov eax, dword [0x100221e4]
cmp eax, dword [ebp - 8]
je 0x10012a9f
push eax
call fcn.1000a380
cmp eax, ebx
pop ecx
je 0x10012a9f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10012a9f
mov eax, dword [0x100221e8]
cmp eax, dword [ebp - 8]
je 0x10012a9f
push eax
call fcn.1000a380
cmp eax, ebx
pop ecx
je 0x10012a9f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100221e0]
call fcn.1000a380
cmp eax, ebx
pop ecx
je 0x10012abf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10012ac1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001785
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x100017d6
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x100017e7
push 0xd
pop eax
jmp 0x10001814
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x100017ea
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x10001f9b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x10021d68]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.10001724
mov ebx, eax
cmp ebx, esi
je 0x1000200b
lea ecx, [ebp - 0x70]
call fcn.1000167b
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a6cf
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10002023
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.10001f9b
cmp eax, esi
jne 0x10002055
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x10002013
lea ecx, [ebp - 0x70]
call fcn.1000167b
push dword [ebp - 0x78]
mov ecx, edi
call fcn.10001620
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.1000167b
mov eax, esi
jmp 0x10001ff1
Function at 0x10005346
Capabilities:
Hide graphical window

Disassembly:
push esi
test ecx, ecx
je 0x10005350
lea esi, [ecx - 0xc]
jmp 0x10005352
xor esi, esi
lea eax, [esi + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x88]
test esi, esi
je 0x1000536e
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8

Function at 0x100097b7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10023104], 0
push esi
jne 0x1000972a
call fcn.10009650
test eax, eax
je 0x1000976d
mov eax, dword [0x10023104]
cmp eax, 1
jne 0x1000974b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1000976d
pop esi
ret
push eax
call dword [0x1002310c]
test eax, eax
jne 0x100097b5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10009771
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10023104]
call dword [0x1002310c]
mov edi, eax
test edi, edi
je 0x10009796
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100097b2
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10023104]
call dword [0x10023108]
add edi, 0x10
cmp edi, esi
jb 0x1000979e
mov eax, edi
pop edi
pop esi
ret
jmp 0x10009717
Function at 0x4011d0
Capabilities:
Create process on windows
Create process suspended
Create thread

Disassembly:
sub esp, 0x54
push ebx
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
mov ebx, ecx
call fcn.0041ecc0
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push 4
push eax
push eax
push eax
push str.mfc32.dat
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401282
mov eax, dword [esp + 8]
push 0
push eax
push str.mfc32.dll
call fcn.00401150
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40128e
mov ecx, dword [0x4429cc]
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push 0
push 0
push ecx
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4429cc]
push 0x4000
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov edx, dword [ebx]
mov eax, dword [edx + 0x15c]
mov ecx, ebx
call eax
pop esi
pop ebx
add esp, 0x54
ret

Function at 0x4012c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401314
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401310
lea ebx, [ebx]
cmp esi, eax
jae 0x401314
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401300
cmp esi, eax
jb 0x40131a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404e1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x404e42
cmp dword [edi + 0x54], 0
jne 0x404e42
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040ce8e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00404ddf
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4053af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4053f7
call fcn.0040ce8e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4053f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40543a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x405423
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x405423
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x405437
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40b1be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40b205
call fcn.0040ce8e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40b205
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40b221
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040ad38
mov esi, eax
test edi, edi
je 0x40b21f
test ebx, ebx
je 0x40b21f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40b96d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4310d6
call fcn.0041f2d4
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40b992
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40b9d8
lea ecx, [ebp - 0x10]
call fcn.004017f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b228
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401370
mov eax, esi
call fcn.0041f3ac
ret 8

Function at 0x41e833
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441598]
jne 0x41e83d
repz ret
jmp fcn.00423fdc