joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e250
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x41e32b
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x41e284
cmp dword [esi + 0x40], edi
jae 0x41e284
push eax
call fcn.00421f78
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x41e29b
lea eax, [edi + edi]
push eax
call fcn.00421f83
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0044a770
add esp, 0xc
cmp edi, ebp
jbe 0x41e327
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4652a0]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4652a0]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x41e2b0
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x41e364
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x41e34c
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0044a770
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41e385
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x41e660
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x41e66d
xor al, al
pop edi
ret
cmp dword [eax + 4], 0
je 0x41e669
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x41e560
push 0
push 0
call fcn.004421b5
mov edx, dword [edi]
mov dword [edx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x41e6c2
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x41e6b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
pop esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
xor al, al
pop edi
ret
mov byte [eax + 8], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x41e6e4
mov esi, dword [edi]
call fcn.0041e5f0
mov edx, dword [edi]
mov byte [edx + 8], 0
pop esi
mov al, 1
pop edi
ret
Function at 0x4246c4
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 0x42470c
call fcn.004260b6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42470c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42474f
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 0x424738
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 0x424738
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42474c
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 0x426b4b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x458263
call fcn.00443f6b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x426b70
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x426bb6
lea ecx, [ebp - 0x10]
call fcn.00401190
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.004240eb
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401020
mov eax, esi
call fcn.00444043
ret 8

Function at 0x42c618
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 0x42c65f
call fcn.004260b6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42c65f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42c67b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042c190
mov esi, eax
test edi, edi
je 0x42c679
test ebx, ebx
je 0x42c679
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42e679
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 0x42e69d
cmp dword [edi + 0x54], 0
jne 0x42e69d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004260b6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.0042e63a
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 0x42ff3e
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x42ff69
call fcn.004260b6
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x42ff8c
push eax
push dword [esi + 4]
call fcn.0042fec4
push esi
push eax
mov ecx, 0x477c50
call fcn.0042fb4b
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4309d5
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4589f8
call fcn.00443f6b
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00430995
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401190
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x430a3c
push eax
push dword [esi + 8]
call fcn.0042fec4
push dword [esi + 0xc]
mov ecx, 0x477c50
push eax
call fcn.0042fb4b
mov eax, esi
call fcn.00444043
ret 0x1c

Function at 0x440c2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4747c0]
jne 0x440c34
repz ret
jmp fcn.00447dff
Function at 0x451560
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00447763
and dword [ebp - 4], 0
cmp dword [0x478aa8], 0
mov ebx, eax
jne 0x451611
push 0x460be4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4516c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x460bd8
push edi
call esi
test eax, eax
je 0x4516c2
push eax
call fcn.004476f1
mov dword [esp], 0x460bc8
push edi
mov dword [0x478aa8], eax
call esi
push eax
call fcn.004476f1
mov dword [esp], 0x460bb4
push edi
mov dword [0x478aac], eax
call esi
push eax
call fcn.004476f1
mov dword [esp], 0x460b98
push edi
mov dword [0x478ab0], eax
call esi
push eax
call fcn.004476f1
pop ecx
mov dword [0x478ab8], eax
test eax, eax
je 0x451611
push 0x460b80
push edi
call esi
push eax
call fcn.004476f1
pop ecx
mov dword [0x478ab4], eax
mov eax, dword [0x478ab4]
cmp eax, ebx
je 0x451669
cmp dword [0x478ab8], ebx
je 0x451669
push eax
call fcn.0044776c
push dword [0x478ab8]
mov esi, eax
call fcn.0044776c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x451669
test edi, edi
je 0x451669
call esi
test eax, eax
je 0x451660
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x451660
test byte [ebp - 0xc], 1
jne 0x451669
or dword [ebp + 0x10], 0x200000
jmp 0x4516a2
mov eax, dword [0x478aac]
cmp eax, ebx
je 0x4516a2
push eax
call fcn.0044776c
pop ecx
test eax, eax
je 0x4516a2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4516a2
mov eax, dword [0x478ab0]
cmp eax, ebx
je 0x4516a2
push eax
call fcn.0044776c
pop ecx
test eax, eax
je 0x4516a2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x478aa8]
call fcn.0044776c
pop ecx
test eax, eax
je 0x4516c2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4516c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401760
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004024d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004024d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4017c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406068]
test esi, esi
jle 0x4018e0
mov eax, dword [0x40606c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4017f4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401877
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4017e0
mov dword [esp], ebx
call fcn.004021b0
mov edi, eax
test eax, eax
je 0x401907
mov eax, dword [0x40606c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004022f0
mov edx, dword [0x40606c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4018e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401870
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401880
add dword [0x406068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40606c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401760
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x4017fe
mov eax, dword [0x40606c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401760
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401760
lea esi, cs:[esi]
nop
Function at 0x401e20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40607c]
sub esp, 4
test ebx, ebx
je 0x401e75
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401e6e
test eax, eax
jne 0x401e6e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e50
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4021b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4021d5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4021e0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4021d5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402228
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40221e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40222a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402210
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10017d1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1003074]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.01001537
cmp eax, esi
jne 0x1001872
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1001829
lea eax, [ebp - 0x204]
push eax
call fcn.010017d1
cmp eax, esi
jne 0x1001871
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x208]
je 0x1001819
call fcn.010014c4
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.010014c4
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.0100209c
leave
ret 4

Function at 0x1001903
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x90], eax
jne 0x1001928
xor al, al
jmp 0x1001953
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x1001658
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
setne byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x1001950
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x1001e4d
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edi, edi
push edi
push edi
mov ebx, eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1001e86
push edi
push edi
push edi
push 3
push 2
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 4], eax
push edi
push dword [ebp + 8]
mov esi, 0x10030a8
push 0x1003018
mov ecx, esi
mov dword [0x1003140], 0x1388
mov dword [0x1003144], 0x3e8
call fcn.01001894
lea eax, [ebp - 4]
push eax
push 0x10013a0
push ebx
mov ecx, esi
call fcn.01001bf7
test al, al
je 0x1001f0a
mov ecx, esi
call fcn.01001903
push 4
push 4
push esi
call dword [sym.imp.ATL.DLL_AtlModuleRegisterClassObjects]
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
mov dword [ebp - 4], eax
jmp 0x1001ef1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
lea eax, [ebp - 0x20]
push edi
push eax
call ebx
test eax, eax
jne 0x1001ee7
push esi
call dword [sym.imp.ATL.DLL_AtlModuleRevokeClassObjects]
call fcn.010024a0
mov ecx, esi
call fcn.01001e1f
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10021b4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10013f0
call fcn.01002400
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10021ef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10021ef
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002207
cmp eax, 0x20b
je 0x10021f4
mov dword [ebp - 0x1c], edi
jmp 0x100221b
cmp dword [ecx + 0x84], 0xe
jbe 0x10021ef
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002215
cmp dword [ecx + 0x74], 0xe
jbe 0x10021ef
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003160], 0xffffffff
or dword [0x1003164], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003154]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1003150]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1003168], eax
call fcn.010023f6
cmp dword [0x1003078], edi
jne 0x1002278
push fcn.010023f6
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010023df
push 0x1003010
push 0x100300c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100314c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1003148]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1003008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x10022de
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1002398
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x100232c
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x10022fa
cmp ax, 0x22
jne 0x10022e7
cmp word [esi], 0x22
jne 0x1002305
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1002313
cmp ax, 0x20
jbe 0x1002300
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1002339
movzx eax, word [ebp - 0x50]
jmp 0x100233c
cmp word [esi], 0x20
jbe 0x1002305
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x100232c
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x100235d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002392
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100243b
ret
Function at 0x6e002644
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x6e04b032
call fcn.6e049338
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [esi + 0xfc], ebx
call fcn.6e03a98a
mov dword [ebp - 4], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], vtable.CProxy_IAcroAXDocShimEvents_class_CAcroAXDocShim_.0
lea ecx, [esi + 0xc8]
call fcn.6e002b0e
mov dword [esi + 0xf8], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 3
call fcn.6e03a98a
lea ecx, [esi + 0x110]
mov byte [ebp - 4], 4
call fcn.6e03a98a
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 5
call fcn.6e03a98a
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
lea ecx, [esi + 0x128]
mov byte [ebp - 4], 8
call fcn.6e03a98a
lea ecx, [esi + 0x130]
mov byte [ebp - 4], 9
call fcn.6e03a98a
mov dword [esi + 0x138], ebx
mov dword [esi + 0x174], ebx
mov dword [esi + 0x19c], ebx
mov dword [esi + 0x1a0], 0xf
mov byte [esi + 0x18c], bl
mov dword [esi + 0x2b8], ebx
mov dword [esi + 0x310], ebx
mov dword [esi + 0x314], ebx
mov dword [esi + 0x318], ebx
mov word [esi + 0x31e], bx
mov dword [esi + 0x2cf], ebx
mov byte [esi + 0x2d3], bl
mov byte [ebp - 4], 0x10
cmp byte [0x6e07047b], bl
jne 0x6e002747
cmp byte [0x6e07047a], bl
je 0x6e00277b
push esi
push 0x6e051a0c
mov edi, 0x6e06ea68
push edi
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e00276b
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e00277b
push edi
call fcn.6e003fc0
pop ecx
or dword [esi + 0x44], 0x40
xor eax, eax
inc eax
mov dword [esi + 0x2c0], ebx
push eax
mov ecx, esi
mov word [esi + 0x31c], bx
mov dword [esi + 0x2c8], eax
mov word [esi + 0x2ab], bx
mov word [esi + 0x2ea], bx
mov dword [esi + 0x2b0], ebx
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x320], ebx
mov dword [esi + 0x324], ebx
mov dword [esi + 0x2ec], ebx
mov byte [esi + 0x2f5], bl
mov dword [esi + 0x2f8], ebx
mov byte [esi + 0x2fc], al
call fcn.6e00ea22
mov eax, esi
call fcn.6e049301
ret

Function at 0x6e0040b5
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x6e04b27c
call fcn.6e0493a3
mov dword [ebp - 0x14], ecx
cmp byte [0x6e07047b], 0
jne 0x6e0040d6
cmp byte [0x6e07047a], 0
je 0x6e00410b
push str._AcroAXDocShim__CAcroAXDocShim::AddRangesToRangeTree
mov esi, 0x6e06ea68
push esi
call fcn.6e03a98a
cmp byte [0x6e07047a], 0
pop ecx
pop ecx
je 0x6e0040f8
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e004108
push esi
call fcn.6e003fc0
pop ecx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
mov eax, ebx
dec ebx
test eax, eax
je 0x6e004145
push dword [edi + 4]
mov ecx, dword [ecx + 0x2b8]
push dword [edi]
call fcn.6e03a98a
mov ecx, dword [ebp - 0x14]
add edi, 8
jmp 0x6e004116
test esi, esi
setne al
call fcn.6e049301
ret 8
Function at 0x6e0049f4
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x6e07047b], 0
push esi
mov esi, ecx
jne 0x6e004a09
cmp byte [0x6e07047a], 0
je 0x6e004a3f
push edi
push esi
push str.CAcroAXDocShim__x_::CloseStream
mov edi, 0x6e06ea68
push edi
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e004a2e
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e004a3e
push edi
call fcn.6e003fc0
pop ecx
pop edi
cmp byte [esi + 0x170], 0
je 0x6e004a70
mov eax, dword [esi + 0x16c]
push 1
mov eax, dword [eax + 4]
mov eax, dword [eax]
push dword [eax + 4]
call fcn.6e03a98a
pop ecx
pop ecx
test eax, eax
jne 0x6e004a69
mov byte [esi + 0x170], al
cmp byte [esi + 0x170], 0
sete al
pop esi
ret