joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
cmp dword [0x40d6958], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
jne 0x401412
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4192f8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x4192fc]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x28], eax
call fcn.004013d2
mov ecx, dword [0x419300]
mov eax, dword [0x419304]
add dword [ebp - 4], 0x23f
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x40d6958], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x40d6954]
cmove eax, edx
xor edx, edx
cmp dword [0x40d6958], 0x3eb
mov dword [0x40d6954], eax
mov eax, dword [0x40d2d5c]
cmove eax, edx
add ecx, ebx
mov dword [0x40d2d5c], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp - 8]
xor edx, ecx
add eax, dword [ebp - 0x1c]
mov ecx, dword [0x40d6958]
xor eax, edx
mov dword [0x40d6950], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x401546
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0xc4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x44c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x40d6958]
sub edi, eax
cmp ecx, 0xc
jne 0x401554
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, edi
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 4]
shr eax, cl
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 0xc], edx
call fcn.004013d9
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x4015a0
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401450
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d75d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4187a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408e07
mov dword [ebp - 0x14], eax
cmp dword [0x4e7778], esi
jne 0x40d850
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d7dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d930
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d930
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d930
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4e7778], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4e777c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4e7780], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4e7788], eax
test eax, eax
je 0x40d84d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4e7784], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d875
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d868
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d88a
push 4
pop eax
jmp 0x40d932
cmp dword [ebp - 0x14], esi
je 0x40d88a
push dword [0x4e7778]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d86f
mov eax, dword [0x4e7784]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d8e8
cmp dword [0x4e7788], edi
je 0x40d8e8
push eax
call ebx
push dword [0x4e7788]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d8e8
test eax, eax
je 0x40d8e8
call ecx
test eax, eax
je 0x40d8dd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d8dd
test byte [ebp - 8], 1
jne 0x40d8e8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d918
mov eax, dword [0x4e777c]
cmp eax, edi
je 0x40d915
push eax
call ebx
test eax, eax
je 0x40d915
call eax
mov esi, eax
test esi, esi
je 0x40d915
mov eax, dword [0x4e7780]
cmp eax, edi
je 0x40d915
push eax
call ebx
test eax, eax
je 0x40d915
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4e7778]
call ebx
test eax, eax
je 0x40d930
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d932
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041de
mov esp, ebp
pop ebp
ret
Function at 0x40d588
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d3c
mov dword [ebp - 0x14], eax
cmp dword [0x436318], esi
jne 0x40d67b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d608
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d75b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d75b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d75b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x436318], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43631c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x436320], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436328], eax
test eax, eax
je 0x40d678
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436324], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d693
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6b5
push 4
pop eax
jmp 0x40d75d
cmp dword [ebp - 0x14], esi
je 0x40d6b5
push dword [0x436318]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d69a
mov eax, dword [0x436324]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d713
cmp dword [0x436328], edi
je 0x40d713
push eax
call ebx
push dword [0x436328]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d713
test eax, eax
je 0x40d713
call ecx
test eax, eax
je 0x40d708
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d708
test byte [ebp - 8], 1
jne 0x40d713
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d743
mov eax, dword [0x43631c]
cmp eax, edi
je 0x40d740
push eax
call ebx
test eax, eax
je 0x40d740
call eax
mov esi, eax
test esi, esi
je 0x40d740
mov eax, dword [0x436320]
cmp eax, edi
je 0x40d740
push eax
call ebx
test eax, eax
je 0x40d740
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x436318]
call ebx
test eax, eax
je 0x40d75b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d75d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040f0
mov esp, ebp
pop ebp
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1002aaee
pop dword [ebp - 0xc]
mov eax, 0x3ad34211
add eax, 0xd52f68dd
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc43f2045
sub dword [ebp - 0x1c], 0x75ecdafa
mov dword [ebp - 0x18], 0x1dab7aaf
add dword [ebp - 0x18], 0x1487d196
mov dword [ebp - 0x14], 0x1c5e0eb7
sub dword [ebp - 0x14], 0xd011ca89
mov dword [ebp - 0x10], 0x95e0b6d0
add dword [ebp - 0x10], 0x6a1f4930
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x2e60f695
sub eax, 0x1e5e365d
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xd71eb5de
sub dword [ebp - 0x1c], 0x62ac4c88
mov dword [ebp - 0x18], 0x1ef1e0af
sub dword [ebp - 0x18], 0xdd857f3a
mov dword [ebp - 0x14], 0xc382a357
add dword [ebp - 0x14], 0x9fecc915
mov dword [ebp - 0x10], 0x33f03d81
add dword [ebp - 0x10], 0xcc0fc27f
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x6f48d3d3
sub eax, 0x5f4613ab
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3af74
push 0
call eax
mov ecx, 0xff79a1b1
add ecx, 0x86b84d
mov edx, eax
mov esi, 0x8350262f
add esi, 0x8cb36fd1
add esi, dword [ebp - 0xc]
mov ebx, 0xa169e00b
add dword [ebp - 4], 0xbfea9887
mov edi, dword [esi]
add dword [ebp - 4], 0x2c213922
xor edi, ebx
add dword [ebp - 8], 0x18adce47
mov dword [edx], edi
mov dword [ebp - 4], 0x761c9840
add edx, 4
add esi, 0x339b3a21
add esi, 0xcc64c5e3
loop 0x1002ac0a
add eax, 0x9353e36b
sub eax, 0x935288a0
mov ebx, eax
add eax, 0x2754914c
sub eax, 0x27549147
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x406739
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x469c7c], 0
jne 0x406777
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40674d
mov dword [ecx*4 + 0x469c78], eax
inc ecx
cmp ecx, 0x100
jl 0x406748
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4067a4
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469c78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406785
not eax
pop ebp
ret 0xc

Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4
Function at 0x401000
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x40e2eb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x415284]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov ebx, dword [sym.imp.MSVCR80.dll__access]
xor esi, esi
push esi
push ebp
call ebx
add esp, 8
cmp eax, 0xffffffff
jne 0x401058
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ebp
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push 0x4106ee
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], esi
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push 0x4106ee
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call dword [sym.imp.MFC80.DLL_Ordinal_304]
mov edi, dword [sym.imp.MFC80.DLL_Ordinal_2322]
mov dword [esp + 0x20], esi
mov byte [esp + 0x2c], 2
mov esi, 1
mov edi, edi
push esi
lea eax, [esp + 0x1c]
push str.._04d
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_907]
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4010f6
add esi, 1
cmp esi, 0x270f
jle 0x4010a0
mov esi, dword [esp + 0x20]
jmp 0x40110c
push 1
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4033d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40e7f9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x415284]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x574], 0
jne 0x4034ab
call sub.MFC80.DLL_Ordinal_1084
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push 0
call edi
test eax, eax
mov dword [ebx + 0x574], eax
jne 0x4034ab
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
push 0x104
push 0x104
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call dword [sym.imp.MFC80.DLL_Ordinal_2468]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_5403]
push str.winhlp32.exe
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_911]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4034a1
push 0x6a
push esi
call edi
test eax, eax
je 0x40349a
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x574], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4038c0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x40e919
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x415284]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
push 0x4106ee
mov ecx, esi
mov ebx, 1
call dword [sym.imp.MFC80.DLL_Ordinal_784]
mov edi, dword [esp + 0x24]
push 0
push edi
call dword [sym.imp.MSVCR80.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x403924
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40390f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4039b6
test eax, eax
je 0x4039b6
add eax, 0x200
shr eax, 0xa
jne 0x403962
mov eax, ebx
push eax
push 0x4110d0
push esi
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
add esp, 0xc
mov ecx, esi
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004037e0
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x20], 0
call dword [sym.imp.MFC80.DLL_Ordinal_781]
push str._KB
mov ecx, esi
call dword [sym.imp.MFC80.DLL_Ordinal_911]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
jmp 0x4039b8
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x403c40
Capabilities:
Get file version info

Disassembly:
sub esp, 0x38
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0xc]
push eax
lea ebp, [esi + 0x28]
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x403d49
push ebx
lea ebx, [edi + 1]
push ebx
call sub.MFC80.DLL_Ordinal_265
push ebx
push 0
push eax
mov dword [esi], eax
call sub.MSVCR80.dll_memset
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
add esp, 0x10
push ecx
push edi
push edx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop ebx
je 0x403d49
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00403b30
test eax, eax
je 0x403d49
mov eax, dword [esp + 0x18]
mov ecx, eax
mov word [esi + 0xa], ax
mov eax, dword [esp + 0x1c]
shr ecx, 0x10
mov edx, eax
mov word [esi + 0xe], ax
mov eax, dword [esp + 0x20]
mov word [esi + 8], cx
mov ecx, eax
shr ecx, 0x10
shr edx, 0x10
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x24]
mov word [esi + 0x10], cx
mov ecx, dword [esp + 0x30]
mov word [esi + 0xc], dx
mov edx, eax
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], ecx
shr edx, 0x10
lea ecx, [esi + 0x230]
push ecx
mov word [esi + 0x14], dx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x3c]
push str.CompanyName
mov ecx, esi
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
call fcn.00403b80
lea edx, [esi + 0x640]
push edx
push str.FileDescription
mov ecx, esi
call fcn.00403b80
lea eax, [esi + 0x438]
push eax
push str.ProductName
mov ecx, esi
call fcn.00403b80
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x38
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x38
ret

Function at 0x4043a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, esi
mov dword [esp + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4043b0
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
mov edx, dword [esp + 0x14]
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4043e9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4043d8
sub eax, edx
cmp dword [esp + 4], eax
je 0x4043fd
push 0x413540
lea eax, [esp + 7]
push eax
mov byte [esp + 0xb], 0
call sub.MSVCR80.dll__CxxThrowException
add esp, 8
ret
Function at 0x404410
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x50
mov eax, dword [0x415284]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov esi, 0x411478
mov ebx, ecx
mov dword [esp + 0x10], eax
call fcn.004043a0
push edi
mov esi, ebx
call fcn.004043a0
mov eax, ebp
add esp, 8
sub eax, 1
je 0x40448a
sub eax, 2
je 0x40447c
sub eax, 1
je 0x40446e
push ebp
push str._hex__x_:
lea ecx, [esp + 0x20]
push 0x40
push ecx
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x10
jmp 0x40449f
push 0x40
push str._dword:
lea edx, [esp + 0x20]
push edx
jmp 0x404496
push 0x40
push str._hex:
lea eax, [esp + 0x20]
push eax
jmp 0x404496
push 0x40
push 0x411454
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MSVCR80.dll__mbsnbcpy]
add esp, 0xc
push edi
lea esi, [esp + 0x1c]
call fcn.004043a0
add esp, 4
cmp ebp, 1
je 0x40456a
cmp ebp, 2
je 0x40456a
cmp ebp, 4
jne 0x404502
mov ebx, dword [esp + 0x68]
add ebx, 0xffffffff
js 0x40461e
mov edx, dword [esp + 0xc]
movzx eax, byte [edx + ebx]
push eax
push str._02x
lea ecx, [esp + 0x20]
push 0x40
push ecx
call dword [sym.imp.MSVCR80.dll__snprintf]
push edi
lea esi, [esp + 0x2c]
call fcn.004043a0
add esp, 0x14
sub ebx, 1
jns 0x4044d0
jmp 0x40461e
mov ebp, dword [esp + 0x68]
xor ebx, ebx
test ebp, ebp
jbe 0x40461e
test ebx, ebx
mov eax, 0x4110c0
ja 0x40451e
mov eax, 0x4106ee
mov edx, dword [esp + 0xc]
movzx ecx, byte [edx + ebx]
push ecx
push eax
push str._s_02x
lea edx, [esp + 0x24]
push 0x40
push edx
call dword [sym.imp.MSVCR80.dll__snprintf]
push edi
lea esi, [esp + 0x30]
call fcn.004043a0
add esp, 0x18
test ebx, ebx
jbe 0x40455e
test bl, 0xf
jne 0x40455e
push edi
mov esi, 0x410a7c
call fcn.004043a0
add esp, 4
add ebx, 1
cmp ebx, ebp
jb 0x404510
jmp 0x40461e
mov eax, dword [esp + 0x68]
add eax, 0xffffffff
xor ebp, ebp
test eax, eax
mov dword [esp + 0x14], eax
jle 0x404610
nop
mov eax, dword [esp + 0xc]
lea ebx, [eax + ebp]
mov al, byte [ebx]
cmp al, 0x5c
je 0x404591
cmp al, 0x22
jne 0x40459f
push edi
mov esi, 0x4110d4
call fcn.004043a0
add esp, 4
movzx ecx, byte [ebx]
push ecx
call dword [sym.imp.MSVCR80.dll__ismbcprint]
add esp, 4
test eax, eax
je 0x4045e0
push 0
lea edx, [esp + 0x14]
push edx
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4045cc
cmp dword [esp + 0x10], 1
je 0x404603
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0040d786
add esp, 0x50
ret
movzx eax, byte [ebx]
push eax
push 0x41143c
lea ecx, [esp + 0x20]
push 0x40
push ecx
call dword [sym.imp.MSVCR80.dll__snprintf]
push edi
lea esi, [esp + 0x2c]
call fcn.004043a0
add esp, 0x14
add ebp, 1
cmp ebp, dword [esp + 0x14]
jl 0x404580
push edi
mov esi, 0x411478
call fcn.004043a0
add esp, 4
push edi
mov esi, 0x410a7c
call fcn.004043a0
mov ecx, dword [esp + 0x5c]
add esp, 4
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0040d786
add esp, 0x50
ret