joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419c3c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4287f8
call fcn.00417800
push 8
call fcn.004181f4
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42ece8], esi
jne 0x419c70
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42ece4], esi
mov al, byte [ebp + 0x10]
mov byte [0x42ece0], al
cmp dword [ebp + 0xc], edi
jne 0x419cba
cmp dword [0x430428], edi
je 0x419caa
mov eax, dword [0x430424]
sub eax, 4
mov dword [0x430424], eax
cmp eax, dword [0x430428]
jb 0x419caa
mov eax, dword [eax]
cmp eax, edi
je 0x419c8b
call eax
jmp 0x419c8b
push 0x42c040
mov eax, 0x42c038
call fcn.00419bba
pop ecx
push 0x42c04c
mov eax, 0x42c044
call fcn.00419bba
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x419ceb
cmp dword [ebp + 0x10], edi
jne 0x419cf9
mov dword [0x42ece8], esi
push dword [ebp + 8]
call fcn.00419b78
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x419cf8
push 8
call fcn.0041813f
pop ecx
ret
call fcn.0041783b
ret

Function at 0x41bc5f
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x428a70
call fcn.00417800
mov eax, dword [0x42c17c]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x41bd03
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.004167d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x41bcf0
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41bd03
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x41bd1e
cmp byte [edi + 1], 0x3a
jne 0x41bd1e
movzx eax, byte [edi]
push eax
call fcn.0041f2f2
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x41bd2e
push edi
call fcn.00415ced
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.0041575b
call fcn.0041783b
ret
Function at 0x41bd44
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42c17c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x42c640]
je 0x41bd79
inc eax
cmp eax, 0x13
jb 0x41bd6a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42c640]
jne 0x41be9f
mov eax, dword [0x42eae0]
cmp eax, 1
je 0x41be77
cmp eax, edx
jne 0x41bda9
cmp dword [0x42c1c4], 1
je 0x41be77
cmp ecx, 0xfc
je 0x41be9f
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41bddf
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004199f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00417870
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41be13
mov eax, edi
push eax
call fcn.00417870
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x428544
push edi
call fcn.004168a0
add esp, 0x10
push edi
call fcn.00417870
push dword [esi + 0x42c644]
mov ebx, eax
call fcn.00417870
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004167d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004199f0
push edi
push ebx
call fcn.00419a00
push 0x428540
push ebx
call fcn.00419a00
push dword [esi + 0x42c644]
push ebx
call fcn.00419a00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041c7f6
add esp, 0x2c
jmp 0x41be9f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42c644]
push dword [esi]
call fcn.00417870
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041575b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41c367
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x42ef0c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x41c3b0
call ebp
mov esi, eax
cmp esi, ebx
je 0x41c396
mov dword [0x42ef0c], 1
jmp 0x41c3b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41c3ab
push 2
pop eax
mov dword [0x42ef0c], eax
jmp 0x41c3b0
mov eax, dword [0x42ef0c]
cmp eax, 1
jne 0x41c40d
cmp esi, ebx
jne 0x41c3c8
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41c3c8
xor eax, eax
jmp 0x41c4b4
cmp word [esi], bx
mov eax, esi
je 0x41c3dd
inc eax
inc eax
cmp word [eax], bx
jne 0x41c3cf
inc eax
inc eax
cmp word [eax], bx
jne 0x41c3cf
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0041756e
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x41c400
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x41c4b4
push ebp
push esi
push edi
call fcn.00417900
add esp, 0xc
jmp 0x41c3f2
cmp eax, 2
je 0x41c416
cmp eax, ebx
jne 0x41c3c1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x41c3c1
cmp byte [ebp], bl
mov esi, ebp
je 0x41c44c
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x41c3c1
push esi
add edi, eax
call fcn.00417870
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x41c429
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0041756e
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x41c4c5
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x41c4a6
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x41c4bb
push edi
call fcn.00417870
push esi
lea edi, [edi + eax + 1]
call fcn.0041630e
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x41c46c
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00415ced
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x41c3c1
Function at 0x41c4d1
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x42ef10]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x41c511
call esi
test eax, eax
je 0x41c4f6
mov dword [0x42ef10], 1
jmp 0x41c516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41c50d
mov dword [0x42ef10], 2
jmp 0x41c51f
xor eax, eax
jmp 0x41c56d
cmp eax, 1
jne 0x41c51a
call esi
jmp 0x41c56d
cmp eax, 2
jne 0x41c50d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x41c565
lea eax, [esi + esi]
push eax
call fcn.0041756e
mov ebp, eax
test ebp, ebp
pop ecx
je 0x41c565
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x41c569
push ebp
call fcn.00415ced
pop ecx
xor eax, eax
jmp 0x41c56b
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x41c7f6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42ef14], ebx
push esi
push edi
jne 0x41c876
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c8b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x42ef14], eax
je 0x41c8b1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42ef18], eax
call esi
cmp dword [0x42eca8], 2
mov dword [0x42ef1c], eax
jne 0x41c876
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42ef24], eax
je 0x41c876
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42ef20], eax
mov eax, dword [0x42ef20]
test eax, eax
je 0x41c8bb
call eax
test eax, eax
je 0x41c8a2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42ef24]
test eax, eax
je 0x41c8a2
test byte [ebp - 8], 1
jne 0x41c8bb
cmp dword [0x42ecb4], 4
jb 0x41c8b5
or byte [ebp + 0x12], 0x20
jmp 0x41c8da
xor eax, eax
jmp 0x41c8ea
or byte [ebp + 0x12], 4
jmp 0x41c8da
mov eax, dword [0x42ef18]
test eax, eax
je 0x41c8da
call eax
mov ebx, eax
test ebx, ebx
je 0x41c8da
mov eax, dword [0x42ef1c]
test eax, eax
je 0x41c8da
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42ef14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d8ed
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x42c17c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41d91e
xor eax, eax
jmp 0x41daa7
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x430320]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41d95a
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004203cd
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41da35
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41da73
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41d9be
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41d9af
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41d98f
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d9fe
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41da07
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41d980
jmp 0x41da09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41daa2
cmp dword [ebp - 0x6c], edi
je 0x41da73
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41da68
call fcn.0041ba1e
mov dword [eax], 9
call fcn.0041ba27
mov dword [eax], esi
jmp 0x41da9d
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41da5d
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41da09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41da09
push dword [ebp - 0x6c]
call fcn.0041ba30
pop ecx
jmp 0x41da9d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41da8b
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41da8b
xor eax, eax
jmp 0x41daa5
call fcn.0041ba1e
mov dword [eax], 0x1c
call fcn.0041ba27
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41daa5
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041575b
add ebp, 0x3a0
leave
ret
Function at 0x41f0f1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42c17c]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x41f170
push esi
call fcn.00420ae7
test eax, eax
pop ecx
jne 0x41f138
call fcn.0041ba27
mov dword [eax], 0xf
call fcn.0041ba1e
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041575b
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x41f183
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41f12b
inc eax
cmp eax, esi
ja 0x41f12b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41f1ba
cmp eax, dword [ebp + 0x10]
jg 0x41f19b
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0041756e
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41f1cf
call fcn.0041ba1e
mov dword [eax], 0xc
jmp 0x41f12b
cmp eax, dword [ebp + 0x10]
jle 0x41f1cf
call fcn.0041ba1e
mov dword [eax], 0x22
jmp 0x41f12b
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.004172f0
pop ecx
pop ecx
jmp 0x41f12d

Function at 0x41f314
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004167d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41f3af
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42eca8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41f3af
cmp eax, 1
je 0x41f3d0
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41f3af
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41f37c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41f3ab
xor eax, eax
inc eax
jmp 0x41f3ef
cmp edi, eax
jae 0x41f3b3
xor eax, eax
jmp 0x41f3ef
cmp eax, esi
jae 0x41f3ba
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42eca8]
jmp 0x41f3d3
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420ae7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x420b15
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x420b1a
cmp eax, 1
je 0x420b1a
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x421606
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x42161f
or eax, 0xffffffff
jmp 0x421680
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x42167c
push 0x3d
push esi
call fcn.00421806
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x42167c
cmp esi, eax
je 0x42167c
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x42ecc8]
sete cl
cmp eax, dword [0x42eccc]
mov dword [ebp - 8], ecx
jne 0x421662
mov edi, eax
call fcn.004215a5
mov dword [0x42ecc8], eax
cmp eax, ebx
jne 0x4216bb
cmp dword [ebp + 0xc], ebx
je 0x421684
cmp dword [0x42ecd0], ebx
je 0x421684
call fcn.00420fdf
test eax, eax
je 0x4216bb
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x42168d
xor eax, eax
jmp 0x42167f
push 4
call fcn.0041756e
cmp eax, ebx
pop ecx
mov dword [0x42ecc8], eax
je 0x42167c
mov dword [eax], ebx
cmp dword [0x42ecd0], ebx
jne 0x4216bb
push 4
call fcn.0041756e
cmp eax, ebx
pop ecx
mov dword [0x42ecd0], eax
je 0x42167c
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x42ecc8]
call fcn.00421558
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x42171c
cmp dword [esi], ebx
je 0x42171c
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00415ced
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4216ff
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x42175d
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4216f6
mov eax, edi
shl eax, 2
push eax
push dword [0x42ecc8]
call fcn.0041731a
cmp eax, ebx
pop ecx
pop ecx
je 0x42175d
jmp 0x421758
cmp dword [ebp - 8], ebx
jne 0x4217c8
cmp edi, ebx
jge 0x42172b
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x42ecc8]
call fcn.0041731a
cmp eax, ebx
pop ecx
pop ecx
je 0x42167c
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x42ecc8], eax
cmp dword [ebp + 0xc], ebx
je 0x4217b2
push dword [ebp - 4]
call fcn.00417870
inc eax
inc eax
push eax
call fcn.0041756e
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4217b2
push dword [ebp - 4]
push esi
call fcn.004199f0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4217ab
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00415ced
pop ecx
cmp dword [ebp - 8], ebx
je 0x4217c0
push dword [ebp - 4]
call fcn.00415ced
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x42167f
push dword [ebp - 4]
call fcn.00415ced
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x421689
Function at 0x404a80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, eax
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x42]
push ecx
mov word [ebp - 0x44], ax
call fcn.00409ae0
push 3
lea edx, [ebp - 0x44]
push str.IrsDate__d
push edx
mov edx, 0x20
call fcn.00406dd0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.crt.dll_Ordinal_64]
add esp, 0x1c
test al, al
je 0x404ac8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00404680
mov bl, al
test bl, bl
je 0x404b07
cmp dword [esi + 4], 0
je 0x404b07
lea ecx, [ebp - 4]
push ecx
push 0
push esi
push 0x404b10
push 0
push 0
mov dword [esi + 8], 3
mov dword [ebp - 4], 0
call fcn.0040902e
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x415352
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp dword [ebp + 8], 0
push esi
push edi
mov edi, ecx
je 0x404e2f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404e2f
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
push 0x418e94
push 0x17
push 0
push 0x418e84
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x404e19
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404e19
mov ecx, dword [eax]
mov edx, dword [ecx + 0xfc]
push 0
push eax
call edx
lea esi, [ebp - 0x2c]
call fcn.00401520
mov byte [ebp - 4], 3
mov edi, dword [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [edx]
lea ecx, [ebp - 0x14]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0xe8]
push edx
call ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
or ecx, 0xffffffff
cmp word [ebp - 0x14], cx
je 0x404dec
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00405510
jmp 0x404e2f
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [edx], eax
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00405510
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404e2f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405470
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x43b1ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
mov ebp, ecx
push 1
push 0
mov dword [esp + 0x10], ebp
call fcn.00421f20
lea ecx, [ebp + 0x1c4]
mov dword [esp + 0x24], 0
call fcn.0041b840
lea ecx, [ebp + 0x4e4]
mov byte [esp + 0x24], 1
call fcn.00421c40
lea ecx, [ebp + 0x4fc]
mov byte [esp + 0x24], 2
call fcn.00421c40
lea ecx, [ebp + 0x514]
mov byte [esp + 0x24], 3
call fcn.00421c40
lea ecx, [ebp + 0x52c]
mov byte [esp + 0x24], 4
call fcn.00421c40
lea ecx, [ebp + 0x544]
mov byte [esp + 0x24], 5
call fcn.00421c40
lea ecx, [ebp + 0x55c]
mov byte [esp + 0x24], 6
call fcn.00421c40
lea ecx, [ebp + 0x574]
mov byte [esp + 0x24], 7
call fcn.00421c40
lea ecx, [ebp + 0x3d40]
mov byte [esp + 0x24], 8
call fcn.0041af70
lea ecx, [ebp + 0x3e44]
call fcn.0041c9c0
push 0x40
lea ecx, [ebp + 0x42dc]
mov byte [esp + 0x28], 9
call fcn.00401370
push 0x40
lea ecx, [ebp + 0x4318]
mov byte [esp + 0x28], 0xa
call fcn.00401370
push 0x40
lea ecx, [ebp + 0x4354]
mov byte [esp + 0x28], 0xb
call fcn.00401370
push 0x40
lea ecx, [ebp + 0x4390]
mov byte [esp + 0x28], 0xc
call fcn.00401370
push 0x40
lea ecx, [ebp + 0x43cc]
mov byte [esp + 0x28], 0xd
call fcn.00401370
mov eax, dword [esp + 0x2c]
mov ecx, ebp
push eax
mov byte [esp + 0x28], 0xe
mov dword [ebp], 0x43c480
call fcn.004057f0
mov eax, dword [esp + 0x30]
mov byte [ebp + 0x16c], 1
mov dword [ebp + 0x168], eax
mov dword [esp + 4], 0x10
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_getpeername]
cmp eax, 0xffffffff
je 0x405633
mov eax, dword [esp + 0x13]
mov ecx, dword [esp + 0x12]
mov edx, dword [esp + 0x11]
and eax, 0xff
push eax
mov eax, dword [esp + 0x14]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
push eax
lea ecx, [ebp + 0x58]
push str._d._d._d._d
push ecx
call fcn.00430f4e
mov edx, dword [esp + 0x26]
add esp, 0x18
and edx, 0xffff
mov eax, ebp
mov dword [ebp + 0x54], edx
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push esi
push edi
mov edi, 0x441114
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
pop edi
mov dword [ebp + 0x54], 0
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 8