joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c500
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100275e0], eax
je 0x1000c51d
mov eax, 0x10dd
jmp 0x1000c600
mov eax, dword [0x100275f0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000c59c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000c578
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000c578
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000b5b0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000e0be
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000c525
mov dword [0x100275f0], 0
call fcn.1000be90
mov ecx, dword [0x100275ec]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000c5ea
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000e0be
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000c5b4
mov dword [0x100275ec], 0
mov dword [0x100275e0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000cae0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100275e4], 0
je 0x1000caf9
mov eax, dword [0x100275e4]
jmp 0x1000cb98
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000cb0a
xor eax, eax
jmp 0x1000cb98
push 8
call fcn.1000dd6f
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000cb62
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000cb4b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000e0be
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100275e4], eax
mov dword [0x100275e8], 0
mov eax, dword [ebp - 8]
jmp 0x1000cb98
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000cb7a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000cb2a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100275ec]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100275ec], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ea50
Capabilities:
Create thread

Disassembly:
sub dword [esp + 8], 1
jne 0x1000eae3
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push ebx
push 0x1000eaf0
push 0
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push 0
push 0
push ebx
push 0x1000f550
push 0
push 0
call edi
push eax
call esi
push 0
push 0
push ebx
push 0x1000f550
push 0
push 0
call edi
push eax
call esi
push 0
push 0
push ebx
push 0x1000f550
push 0
push 0
call edi
push eax
call esi
push 0
push 0
push ebx
push 0x1000f550
push 0
push 0
call edi
push eax
call esi
push 0
push 0
push ebx
push 0x1000f550
push 0
push 0
call edi
push eax
call esi
pop edi
pop esi
pop ebx
mov eax, 1
ret 0xc
Function at 0x10011150
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x44
mov eax, dword [0x10027040]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
lea eax, [esp + 0x30]
push 0x1c
push eax
mov esi, ecx
mov dword [esp + 0x24], 0
xor ebp, ebp
mov dword [esp + 0x20], esi
push ebp
push esi
mov dword [esp + 0x4c], 0x1000
call edi
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x58], ebx
jbe 0x1001129e
nop dword [eax + eax]
push 0x1c
lea eax, [esp + 0x34]
push eax
push ebx
push esi
call edi
test eax, eax
je 0x100112e0
cmp dword [esp + 0x40], 0x1000
jne 0x100112e0
cmp dword [esp + 0x44], 1
je 0x100112e0
push ebp
call fcn.1000dab8
push dword [esp + 0x40]
call fcn.1000e0cc
add esp, 8
mov ebp, eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], ebp
push eax
push 0x40
push dword [esp + 0x44]
push dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100112e0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x40]
push ebp
push dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x50]
push dword [esp + 0x44]
push dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [esp + 0x60]
mov edi, edx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10011238
mov eax, dword [esp + 0x2c]
sub edi, ecx
add eax, ebp
mov dword [esp + 0x20], eax
cmp ebp, eax
jae 0x100112da
mov esi, dword [esp + 0x5c]
mov ecx, edx
sub ecx, dword [esp + 0x5c]
sub esi, ebp
xor edx, edx
mov dword [esp + 0x24], ecx
test edi, edi
jle 0x1001128c
nop dword [eax]
mov eax, ebp
lea ebx, [ecx + esi]
cmp byte [ebx + eax], 0x3f
je 0x10011282
mov cl, byte [esi + eax]
cmp cl, byte [eax]
jne 0x100112be
inc edx
inc eax
cmp edx, edi
jl 0x10011275
mov ebx, dword [esp + 0x10]
test ebp, ebp
je 0x100112d2
mov eax, ebp
mov ebp, dword [esp + 0x14]
sub eax, ebp
add eax, ebx
mov dword [esp + 0x1c], eax
push ebp
call fcn.1000dab8
mov ecx, dword [esp + 0x54]
add esp, 4
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000daaa
add esp, 0x44
ret
inc ebp
dec esi
cmp ebp, dword [esp + 0x20]
jae 0x100112ce
mov ecx, dword [esp + 0x24]
xor edx, edx
jmp 0x10011270
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
add ebx, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x58]
jb 0x100111a0
jmp 0x1001129e
Function at 0x401bdd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c1c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c1c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c1c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c1c
cmp dword [ecx + 0x74], 0xe
jbe 0x401c1c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40aa1c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40aab9
push ebx
push esi
call fcn.0040a9e5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040a979
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40aa66
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40aab8
push edi
push eax
call fcn.00407bc5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40aa86
call fcn.00407b8b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40aab7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a979
add esp, 0x20
test eax, eax
jne 0x40aaa5
push edi
call fcn.00407b8b
jmp 0x40aaad
push ebx
call fcn.00407b8b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40b775
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415190
push 0x415188
push str.FlsAlloc
push 0x1f
call fcn.0040b691
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b7a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x413134]
call esi
jmp 0x40b7af
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b7f3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4151a0
push 0x415198
push str.FlsGetValue
push 0x21
call fcn.0040b691
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b82a
push dword [ebp + 8]
mov ecx, esi
call dword [0x413134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40b832
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4151a8
push 0x4151a0
push str.FlsSetValue
push 0x22
call fcn.0040b691
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b86c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x413134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41256d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41256d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
mov ecx, 0x5f169ee
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x10d872c6
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10029b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x10029b79
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10029b8f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10029b86
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10029bc2
nop
cmp esi, ecx
jae 0x10029b86
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10029bb0
cmp esi, ecx
jae 0x10029b86
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10029c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.10040636
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x10029d60
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x10029d60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029d60
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10029d60
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10029cf4
cmp esi, ecx
jae 0x10029d60
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10029ce2
cmp esi, ecx
jae 0x10029d60
cmp word [esi], 0
je 0x10029d60
mov eax, dword [ebx]
mov ecx, 1
movzx edi, word [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x10029d1c
push edi
mov ecx, ebx
call fcn.1002a0e0
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.100638ec
add esp, 0x10
cmp eax, 0x50
ja case.0x10029d3b.1
movzx eax, byte [eax + 0x10029d90]
jmp dword [eax*4 + 0x10029d80]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x10029d70
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.1004046f
push 0x80070057
call fcn.1002a380
call fcn.10040455
nop
inc edx
popfd
add dl, byte [eax]
imul ebx, dword [ebp - 0x6285effe], 2
adc byte [edx - 99], bh
add dl, byte [eax]
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3
Function at 0x10029df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
xor cl, cl
test eax, eax
je 0x10029eed
test eax, 0xffff0000
jne 0x10029eed
push esi
push edi
movzx edi, ax
push edi
call fcn.10040636
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x10029ee9
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x10029ee9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029ee9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10029ee9
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10029e89
cmp esi, ecx
jae 0x10029ee9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10029e77
cmp esi, ecx
jae 0x10029ee9
cmp word [esi], 0
je 0x10029ee9
mov eax, dword [ebx]
mov ecx, 1
movzx edi, word [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x10029eb1
push edi
mov ecx, ebx
call fcn.1002a0e0
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.100638ec
add esp, 0x10
cmp eax, 0x50
ja case.0x10029ed0.1
movzx eax, byte [eax + 0x10029f1c]
jmp dword [eax*4 + 0x10029f0c]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x10029f00
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
pop edi
mov cl, 1
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10040455
call fcn.1004046f
push 0x80070057
call fcn.1002a380
nop
xlatb
sahf
add dl, byte [eax]
sti
sahf
add dl, byte [eax]
neg byte [esi - 0x6109effe]
add dl, byte [eax]
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3
Function at 0x1002c260
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100a049c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push edi
push 0x400
push 0
push eax
mov edi, ecx
call fcn.10050540
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003afa0
push dword [edi + 0x80]
push 0x67
push str.AdbSocketConnect::WriteToClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___INFO____s:_d__writeToClient_with_client_id___d_n
push eax
call fcn.10007a40
lea ecx, [ebp - 0x418]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c2e2
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.1003b0f0
mov eax, esi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c300
push 0
sub eax, edx
push eax
push esi
push dword [edi + 0x80]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 4

Function at 0x1002c420
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100a049c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push 0x400
push 0
push eax
mov esi, ecx
call fcn.10050540
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003afa0
push dword [esi + 0x80]
push 0x7f
push str.AdbSocketConnect::ReadFromClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___INFO____s:_d__readFromClient_with_client_id___d_n
push eax
call fcn.10007a40
lea eax, [ebp - 0x418]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c4a2
sub eax, edx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.1003b0f0
add esp, 8
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 0x80]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 8