joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4ca498], eax
mov edx, 1
mov eax, 0x4ca498
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4cae54
jl 0x414e80
mov dword [0x4c7948], 1
mov dword [0x4cbe30], 1
pop edi
ret

Function at 0x414ec0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4cbe30], 0
push esi
mov esi, 0x4ca498
jne 0x414eda
call dword [0x4a22f0]
call fcn.00414e70
mov dword [0x4c7948], 0x270
mov dword [0x4ca494], esi
mov ecx, 0xe3
nop
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi + 0x634]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x414ef0
mov ecx, 0x18c
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi - 0x38c]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x414f25
mov ecx, dword [esi]
mov eax, dword [0x4ca498]
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, dword [esi]
and al, 1
movzx edx, al
shr ecx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
ret

Function at 0x414f90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4c7948]
jne 0x414f9d
call fcn.00414ec0
mov eax, dword [0x4ca494]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4ca494], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x414fe0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x4c7948]
jne 0x414fee
call fcn.00414ec0
mov ecx, dword [0x4ca494]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4ca494], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp], edx
fild dword [esp]
jns 0x415035
fadd qword [0x4c1ec0]
fmul qword [0x4c1f00]
pop ecx
ret
Function at 0x41ec30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4c7978]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
push esi
mov word [esp + 0xc], ax
push edi
lea ebx, [esp + 0x10]
mov eax, ebp
mov word [esp + 0x12], cx
mov dword [esp + 0x14], 0x90028
mov dword [esp + 0x18], 0x3e003c
mov dword [esp + 0x1c], 0x3d003a
mov dword [esp + 0x20], 0x2d002b
mov dword [esp + 0x24], 0x2f002a
mov dword [esp + 0x28], 0x7e0021
mov dword [esp + 0x2c], 0x7c0026
mov dword [esp + 0x30], 0x5b005e
mov dword [esp + 0x34], 0x3f002e
mov dword [esp + 0x38], 0x7b
call fcn.00409e00
test eax, eax
je 0x41ecb9
cmp eax, ebp
jbe 0x41ecd3
sub eax, 2
jmp 0x41ecd3
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ecc0
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41ecf4
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41eced
cmp eax, 9
jne 0x41ecf4
sub edi, 2
cmp edi, ebp
ja 0x41ece0
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41ed25
cmp byte [esp + 0x4c], 0
je 0x41ed19
mov ecx, dword [esp + 0x40]
push ebp
push 0x4a9bd0
call fcn.00430bd0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
mov ebx, dword [esp + 0x44]
push esi
push ebp
push ebx
call fcn.004937a4
add esp, 0xc
xor ecx, ecx
mov eax, edi
pop edi
mov word [ebx + esi*2], cx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x7c27e17
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x3e8379fe
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x2e0284d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x2e0284e4
pop dword [ebp - 0x34]
mov eax, 0x898dee43
add eax, 0xa47496a1
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xdf38dc3f
add dword [ebp - 0x44], 0x6f19690c
mov dword [ebp - 0x40], 0x5fa42b68
sub dword [ebp - 0x40], 0x2d70df23
mov dword [ebp - 0x3c], 0x29a64269
sub dword [ebp - 0x3c], 0xdd59fe3b
mov dword [ebp - 0x38], 0x10765a4c
add dword [ebp - 0x38], 0xef89a5b4
lea eax, [ebp - 0x44]
push eax
mov eax, 0x136fd41f
sub eax, 0xe56cb357
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xd788f4d5
add dword [ebp - 0x44], 0x9ce97481
mov dword [ebp - 0x40], 0xad15e45f
add dword [ebp - 0x40], 0x94567d16
mov dword [ebp - 0x3c], 0x773281c9
sub dword [ebp - 0x3c], 0x13c3155d
mov dword [ebp - 0x38], 0x995cfa24
sub dword [ebp - 0x38], 0x995cfa24
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x40dbe
push 0
call eax
mov ecx, 0xaf301ece
add ecx, 0x50d028d6
xor edi, edi
add edi, eax
mov edx, 0x2e03eb7
add edx, 0x2b252f49
add edx, dword [ebp - 0x34]
mov esi, 0xf156075a
mov dword [ebp - 0xc], 0x96899b05
mov ebx, dword [edx]
mov dword [ebp - 0xc], 0xd2c96fbf
xor ebx, esi
mov dword [ebp - 0x2c], 0xd257bee3
mov dword [edi], ebx
xor dword [ebp - 0x20], 0x795329d7
add edi, 4
add edx, 0xdcf5c343
sub edx, 0xdcf5c33f
loop 0x2e0285fd
add eax, 0x11163
xor ebx, ebx
add ebx, eax
add eax, 0xd23ab5d1
add eax, 0x2dc54a34
mov ecx, 0x2e000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x4116e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4116ef
pop dword [ebp - 0x18]
mov eax, 0xc3b603b0
sub eax, 0xc374ecc1
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3c85e
push 0
mov eax, 0x5f12a016
sub eax, 0x5ed04dfe
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x42db
xor esi, esi
add esi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x18]
mov edi, 0xde259c3e
add edi, 0x3d441359
sub dword [ebp - 0xc], edi
mov ebx, dword [edx]
sub ebx, edi
add dword [ebp - 8], edx
mov dword [esi], ebx
xor dword [ebp - 8], ecx
add esi, 0xfd3cd8e5
add esi, 0x2c3271f
add edx, 4
loop 0x411744
add eax, 0xfe3f
mov ebx, eax
add eax, 0x63b0d7f5
sub eax, 0x63b0d7f0
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4040d0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee726
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 5
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.ABCPhoto
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404146
push 0
lea eax, [ebp - 0x218]
push eax
call esi
push str.PdfReader
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40416f
push eax
lea eax, [ebp - 0x218]
push eax
call esi
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x640]
call fcn.0044b850
mov esi, eax
cmp esi, 0x53c754
je 0x4041cc
mov eax, dword [0x53c768]
cmp eax, 0x10
jb 0x4041a6
inc eax
mov ecx, 0x53c754
push eax
push dword [0x53c754]
call fcn.00407610
push esi
mov ecx, 0x53c754
mov dword [0x53c768], 0xf
mov dword [0x53c764], 0
mov byte [0x53c754], 0
call fcn.00406a90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
cmp eax, 0x10
jb 0x4041f1
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00407610
push dword [0x53c788]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x62c], 0xf
push eax
mov dword [ebp - 0x630], 0
mov byte [ebp - 0x640], 0
call edi
cmp word [ebp - 0x218], 0
jne 0x404229
xor ecx, ecx
jmp 0x404241
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404232
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, 0x53c78c
push eax
call fcn.00407340
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0048acb0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
call fcn.0048acb0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
cmp word [ebp - 0x420], 0
jne 0x4042b5
xor ecx, ecx
jmp 0x4042cf
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4042c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
mov ecx, 0x53c770
push eax
call fcn.00407340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret
Function at 0x40d5f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef020
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
push dword [ebx + 0x25c]
mov esi, dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
setne al
test al, al
jne 0x40d663
push 1
push dword [ebx + 0x25c]
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 0
push 0
push 0x202
push dword [ebx + 0x25c]
call dword [sym.imp.USER32.dll_SendMessageW]
or eax, 0xffffffff
jmp 0x40d7c1
push 5
push dword [ebx + 0x25c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
mov esi, dword [esi + 8]
shr eax, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov ebx, 0
je 0x40d735
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d6b0
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 1
jle 0x40d735
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
je 0x40d6f4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d6e5
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00407340
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x38]
call fcn.0040a510
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40d727
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407a10
add ebx, edi
lea esi, [esi + edi*2]
cmp ebx, dword [ebp - 0x3c]
jb 0x40d6a3
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
push eax
call fcn.00410930
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40d7bf
push dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
push ecx
mov ecx, ebx
call fcn.0040ab20
mov ecx, dword [ebp - 0x30]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x40d77b
call fcn.004ab969
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x40d7b6
test bl, 0x1f
je 0x40d792
call fcn.004ab969
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x40d79e
call fcn.004ab969
sub ebx, eax
cmp ebx, 4
jae 0x40d7aa
call fcn.004ab969
cmp ebx, 0x23
jbe 0x40d7b4
call fcn.004ab969
mov ebx, eax
push ebx
call fcn.00466902
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret 8
Function at 0x40e1e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef1a2
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
push 0x50c480
lea ecx, [edi + 4]
call dword [sym.imp.soui.dll_public:_class_SOUI::SWindow____thiscall_SOUI::SWindow::FindChildByName_wchar_t_const___int_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_class_SOUI::CRect___thiscall_SOUI::SWindow::GetWindowRect_void_]
mov eax, dword [ebp - 0x28]
lea ecx, [edi + 0x250]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ClientToScreen_struct_tagPOINT__const]
cmp dword [edi + 0x414], 0
jne 0x40e32b
push 0x400
call fcn.00466950
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov ecx, eax
push dword [edi + 0x25c]
call fcn.0043a4b0
push 0
push 0
push 0
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
push 0
push dword [edi + 0x25c]
mov dword [edi + 0x414], eax
call dword [sym.imp.soui.dll_public:_struct_HWND______thiscall_SOUI::SHostWnd::Create_struct_HWND_____int__int__int__int_]
mov eax, dword [edi + 0x414]
push 0
push 0
push 0x110
push dword [eax + 0x25c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x414]
lea edx, [ebp - 0x20]
add ecx, 4
push edx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
sub esi, edx
add esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov eax, esi
sub eax, dword [ebp - 0x20]
add edx, eax
mov dword [ebp - 0x20], esi
mov eax, ecx
mov dword [ebp - 0x18], edx
sub eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 0x414]
push 1
push eax
add ecx, 0x250
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::MoveWindow_struct_tagRECT_const___int_]
mov eax, dword [edi + 0x414]
push 0xa
push dword [eax + 0x25c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x414]
mov eax, dword [eax + 0x25c]
mov dword [edi + 0x418], eax
jmp 0x40e353
push 0xa
push dword [edi + 0x418]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x418]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push dword [edi + 0x418]
call dword [sym.imp.USER32.dll_FlashWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret
Function at 0x40ffe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef680
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x404]
mov eax, 0x38e38e39
sub ecx, dword [edi + 0x400]
mov esi, dword [ebp + 8]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x4100c2
mov eax, dword [edi + 0x400]
lea esi, [esi + esi*8]
shl esi, 3
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x41004a
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4100c2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x400]
add edx, esi
cmp dword [edx + 0x14], 0x10
jb 0x410081
mov edx, dword [edx]
lea ecx, [ebp - 0x2c]
call fcn.0044bac0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040a510
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4100af
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407a10
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.00410930
lea ecx, [ebp - 0x38]
call fcn.0041c550
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret 4

Function at 0x410390
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef728
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x536014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 1
push dword [edi + 0x25c]
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.0040a0b0
mov ebx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
mov ecx, ebx
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x410450
mov byte [ebp - 0x10], 0
lea ecx, [esi + 0x18]
push dword [ebp - 0x10]
mov edx, ebx
push esi
call fcn.00419400
add esp, 8
lea esi, [ebx - 0x18]
mov edx, ebx
push dword [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.0040ab20
add esp, 8
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00410930
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
jmp 0x410457
mov ecx, edi
call fcn.00410840
test esi, esi
je 0x410488
push dword [ebp - 0x10]
mov edx, ebx
push ecx
mov ecx, esi
call fcn.0040ab20
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040ac40
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411dc0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efa53
mov eax, dword fs:[0]
push eax
mov eax, 0x193a0
call fcn.004e3990
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x3ec]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov eax, dword [eax + 0x188]
imul esi, eax, 0x6c
mov eax, dword [edi + 0x3f4]
add eax, 0x1c
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
add eax, esi
push eax
call fcn.00406dc0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x3f4]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x411e44
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x193ac]
call fcn.004148c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
sub esp, 8
push str.pdf_files_.pdf_
push ecx
push eax
push ecx
push 0
lea ecx, [ebp - 0x193a8]
call fcn.0041bd60
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [ebp - 0x193a4]
test ecx, ecx
cmove ecx, eax
cmp dword [ebp - 0x19350], 0
lea eax, [ebp - 0x193a8]
mov dword [ebp - 0x193a4], ecx
push eax
je 0x411ea6
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x411eac
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
cmp eax, 1
jne 0x411ee1
mov eax, dword [ebp - 0x193ac]
cmp dword [eax - 4], 1
jle 0x411ed1
push dword [eax - 0xc]
lea ecx, [ebp - 0x193ac]
call fcn.004153b0
mov eax, dword [ebp - 0x193ac]
push 0
lea ecx, [ebp - 0xcb4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x193ac]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x411f1e
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x411f1a
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x411f1e
mov ecx, edx
call esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x411f33
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407a10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret
Function at 0x41b4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41b4c9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41b506
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41b502
nop word [eax + eax]
cmp esi, edx
jae 0x41b506
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x41b4f0
cmp esi, edx
jb 0x41b50d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x426e90
Capabilities:
Access peb ldr_data
Get file size
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1131
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x14
mov dword [ebp - 0x3c], eax
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00466950
add esp, 4
mov edi, eax
mov dword [ebp - 0x34], edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
mov dword [edi + 4], 0
mov dword [edi + 0xc], edi
mov dword [edi + 8], 0x427970
mov dword [edi], vtable.PdfFileAccessImpl.0
mov dword [edi + 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x38]
mov dword [edi + 0x10], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x38]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x14], edi
mov edi, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov esi, dword [edi + 0x14]
mov edx, ebx
lea eax, [esi + 4]
neg esi
sbb esi, esi
and esi, eax
call fcn.0044b850
cmp dword [eax + 0x14], 0x10
jb 0x426fa3
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.pdfium.dll__FPDF_LoadCustomDocument_8]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x426fc2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407610
call dword [sym.imp.pdfium.dll__FPDF_GetLastError_0]
push dword [edi]
mov dword [edi + 0x10], eax
call dword [sym.imp.pdfium.dll__FPDF_GetPageCount_4]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x30]
mov dword [edi + 0x34], eax
cmp dword [edi + 4], 0
jne 0x427015
push 0x44
lea esi, [edi + 0x3c]
push 0
push esi
call fcn.0048acb0
add esp, 0xc
mov dword [esi], 1
push esi
push dword [edi]
call dword [sym.imp.pdfium.dll__FPDFDOC_InitFormFillEnvironment_8]
mov dword [edi + 4], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret 8