joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4934f1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x493516
cmp eax, esi
jge 0x49350e
mov eax, edi
call fcn.00492f6d
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
xor eax, eax
cmp dword [edi + 8], eax
jle 0x493538
mov cl, byte [edi + 0xc]
shr dword [edi + 0xc], 8
add dword [edi + 8], 0xfffffff8
mov byte [ebp + eax - 4], cl
inc eax
cmp dword [edi + 8], 0
jg 0x49351d
cmp eax, 4
jge 0x493554
mov esi, dword [edi + 4]
mov ecx, dword [edi]
cmp ecx, esi
jb 0x493545
xor dl, dl
jmp 0x493548
mov dl, byte [ecx]
inc ecx
mov byte [ebp + eax - 4], dl
inc eax
cmp eax, 4
jl 0x49353d
mov dword [edi], ecx
movzx esi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, esi
xor ecx, 0xffff
cmp eax, ecx
je 0x493588
mov dword [0x4edd44], str.zlib_corrupt
xor eax, eax
jmp 0x4935d4
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x49359d
mov dword [0x4edd44], str.read_past_buffer
jmp 0x493584
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x4935b3
push esi
call fcn.00493045
pop ecx
test eax, eax
je 0x493584
mov eax, dword [edi + 0x10]
push ebx
mov ebx, dword [edi]
push esi
push ebx
push eax
call fcn.0049a300
mov eax, dword [edi + 0x10]
add eax, esi
add ebx, esi
mov dword [edi + 0x10], eax
add esp, 0xc
xor eax, eax
mov dword [edi], ebx
inc eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x49795f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e8070]
jne 0x497969
repz ret
jmp fcn.0049925b
Function at 0x49f549
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.004994c6
and dword [ebp - 4], 0
cmp dword [0x4ed92c], 0
mov ebx, eax
jne 0x49f5fa
push 0x4bf16c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49f6ab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x49f6ab
push eax
call fcn.00499454
mov dword [esp], 0x4bf150
push edi
mov dword [0x4ed92c], eax
call esi
push eax
call fcn.00499454
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ed930], eax
call esi
push eax
call fcn.00499454
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ed934], eax
call esi
push eax
call fcn.00499454
pop ecx
mov dword [0x4ed93c], eax
test eax, eax
je 0x49f5fa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00499454
pop ecx
mov dword [0x4ed938], eax
mov eax, dword [0x4ed938]
cmp eax, ebx
je 0x49f652
cmp dword [0x4ed93c], ebx
je 0x49f652
push eax
call fcn.004994cf
push dword [0x4ed93c]
mov esi, eax
call fcn.004994cf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49f652
test edi, edi
je 0x49f652
call esi
test eax, eax
je 0x49f649
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49f649
test byte [ebp - 0xc], 1
jne 0x49f652
or dword [ebp + 0x10], 0x200000
jmp 0x49f68b
mov eax, dword [0x4ed930]
cmp eax, ebx
je 0x49f68b
push eax
call fcn.004994cf
pop ecx
test eax, eax
je 0x49f68b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49f68b
mov eax, dword [0x4ed934]
cmp eax, ebx
je 0x49f68b
push eax
call fcn.004994cf
pop ecx
test eax, eax
je 0x49f68b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ed92c]
call fcn.004994cf
pop ecx
test eax, eax
je 0x49f6ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49f6ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5fb008], 0x8088405
inc edx
mov dword [ebx + 0x5fb008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5de9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5de9f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5dfd6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x5fd73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x5fd73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x5fc538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5dfd72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x15aaa64
Capabilities:
Encode data using xor

Disassembly:
sub al, al
stc
mov byte [esp], cl
cmp eax, dword [ebp - 0x10]
pushfd
lea esp, [esp + 8]
jae 0x15b3803
xchg di, bx
pushfd
bswap bx
mov ebx, eax
pop edi
pushal
pushal
not di
mov edi, eax
pushfd
pushfd
lea esp, [esp + 0x48]
jmp 0x15b1abd
push ebp
call fcn.015a0c7e
clc
jmp 0x15a1482
and cl, ah
setb cl
mov ecx, 0x104
pushfd
stc
cmc
jmp 0xd2ecd1
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x406056
Capabilities:
Hash data with crc32

Disassembly:
or eax, 0x4054b6ff
add byte [ebx - 0xf8b0008], al
jo 0x4060a3
add byte [edi + 0x50], dl
mov eax, dword [0x423f90]
or al, 0x57
mov ebx, dword [eax*2 - 0x1faa7424]
mov edi, dword [0x6a0000f0]
jmp 0x406086
push 1
push esi
cmp eax, 0x6a002a74
add byte [esi + 0x75], dl
sub eax, 0x86ac933

Function at 0x406089
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov eax, dword [ebp - 0x1c]
cmp esi, dword [0x2d750bc]
mov esp, 0xe802d750
add esp, esi
pop edi
pop esi
jl 0x4060b6
mov ecx, dword [0x70f025ff]
inc eax
add byte [ebx + 0x2a743d], al
push 0
push esi
jne 0x4060d9
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
loop 0x4060b9
neg dl
sbb edx, edx
and edx, 0xedb88320
ficomp dword [ebx]
rol byte [ecx - 0x477cdf1e], cl
in eax, dx
shr eax, 1
xor eax, edx
dec esi
jne 0x4060b3
mov dword [ecx*4 + 0x6a002a70], eax
inc ecx
cmp ecx, 0x3e80200
jl 0x4060ae
mov edx, dword [esp + 0x10]
add al, 0x42
add byte [eax], cl
test edx, edx
not eax
jbe 0x40610a
movsb byte es:[edi], byte [esi]
hlt
not eax
push eax
mov eax, dword [0xb8b60c]
add byte [ebp + 0x4c648c0], al
or byte [eax], al
dec eax
mov byte [eax + ecx], 0
jne 0x406115
or dword [ecx + 0x78], 0xffffffff
xor eax, eax
inc eax
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x5c], eax
pop ebp
clc
call dword [0xff907088]
adc eax, 0x5742aca0
push 0x22
mov esi, ecx
pop ecx
lea edi, [ebp - 0x88]
mov dword [ebp - 0x90], esi
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x30], 0xffffffff
sbb eax, 0x40c03308
jmp 0xff93c0c3
Function at 0x406c5a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004034c8
mov dword [ebp - 0x14], eax
cmp dword [0x411cec], edi
jne 0x406d4b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x406cd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x406e2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x406e2b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406e2b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x411cec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x411cf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x411cf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x411cfc], eax
test eax, eax
je 0x406d48
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x411cf8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x406d70
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406d63
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x406d85
push 4
pop eax
jmp 0x406e2d
cmp dword [ebp - 0x14], edi
je 0x406d85
push dword [0x411cec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x406d6a
mov eax, dword [0x411cf8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x406de3
cmp dword [0x411cfc], esi
je 0x406de3
push eax
call ebx
push dword [0x411cfc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x406de3
test eax, eax
je 0x406de3
call ecx
test eax, eax
je 0x406dd8
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 0x406dd8
test byte [ebp - 8], 1
jne 0x406de3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x406e13
mov eax, dword [0x411cf0]
cmp eax, esi
je 0x406e10
push eax
call ebx
test eax, eax
je 0x406e10
call eax
mov edi, eax
test edi, edi
je 0x406e10
mov eax, dword [0x411cf4]
cmp eax, esi
je 0x406e10
push eax
call ebx
test eax, eax
je 0x406e10
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x411cec]
call ebx
test eax, eax
je 0x406e2b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x406e2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004023d7
leave
ret
Function at 0x4044b1
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x404522
push 0
push ecx
mov eax, esp
mov dword [esp + 0xc], esp
push 0x41eae4
push 0x41fc7c
push eax
call sub.MFC42.DLL_operator_1
mov ecx, 0x41fbd8
call fcn.00401130
test eax, eax
jne 0x4044f7
push 3
mov ecx, esi
call fcn.00404730
mov ecx, esi
call fcn.00404710
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 4]
push edx
push 0
push esi
push 0x404980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], 1
mov eax, 1
pop esi
pop ecx
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x417121
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x30]
call fcn.00415a80
lea edi, [esi + 0x34]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00415a80
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 1
call fcn.00415a80
mov eax, dword [esp + 0x20]
mov ecx, edi
push eax
mov byte [esp + 0x1c], 2
mov dword [esi], 0x418ad8
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 4], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4079d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x38], 0
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
push 1
mov ecx, esi
mov dword [esp + 0x44], eax
call sub.MFC42.DLL_CDC::SetBkMode
mov ebx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov al, byte [esp + 0x50]
test al, al
je 0x407ab1
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push ebp
mov ebp, dword [esi]
push 0x14
call edi
push eax
mov ecx, esi
call dword [ebp + 0x38]
mov eax, dword [esp + 0x50]
mov edx, ebx
mov ebp, dword [edx]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ebp
mov ebp, dword [edx + 4]
push eax
mov dword [esp + 0x1c], ebp
lea eax, [esp + 0x18]
mov ebp, dword [edx + 8]
push ecx
push eax
mov dword [esp + 0x28], ebp
mov edx, dword [edx + 0xc]
mov dword [esp + 0x2c], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], edx
mov edx, dword [esi]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
lea ebp, [esp + 0x24]
push 0x8024
push ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov ebp, dword [esi]
push 0x10
call edi
push eax
mov ecx, esi
call dword [ebp + 0x38]
pop ebp
jmp 0x407ac1
mov edi, dword [esi]
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call dword [edi + 0x38]
mov eax, dword [esp + 0x44]
mov edx, dword [esi]
push 0x8024
push ebx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esp + 0xc]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SetBkMode
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x407b20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x417298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
xor eax, eax
mov ecx, 0xa
mov dword [esp + 0x20], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax - 8]
lea edi, [esp + 8]
push 0x520
mov esi, dword [ecx]
push edi
push edx
push eax
call dword [esi + 0x70]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x28]
sub ecx, edx
mov dword [esp + 0x20], 0xffffffff
mov dword [esi], ecx
lea ecx, [esp + 0x30]
mov dword [esi + 4], eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x407cf0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4172e6
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], 0x418c70
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], 1
je 0x407d89
mov eax, dword [esi + 0x18]
test eax, eax
je 0x407d44
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
add eax, ecx
add eax, edx
test eax, eax
jg 0x407d44
mov edi, 1
jmp 0x407d60
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
push ecx
push edx
push eax
push 0x41ed7c
push 5
push esi
call fcn.00407dc0
add esp, 0x18
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x10], 0
test edi, edi
je 0x407d89
mov eax, dword [esi + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x407d89
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret