joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x508b7c]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3e28]
mov esi, 4
mov eax, dword [edi + 0xc8]
add edi, 0xc8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4623c0]
sub esi, 1
jne 0x427041
mov eax, dword [0x508b7c]
not ebx
cmp dword [eax + 0x3e48], ebx
jne 0x42707b
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0042e820
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x4270a6
inc esi
test ecx, ecx
je 0x427094
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x427099
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.0042f0d0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045caa8
mov esp, ebp
pop ebp
ret
Function at 0x42d690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5264], 0
lea esi, [edi + 0x5268]
je 0x42d712
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x42d6cc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0042f510
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.0041a190
mov edx, dword [esi]
mov ecx, 0x508b78
push dword [edi + 0x5264]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5270]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.0041a190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42dbf0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x508b7c]
test bl, bl
je 0x42dc36
or edi, 0xffffffff
cmp bl, 0x23
jne 0x42dc17
cmp byte [esi], bl
jne 0x42dc17
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x4623c0]
test bl, bl
jne 0x42dc08
mov edi, dword [0x508b7c]
mov esi, dword [edi + 0x5228]
xor ecx, ecx
not eax
test esi, esi
jle 0x42dc5c
mov edi, dword [edi + 0x5230]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x42dc62
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x42dc50
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret

Function at 0x42dea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x508b7c]
sub esp, 8
push esi
mov esi, ecx
mov dword [eax + 0x5218], 0
push edi
test esi, esi
je 0x42defd
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.0042df10
mov edx, 0x462058
mov ecx, esi
mov edi, eax
call fcn.00419a60
mov esi, eax
test esi, esi
je 0x42defd
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x437f2a
mov eax, dword [0x508b7c]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x437f1d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x437f5b
mov eax, dword [0x508b7c]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x437f4e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x437f8c
mov eax, dword [0x508b7c]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x437f7f
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x437fd9
mov eax, dword [0x508b7c]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x437fcc
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x43800a
mov eax, dword [0x508b7c]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x437ffd
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x43803b
mov eax, dword [0x508b7c]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x43802e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0043af50
Function at 0x43bfc0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
movss dword [esp + 0x10], xmm3
mov dword [esp + 0x14], ecx
movzx ebx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xa]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xb]
shl ebx, 8
add ebx, eax
mov eax, dword [0x508b7c]
test eax, eax
je 0x43c00a
inc dword [eax + 0xb0]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movzx edx, byte [esi]
add esp, 4
movzx ecx, byte [esi + 1]
shl edx, 8
add edx, ecx
mov dword [esp + 0xc], eax
movzx ecx, byte [esi + 2]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
add edx, ecx
cmp edx, 0x57bc0000
jne 0x43c0c5
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, eax
jne 0x43c0c5
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
mov edx, dword [esp + 0xc]
movzx edi, byte [esi + 0xb]
shl ecx, 8
add ecx, eax
mov dword [0x508be8], esi
movzx eax, byte [esi + 0xa]
add esi, 0x10
shl ecx, 8
add ecx, eax
mov dword [0x508bf0], edx
shl ecx, 8
add ecx, edx
mov dword [0x508bf4], edx
add edi, ecx
mov ecx, esi
mov dword [0x508bec], edi
call fcn.004401c0
cmp eax, esi
je 0x43c0c5
nop
cmp dword [0x508bf4], edi
ja 0x43c0c5
mov ecx, eax
mov esi, eax
call fcn.004401c0
cmp eax, esi
jne 0x43c0b0
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x43c10f
push 0x78
lea eax, [esp + 0x1c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0xffff
mov byte [esp + 0x2c], 1
add esp, 0xc
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 1
lea esi, [esp + 0x18]
mov dword [esp + 0x50], 0x7f7fffff
mov dword [esp + 0x5c], 0x3f800000
mov word [esp + 0x60], ax
movss xmm0, dword [esp + 0x10]
lea edi, [esp + 0x90]
comiss xmm0, dword [0x467198]
mov eax, dword [esp + 0xc]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1e
lea esi, [esp + 0x90]
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1e
mov byte [esp + 0x110], 1
lea esi, [esp + 0x108]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
jbe 0x43c16d
movss dword [esp + 0x28], xmm0
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, dword [esp + 0x48]
cmovne ecx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.0043bce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x441110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [0x508b7c]
mov dword [esp + 0x28], ebx
push esi
push edi
test ebx, ebx
je 0x44113a
mov esi, dword [ebx + 0x78]
jmp 0x44113c
xor esi, esi
mov ecx, dword [ebx + 0x48]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], esi
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0043bad0
mov eax, dword [ebx + 0x48]
mov ebx, dword [esp + 0x20]
cmp byte [eax + 0x12], 0
je 0x4411e5
mov eax, ebx
imul eax, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x1c], eax
imul ecx, dword [esp + 0x28]
mov eax, dword [0x508b7c]
test eax, eax
je 0x44118a
inc dword [eax + 0xb0]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x1c]
mov esi, edi
mov dword [esp + 0x18], edi
lea eax, [edi + eax*4]
mov dword [esp + 0x2c], eax
cmp edi, eax
jae 0x4411ed
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
sub eax, edi
mov edi, eax
mov edx, dword [edi + esi]
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx eax, dl
and edx, 0xff00ff00
shl eax, 0x10
or ecx, eax
or ecx, edx
mov dword [esi], ecx
add esi, 4
cmp esi, ebx
jb 0x4411b7
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
jmp 0x4411ed
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
push 0
lea esi, [eax + 0xc]
mov dword [esi], 0
mov ecx, dword [eax]
push esi
push 0
push 0x15
mov eax, dword [ecx]
push 0x200
push 1
push dword [esp + 0x28]
push ebx
push ecx
call dword [eax + 0x5c]
test eax, eax
js 0x4412bf
mov ecx, dword [esi]
lea edx, [esp + 0x34]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x4c]
test eax, eax
jne 0x4412bf
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x441264
imul ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
imul eax, esi
push ebx
push edi
add eax, dword [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memcpy
inc esi
add esp, 0xc
add edi, ebx
cmp esi, dword [esp + 0x10]
jl 0x441245
mov esi, dword [esp + 0x14]
push 0
mov eax, dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0xc]
mov ecx, dword [edx + 0x48]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x48]
cmp byte [eax + 0x12], 0
je 0x4412ab
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4412a1
mov ecx, dword [0x508b7c]
test ecx, ecx
je 0x4412a1
dec dword [ecx + 0xb0]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0045caa8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045caa8
mov esp, ebp
pop ebp
ret
Function at 0x441380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x508b7c]
test eax, eax
je 0x44138e
mov ecx, dword [eax + 0x78]
jmp 0x441390
xor ecx, ecx
cmp dword [ecx + 0xc], 0
jne 0x4413aa
test eax, eax
je 0x4413aa
mov eax, dword [eax + 0x78]
test eax, eax
je 0x4413aa
cmp dword [eax], 0
jne fcn.00441110
ret
Function at 0x45d8c7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45d906
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45d906
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45d906
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45d906
cmp dword [ecx + 0x74], 0xe
jbe 0x45d906
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4066ce
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4150d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 0x30], 0
jne 0x40675c
push 0x104
lea eax, [ebp - 0x210]
push eax
mov byte [ebx + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40675c
push esi
push edi
lea edi, [ebp - 0x210]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x406710
push 6
pop ecx
lea eax, [ebp - 0x210]
mov esi, 0x4014c8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
pop esi
je 0x40675c
push 0x4014a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebx + 0x2c], eax
je 0x40675c
push 0x401488
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41602c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407c6f
leave
ret

Function at 0x40732c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4150d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
push edi
jne 0x40742d
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x407371
xor eax, eax
jmp 0x4074c8
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
and eax, 0x7fff
cmp ecx, 2
je 0x40738c
or eax, 0x8000
mov edx, dword [ebp - 0x90]
mov dword [0x4160fc], ecx
mov ecx, dword [ebp - 0x94]
mov esi, ecx
shl esi, 8
add esi, edx
push 1
mov dword [0x416104], esi
mov dword [0x416108], ecx
mov dword [0x41610c], edx
mov dword [0x416100], eax
call fcn.0040a311
test eax, eax
pop ecx
je 0x40736a
call fcn.004097b8
test eax, eax
jne 0x4073d8
call fcn.0040a376
jmp 0x40736a
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x417d5c], eax
call fcn.0040a173
mov dword [0x4160e4], eax
call fcn.00409aa5
test eax, eax
jge 0x4073fd
call fcn.0040945a
jmp 0x4073d1
call fcn.0040a085
test eax, eax
jl 0x407426
call fcn.00409d37
test eax, eax
jl 0x407426
push 0
call fcn.00409163
test eax, eax
pop ecx
jne 0x407426
inc dword [0x4160e0]
jmp 0x4074c5
call fcn.00409ce4
jmp 0x4073f6
xor edi, edi
cmp eax, edi
jne 0x407468
cmp dword [0x4160e0], edi
jle 0x40736a
dec dword [0x4160e0]
cmp dword [0x416138], edi
jne 0x407452
call fcn.004092de
cmp dword [ebp + 0x10], edi
jne 0x4074c5
call fcn.00409ce4
call fcn.0040945a
call fcn.0040a376
jmp 0x4074c5
cmp eax, 2
jne 0x4074b9
call fcn.0040942b
push 0x214
push 1
call fcn.00409a5f
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x40736a
push esi
push dword [0x415168]
push dword [0x416148]
call fcn.004093b2
pop ecx
call eax
test eax, eax
je 0x4074ad
push edi
push esi
call fcn.0040949c
pop ecx
jmp 0x4074c4
push esi
call fcn.0040875f
pop ecx
jmp 0x40736a
cmp eax, 3
jne 0x4074c5
push edi
call fcn.00409745
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407c6f
leave
ret 0xc
Function at 0x40e070
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40e083
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40e07f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x40e0b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40e0ef
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40e0e5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40e0f1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40e0d5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4059f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45190c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x428da8
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x405acb
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [0x4280f8]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003870
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
lea ecx, [ebp - 0x74]
call fcn.10003769
mov eax, dword [ebp - 0x74]
mov edi, dword [eax + 8]
cmp edi, fcn.10003860
jne 0x1001d3cf
lea ecx, [ebp - 0x74]
call fcn.10003860
cmp eax, 0xffffffff
jne 0x1001047a
xor esi, esi
lea ecx, [ebp - 0x74]
call fcn.1000370d
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100038a5
mov esi, dword [eax + 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
jmp 0x100038a7
mov ecx, edi
mov esi, esp
call dword [0x10042294]
lea ecx, [ebp - 0x74]
call edi
cmp esi, esp
je 0x1000389c
mov ecx, 4
int 0x29
jmp 0x1000389c
Function at 0x10003e81
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x188]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword fs:[0x30]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
add ecx, 0x14
mov eax, dword [ecx]
test eax, eax
je 0x10003f6d
cmp eax, ecx
je 0x10003f6d
lea esi, [eax - 8]
cmp dword [esi + 0x18], edx
je 0x10003ec6
mov eax, dword [esi + 8]
jmp 0x10003ea9
test esi, esi
je 0x10003f5f
mov eax, dword [edi + 0x1a0]
cmp eax, 0x200
jae 0x10003f5f
shl eax, 5
mov dword [eax + edi + 0x1a8], edx
mov eax, dword [edi + 0x1a0]
mov ecx, dword [esi + 0x20]
shl eax, 5
add ecx, edx
mov dword [eax + edi + 0x1ac], ecx
mov ecx, dword [edi + 0x1a0]
mov eax, dword [esi + 0x1c]
shl ecx, 5
mov dword [ecx + edi + 0x1b0], eax
mov ecx, edi
push dword [esi + 0x30]
call fcn.10003f79
mov ecx, dword [edi + 0x1a0]
shl ecx, 5
mov dword [ecx + edi + 0x1b8], eax
mov dword [ecx + edi + 0x1bc], edx
mov ecx, 0x100418a0
mov eax, dword [edi + 0x1a0]
add eax, 0xe
shl eax, 5
mov byte [eax + edi], 0
xor eax, eax
inc dword [edi + 0x1a0]
inc eax
lock xadd dword [ecx], eax
mov dword [esi + 0x1c], 0x10002800
mov byte [edi + 0x40], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor esi, esi
jmp 0x10003ec6

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push esi
xor eax, eax
push edi
test ebx, ebx
je 0x100043bf
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100043bf
mov esi, dword [sym.IEShims.dll_IEShims_Uninitialize]
mov edi, esp
mov ecx, esi
call esi
mov ecx, dword [ebp - 4]
call esi
cmp edi, esp
jne 0x1001ccc8
mov eax, dword [ebp - 4]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 4
int 0x29
jmp 0x100043aa
Function at 0x100084c4
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x1002460d
call fcn.10002999
or ebx, 0xffffffff
xor edi, edi
push 8
pop esi
cmp dword [0x100410a4], ebx
jne 0x100084f3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100410a4], eax
cmp eax, ebx
je 0x10027006
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10008617
mov ecx, eax
call fcn.1000863c
mov dword [0x10041168], eax
test eax, eax
je 0x10026ff6
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1000861e
mov ecx, eax
call fcn.1000863c
mov dword [0x10041164], eax
test eax, eax
je 0x10026ff6
push 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10008625
push 2
pop edx
mov dword [eax], edx
lea ecx, [eax + 0xc]
mov dword [ecx - 8], edi
mov dword [ecx], edi
lea ecx, [ecx + 4]
dec edx
jne 0x1000856b
mov dword [0x10041160], eax
test eax, eax
je 0x10026ff6
push 0x84
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x1000862c
mov ecx, eax
call fcn.10007cd6
mov dword [ebp - 4], ebx
mov dword [0x1004115c], eax
test eax, eax
je 0x10026ff6
push 0xa4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x10008633
mov ecx, esi
call fcn.10008279
mov dword [ebp - 4], ebx
mov dword [0x10041158], esi
test esi, esi
je 0x10026ff6
push 0x80000000
push 0x100418e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x10026ff6
xor eax, eax
inc eax
call fcn.10002980
ret
mov eax, edi
jmp 0x10008512
mov eax, edi
jmp 0x1000853e
mov eax, edi
jmp 0x10008576
mov eax, edi
jmp 0x100085ab
mov esi, edi
jmp 0x100085e5
mov eax, dword [0x100410a4]
cmp eax, ebx
je 0x10027006
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [0x10041168]
test ecx, ecx
je 0x10027016
push ecx
call fcn.1003a557
mov ecx, dword [0x10041164]
mov dword [0x10041168], edi
test ecx, ecx
je 0x1002702c
push ecx
call fcn.1003a557
mov eax, dword [0x10041160]
mov dword [0x10041164], edi
test eax, eax
je 0x10027042
push eax
call fcn.1000ff4f
pop ecx
mov esi, dword [0x1004115c]
mov ebx, 0x1003a500
mov dword [0x10041160], edi
test esi, esi
je 0x1002706c
push ebx
push 8
push 0xc
lea eax, [esi + 4]
push eax
call fcn.100081e8
push esi
call fcn.1000ff4f
pop ecx
mov esi, dword [0x10041158]
mov dword [0x1004115c], edi
test esi, esi
je 0x10027091
push ebx
push 8
push 0xc
lea eax, [esi + 4]
push eax
call fcn.100081e8
push esi
call fcn.1000ff4f
pop ecx
mov dword [0x10041158], edi
xor eax, eax
jmp 0x10008611