joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ff60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x24], 0x77002f
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x24]
mov eax, 0x5d0848
mov dword [ebp - 0x20], 0x5f0064
push edi
mov dword [ebp - 0x1c], 0x6f0070
mov edx, 0x10
mov dword [ebp - 0x18], 0x750070
sub esi, eax
mov dword [ebp - 0x14], 0x5f0070
mov dword [ebp - 0x10], str.s.gQ
mov dword [ebp - 0xc], 0x77006f
nop dword [eax + eax]
lea ecx, [edx + 0x7fffffee]
test ecx, ecx
je 0x46ffde
movzx ecx, word [esi + eax]
test cx, cx
je 0x46ffde
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x46ffc0
lea ecx, [eax - 2]
test edx, edx
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
mov word [ecx], ax
mov eax, 0x5d0848
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047268d
mov esp, ebp
pop ebp
ret

Function at 0x470000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20], 0x720067
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x20]
mov eax, 0x5d09e4
mov dword [ebp - 0x1c], 0x700061
mov dword [ebp - 0x18], 0x2e0068
mov edx, 0xe
mov dword [ebp - 0x14], 0x710071
sub esi, eax
mov dword [ebp - 0x10], 0x63002e
mov dword [ebp - 0xc], 0x6d006f
lea ecx, [edx + 0x7ffffff0]
test ecx, ecx
je 0x47006e
movzx ecx, word [esi + eax]
test cx, cx
je 0x47006e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x470050
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x5d09e4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047268d
mov esp, ebp
pop ebp
ret

Function at 0x470090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x5d0a28
mov dword [ebp - 0x34], 0x61004d
lea esi, [ebp - 0x34]
mov dword [ebp - 0x30], 0x6e0069
push edi
mov dword [ebp - 0x2c], 0x690057
mov edx, 0x19
mov dword [ebp - 0x28], 0x64006e
sub esi, eax
mov dword [ebp - 0x24], 0x77006f
mov dword [ebp - 0x20], 0x650057
mov dword [ebp - 0x1c], 0x570062
mov dword [ebp - 0x18], 0x6e0069
mov dword [ebp - 0x14], 0x6f0064
mov dword [ebp - 0x10], 0x2e0077
mov dword [ebp - 0xc], 0x6d0078
mov dword [ebp - 8], 0x6c
lea ecx, [edx + 0x7fffffe5]
test ecx, ecx
je 0x470124
movzx ecx, word [esi + eax]
test cx, cx
je 0x470124
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x470106
lea ecx, [eax - 2]
test edx, edx
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov eax, 0x5d0a28
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047268d
mov esp, ebp
pop ebp
ret
Function at 0x470520
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x38], 0x650057
push ebx
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x38]
mov eax, 0x5d0770
mov dword [ebp - 0x34], 0x440069
push edi
mov dword [ebp - 0x30], 0x610075
mov edx, 0x1a
mov dword [ebp - 0x2c], 0x44006e
sub esi, eax
mov dword [ebp - 0x28], str.OQeWzzg
mov dword [ebp - 0x24], 0x6f006c
mov dword [ebp - 0x20], 0x530067
mov dword [ebp - 0x1c], 0x620075
mov dword [ebp - 0x18], 0x6e0057
mov dword [ebp - 0x14], 0x450064
mov dword [ebp - 0x10], 0x690078
mov dword [ebp - 0xc], 0x740073
nop dword [eax]
lea ecx, [edx + 0x7fffffe4]
test ecx, ecx
je 0x4705be
movzx ecx, word [esi + eax]
test cx, cx
je 0x4705be
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4705a0
lea ecx, [eax - 2]
test edx, edx
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov eax, 0x5d0770
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047268d
mov esp, ebp
pop ebp
ret

Function at 0x4705f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x2c], 0x4f0053
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x2c]
mov eax, 0x5d0970
mov dword [ebp - 0x28], 0x540046
mov dword [ebp - 0x24], 0x410057
mov edx, 0x14
mov dword [ebp - 0x20], 0x450052
sub esi, eax
mov dword [ebp - 0x1c], 0x4d005c
mov dword [ebp - 0x18], 0x630069
mov dword [ebp - 0x14], 0x6f0072
mov dword [ebp - 0x10], 0x610047
mov dword [ebp - 0xc], 0x65006d
lea ecx, [edx + 0x7fffffea]
test ecx, ecx
je 0x470673
movzx ecx, word [esi + eax]
test cx, cx
je 0x470673
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x470655
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x5d0970
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047268d
mov esp, ebp
pop ebp
ret
Function at 0x4148c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041473c

Function at 0x418e62
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004189b5

Function at 0xc366cd
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c366cd
ret
Function at 0x4c38c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x77000]
push edi
jmp 0x4c38da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c38e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c38d0
mov eax, 1
add ebx, ebx
jne 0x4c38f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c3904
jne 0x4c3923
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c3923
dec eax
add ebx, ebx
jne 0x4c3910
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c38e8
add ebx, ebx
jne 0x4c391f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c3975
xor ecx, ecx
sub eax, 3
jb 0x4c393b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c39aa
sar eax, 1
mov ebp, eax
jmp 0x4c3946
add ebx, ebx
jne 0x4c3946
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c3914
inc ecx
add ebx, ebx
jne 0x4c3954
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c3914
add ebx, ebx
jne 0x4c3961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c3956
jne 0x4c3972
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c3956
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c3994
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c3986
jmp 0x4c38d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c3994
add edi, ecx
jmp 0x4c38d6
pop esi
mov edi, esi
mov ecx, 0x348a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c39b2
cmp byte [edi], 0x13
jne 0x4c39b2
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 al, bl
loop 0x4c39b7
lea edi, [esi + 0xbe000]
mov eax, dword [edi]
or eax, eax
je 0x4c3a2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc4470]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc45a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c39e4
mov ecx, edi
jns 0x4c3a13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc45a8]
or eax, eax
je 0x4c3a29
mov dword [ebx], eax
add ebx, 4
jmp 0x4c3a01
call dword [esi + 0xc45a4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4c3a60
cmp al, 0xef
ja 0x4c3a53
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4c3a35
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4c3a42
mov ebp, dword [esi + 0xc45ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4c3a94
sub esp, 0xffffff80
jmp 0x435d03
Function at 0x44b9b4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ea200]
jne 0x44b9be
repz ret
jmp fcn.0044dfe8

Function at 0x455678
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ea200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00450ef2
and dword [ebp - 0x14], 0
cmp dword [0x5ebf74], 0
mov dword [ebp - 0x18], eax
jne 0x45572b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4557d3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4557d3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5ebf74], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5ebf78], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ebf7c], eax
call edi
push eax
call esi
mov dword [0x5ebf84], eax
test eax, eax
je 0x45572b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ebf80], eax
mov eax, dword [0x5ebf80]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x455784
cmp dword [0x5ebf84], ecx
je 0x455784
push eax
call esi
push dword [0x5ebf84]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x455784
test ebx, ebx
je 0x455784
call edi
test eax, eax
je 0x45577b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45577b
test byte [ebp - 8], 1
jne 0x455784
or dword [ebp + 0x10], 0x200000
jmp 0x4557b7
mov eax, dword [0x5ebf78]
cmp eax, dword [ebp - 0x18]
je 0x4557b7
push eax
call esi
test eax, eax
je 0x4557b7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4557b7
mov eax, dword [0x5ebf7c]
cmp eax, dword [ebp - 0x18]
je 0x4557b7
push eax
call esi
test eax, eax
je 0x4557b7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ebf74]
call esi
test eax, eax
je 0x4557d3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4557d5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b9b4
leave
ret

Function at 0x421326
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x421326
lcall 0x5de5, 0x8b10c483
jmp loc.0096943c
Function at 0x403010
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push ebx
mov ebx, dword [0x4110e8]
push ebp
mov ebp, dword [0x4110ec]
push esi
mov esi, dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], 0
call fcn.00402fe0
mov eax, dword [0x4110f0]
mov edx, dword [0x4110f4]
add dword [esp + 0x24], 0x23f
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov edi, 0x20
mov dword [esp + 0x20], 2
add dword [esp + 0x20], 3
mov eax, dword [0x2b00b7c]
shl ecx, 4
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
cmp eax, 0xfa9
jne 0x403091
mov dword [0x2b00b78], 0xedeb2e40
jmp 0x4030af
cmp eax, 0x3eb
jne 0x4030af
push 0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x2afda80], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
shr eax, 5
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x14]
mov dword [0x2b00b74], 0xf4ea3dee
call fcn.00402ff0
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
xor dword [esp + 0x14], ecx
cmp dword [0x2b00b7c], 0x213
jne 0x40313b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTimerQueueTimer]
sub esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
mov eax, esi
mov dword [esp + 0x34], esi
call fcn.00402fd0
add dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
nop
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov edx, esi
shr edx, 5
add edx, ebp
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
xor ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x10], ecx
call fcn.00403000
lea eax, [esp + 0x24]
call fcn.00402fc0
sub edi, 1
mov ecx, dword [esp + 0x28]
jne 0x403061
mov eax, dword [esp + 0x40]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x2c
ret 4
Function at 0x409dee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410b90]
jne 0x409df8
repz ret
jmp fcn.0040c058

Function at 0x409f53
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.00405d9d
and dword [ebp - 4], 0
cmp dword [0x440720], 0
mov ebx, eax
jne 0x40a004
push 0x401b80
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a0b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b74
push edi
call esi
test eax, eax
je 0x40a0b5
push eax
call fcn.00405d2b
mov dword [esp], 0x401b64
push edi
mov dword [0x440720], eax
call esi
push eax
call fcn.00405d2b
mov dword [esp], 0x401b50
push edi
mov dword [0x440724], eax
call esi
push eax
call fcn.00405d2b
mov dword [esp], 0x401b34
push edi
mov dword [0x440728], eax
call esi
push eax
call fcn.00405d2b
pop ecx
mov dword [0x440730], eax
test eax, eax
je 0x40a004
push 0x401b1c
push edi
call esi
push eax
call fcn.00405d2b
pop ecx
mov dword [0x44072c], eax
mov eax, dword [0x44072c]
cmp eax, ebx
je 0x40a05c
cmp dword [0x440730], ebx
je 0x40a05c
push eax
call fcn.00405da6
push dword [0x440730]
mov esi, eax
call fcn.00405da6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a05c
test edi, edi
je 0x40a05c
call esi
test eax, eax
je 0x40a053
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a053
test byte [ebp - 0xc], 1
jne 0x40a05c
or dword [ebp + 0x10], 0x200000
jmp 0x40a095
mov eax, dword [0x440724]
cmp eax, ebx
je 0x40a095
push eax
call fcn.00405da6
pop ecx
test eax, eax
je 0x40a095
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a095
mov eax, dword [0x440728]
cmp eax, ebx
je 0x40a095
push eax
call fcn.00405da6
pop ecx
test eax, eax
je 0x40a095
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x440720]
call fcn.00405da6
pop ecx
test eax, eax
je 0x40a0b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a0b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409549
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40956a
jl 0x409561
test edi, edi
jne 0x40956a
xor eax, eax
xor edx, edx
jmp 0x40962b
cmp dword [ebx + 0x38], 0
je 0x40957f
push eax
push edi
push dword [ebp + 8]
call fcn.00409631
jmp 0x40962b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4095c6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4095c6
cmp eax, edi
jb 0x4095a0
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ab10
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4095cc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x409620
mov ecx, ebx
call fcn.00408df6
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40960b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040fbe5
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x409620
jmp 0x4095de
test edx, edx
je 0x409620
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040fbe5
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x409720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x409742
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409805
jmp 0x409800
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x409768
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40976d
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x4097cd
jg 0x409782
test esi, esi
je 0x4097cd
test ecx, ecx
jl 0x4097c8
jg 0x40978c
test eax, eax
je 0x4097c8
cmp edi, ecx
jg 0x40979e
jl 0x409796
cmp esi, eax
jae 0x40979e
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.0040ab10
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4097d0
mov ecx, dword [ebp + 8]
jmp 0x4097da
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4097f4
jg 0x4097da
test esi, esi
je 0x4097f4
cmp dword [ebx + 0x4c], 0
je 0x4097f4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00410251
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a782
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a7c1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a7c1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a7c1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a7c1
cmp dword [ecx + 0x74], 0xe
jbe 0x40a7c1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x416ad3
Capabilities:
Read file on windows

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

Function at 0x420800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42082d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42082d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433d00
Capabilities:
Copy file
Get thread local storage value
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
cmp dword [0x4d6784], 0x516
jne 0x433d25
push 0
lea eax, [ebp - 0x9b0]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameW
push ebx
mov ebx, dword [ebp + 0xc]
push esi
shr ebx, 3
xor esi, esi
test ebx, ebx
je 0x433d74
push edi
mov edi, dword [ebp + 8]
cmp dword [0x4d6784], 0x29
jne 0x433d58
push 0
push 0
push 0
push 0
push 0x401380
push 0x4013b0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
cmp dword [0x4d6784], 0x1c
je 0x433d7c
mov ecx, dword [ebp + 0x10]
push ecx
push edi
call fcn.00433ba0
inc esi
add edi, 8
cmp esi, ebx
jb 0x433d37
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push 0x4013f8
push 0
lea edx, [ebp - 0x9b0]
push edx
push 0x401468
push 0x401524
push 0x401558
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push 0
push 0
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
lea ecx, [ebp - 0x1b0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x433e00
Capabilities:
Copy file
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x998
cmp dword [0x4d6784], 0x37
jne 0x433f60
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0x4015b4
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0
call dword [sym.imp.KERNEL32.dll_LocalLock]
push 0
push 0x4015c4
push 0
push 0x401600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x20]
mov word [ebp - 0x10], dx
push ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov word [ebp - 2], ax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
push edx
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0
push 0
push 0
lea ecx, [ebp - 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push 0
push 0
push 0
push 0x401650
push 0x40169c
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
push 0
lea edx, [ebp - 0x998]
push edx
push 0x4016b0
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0x4016f4
push 0x401730
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0x40178c
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov ecx, dword [0x4d6788]
mov eax, dword [ebp + 8]
mov dl, byte [ecx + eax + 0x12336]
mov ecx, dword [0x4d2d84]
mov byte [ecx + eax], dl
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x4d6788]
mov eax, dword [ebp + 8]
mov cl, byte [edx + eax + 0x12336]
mov edx, dword [0x4d2d84]
mov byte [edx + eax], cl
mov esp, ebp
pop ebp
ret 4