joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ab2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0044a7a0
mov eax, dword [0x47fad0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0045a6f2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45ab6c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x45acc8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004659a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x480f38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00464100
mov ecx, dword [esi*4 + 0x480f38]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x45acc1
cmp eax, dword [edi + ecx + 0x24]
jne 0x45acc1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45acc1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00464100
add esp, 0x14
test edx, edx
jl 0x45acc1
jg 0x45ac37
test eax, eax
jb 0x45acc1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45acc1
jl 0x45ac51
cmp dword [ebp - 0x1008], eax
ja 0x45acc1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45ac6f
test ebx, ebx
je 0x45aca8
cmp ecx, edi
jae 0x45aca8
mov al, byte [ecx]
cmp al, 0xd
jne 0x45ac89
lea eax, [edi - 1]
cmp ecx, eax
jae 0x45ac95
cmp byte [ecx + 1], 0xa
jne 0x45ac95
inc ecx
jmp 0x45ac95
movzx eax, al
movsx eax, byte [eax + 0x480250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45ac6f
cmp edx, ebx
jne 0x45ac6f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x45acc6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044b208
leave
ret

Function at 0x45efe0
Capabilities:
Parse pe header

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

Function at 0x45f35d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x47552c
push str.FlsAlloc
push 0x1e
call fcn.0045f640
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45f391
push dword [ebp + 8]
mov ecx, esi
call dword [0x47aabc]
call esi
jmp 0x45f397
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x45f3db
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x475550
push str.FlsGetValue
push 0x20
call fcn.0045f640
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45f412
push dword [ebp + 8]
mov ecx, esi
call dword [0x47aabc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x465175
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47fad0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4651c0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004652eb
test al, al
jne 0x4651ba
sub edx, 2
cmp edx, edi
jne 0x4651a0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4651e2
lea eax, [edi + 2]
cmp edx, eax
je 0x4651e2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004650c1
add esp, 0x10
jmp 0x4652dc
push esi
lea ecx, [ebp - 0x255]
call fcn.004652eb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x465225
push dword [ebp - 0x25c]
jmp 0x4651d2
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x465262
cmp word [ebp - 0x226], 0
je 0x465283
cmp word [ebp - 0x226], ax
jne 0x465262
cmp word [ebp - 0x224], 0
je 0x465283
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004650c1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4652cf
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46523c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4652b7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4652dc
push 0x46530f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0046d300
add esp, 0x10
jmp 0x4652ac
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b208
leave
ret
Function at 0x4660cf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x480f38]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46610f
cmp byte [ebx], 0xa
jne 0x46610f
or byte [eax + edi + 0x28], 4
jmp 0x466114
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x466212
mov al, byte [edx]
cmp al, 0x1a
je 0x4661f4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x466143
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x466168
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x466172
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x466125
jmp 0x466212
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4661ef
cmp dword [ebp - 0xc], 0
je 0x4661ef
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x480f38]
test byte [eax + edi + 0x28], 0x48
je 0x4661c9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4661b4
mov byte [esi], dl
jmp 0x4661c5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x480f38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x466212
cmp byte [ebp - 1], 0xa
jne 0x4661d8
cmp esi, ebx
jne 0x4661d8
mov byte [esi], 0xa
jmp 0x466211
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00464097
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x466212
mov byte [esi], 0xd
jmp 0x466211
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x480f38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46620e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x466212
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46621b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x480f38]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46625e
cmp word [esi], dx
jne 0x46625e
or byte [edi + eax + 0x28], 4
jmp 0x466263
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4663b6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x466396
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4662a5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4662db
cmp eax, edx
jae 0x4662e7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46627d
jmp 0x4663b6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x466392
cmp dword [ebp - 0x14], 0
je 0x466392
mov eax, dword [ebx*4 + 0x480f38]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46636a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x466333
mov word [esi], cx
jmp 0x466366
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x480f38]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x480f38]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x480f38]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4663b6
pop ebx
cmp word [ebp - 4], bx
jne 0x46637b
cmp esi, dword [ebp + 0xc]
jne 0x46637b
mov word [esi], bx
jmp 0x4663b3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00464097
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4663b6
push 0xd
jmp 0x4663af
mov ecx, dword [ebx*4 + 0x480f38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4663ad
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4663b6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x46647a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x46648b
pop esi
ret
push ebx
push edi
push esi
call fcn.004664c8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004611cf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4664b3
push ebx
push esi
push edi
call fcn.0044ce50
add esp, 0xc
push 0
call fcn.00460884
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4664ff
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046650a

Function at 0x469413
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046941e
Function at 0x4029b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x410d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x70]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0x20]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 8]
add eax, 0xffffffb2
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x28], eax
add eax, 0x3c
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push 0
mov esi, eax
mov eax, dword [esp + 0x28]
push 0x808080
push 1
push ecx
push eax
push edx
push eax
sub esp, 0x10
mov ebx, esp
push esi
mov dword [ebx], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
call fcn.00401480
add esp, 0x30
lea ecx, [esp + 0x24]
push 0
push 0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
mov edx, dword [esi]
lea eax, [edi + 0xf4]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [esi]
push 0xffffff
mov ecx, esi
call dword [edx + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov ecx, dword [0x41c950]
call fcn.004052e0
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
fild qword [esp + 0x10]
fmul qword [edi + 0x1f8]
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov eax, ebx
xor edx, edx
mov ebp, 0x1770
div ebp
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov eax, 0x57619f1
push edx
mul ebx
shr edx, 7
push edx
mov eax, ecx
xor edx, edx
mov ebx, ebp
div ebx
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov eax, 0x57619f1
push edx
mul ecx
shr edx, 7
push edx
lea eax, [esp + 0x44]
push str._d:_02d__d:_02d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea ecx, [esp + 0x10]
call fcn.0041062e
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
sub eax, ebx
mov ebx, dword [esp + 0x28]
sub eax, ebx
mov ebp, dword [esi]
cdq
sub eax, edx
mov dword [esp + 0x5c], 0
mov ecx, eax
mov eax, dword [esp + 0x2c]
sar ecx, 1
add ecx, ebx
mov ebx, dword [esp + 0x1c]
sub eax, ebx
mov ebx, dword [esp + 0x24]
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ebx
mov ebx, dword [edx - 8]
push ebx
push edx
push ecx
push eax
mov ecx, esi
call dword [ebp + 0x64]
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0041062e
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x4041b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
push 0x41809c
push 0x4185ac
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40423f
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, eax
push 0
lea eax, [edi - 4]
push eax
push esi
call ebx
push esi
push 1
lea ecx, [esp + 0x30]
push 4
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x38]
add esp, 0x2c
test eax, eax
pop ebx
jbe 0x404235
cmp eax, 0x61a80
jae 0x404235
cmp eax, edi
jae 0x404235
push esi
mov dword [0x4187ac], eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x405460
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push 0x41809c
mov dword [esp + 0xc], 0
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40553f
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x14bd4]
push edi
mov edi, dword [esp + 0x18]
lea eax, [eax + eax*2]
push 0
shl eax, 4
mov edx, dword [ecx + eax + 5]
mov dword [edi], edx
mov ecx, dword [esi + 0x14bd4]
mov edx, dword [ecx + eax + 0xc]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [edi]
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x40551b
mov edi, dword [edi]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
cmp edi, 0x7530
mov esi, eax
jbe 0x405504
push ebx
push 1
push 0x7530
push esi
call ebp
add esp, 0x10
test eax, eax
je 0x405504
sub edi, 0x7530
add esi, 0x7530
cmp edi, 0x7530
ja 0x4054de
push ebx
push 1
push edi
push esi
call ebp
add esp, 0x10
test eax, eax
pop ebp
je 0x40551b
mov dword [esp + 0xc], 1
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
mov eax, dword [esp + 0x14]
pop edi
jne 0x405541
test eax, eax
je 0x40553f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop esi
pop ebx
pop ecx
ret 8

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

Disassembly:
push 0xffffffffffffffff
push 0x41110a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], al
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov cl, byte [esp + 0xb]
mov dword [esp + 0x18], edi
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dl, byte [esp + 0xb]
mov dword [esi + 0x28], edi
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov al, byte [esp + 0xb]
mov dword [esi + 0x3c], edi
mov byte [esi + 0x38], al
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
lea ecx, [esi + 0x484c]
mov byte [esp + 0x18], 3
call fcn.004091c0
lea ecx, [esi + 0x60b8]
mov byte [esp + 0x18], 4
call fcn.004091c0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x7924], edi
mov dword [esi + 0x7970], edi
mov dword [esi], 0x4128a4
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x411168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4128a4
mov dword [esp + 0x14], 5
call fcn.004080d0
lea ecx, [esi + 0x60b8]
mov byte [esp + 0x14], 4
call fcn.00409270
lea ecx, [esi + 0x484c]
mov byte [esp + 0x14], 3
call fcn.00409270
mov eax, dword [esi + 0x3c]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407864
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407880
shr eax, 1
xor eax, 0xedb88320
jmp 0x407882
shr eax, 1
dec edx
jne 0x407873
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40786c
pop esi
ret

Function at 0x4078af
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4078bb
call fcn.00407864
push 1
push 0x40c558
call fcn.004043d0
mov eax, edi
test esi, esi
je 0x4078e6
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4078c1
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x401273
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401288
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40129a
xor eax, eax
jmp 0x4012cc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4012be
cmp esi, eax
jae 0x401296
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012b0
cmp esi, eax
jae 0x401296
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x401604
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jbe 0x4016bf
lea eax, [esi + esi + 2]
push edi
push eax
call fcn.00404855
mov edi, eax
cmp edi, ebx
pop ecx
je 0x4016be
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4016b7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x40c398
push edi
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4016b7
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x40c39c
push dword [ebp + 0xc]
call fcn.004047e6
mov eax, dword [ebp + 0x10]
add esp, 0x18
cmp eax, ebx
je 0x4016b4
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0xa]
mov dword [eax], edx
movzx edx, word [ecx + 8]
mov dword [eax + 4], edx
movzx edx, word [ecx + 0xe]
mov dword [eax + 8], edx
movzx ecx, word [ecx + 0xc]
mov dword [eax + 0xc], ecx
xor ebx, ebx
inc ebx
push edi
call fcn.004047e1
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret