joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f2a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442f20
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x452598]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
push 2
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x254]
push eax
push esi
mov dword [ebp - 0x254], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41f3dd
lea eax, [ebp - 0x254]
push eax
push esi
mov dword [ebp - 0x254], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x41f3d6
mov edi, edi
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x230], ax
je 0x41f355
lea eax, [ebp - 0x230]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f346
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.00414d90
cmp dword [ebp + 0x1c], 8
push dword [ebp + 0x18]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 0
mov byte [ebp - 4], 1
call fcn.00423020
test eax, eax
je 0x41f3bf
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x41f39e
push dword [ebp - 0x28]
call fcn.004281da
add esp, 4
lea eax, [ebp - 0x254]
push eax
push esi
mov dword [ebp - 0x254], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41f320
jmp 0x41f3d6
cmp dword [ebp - 0x14], 8
mov edi, dword [ebp - 0x24c]
jb 0x41f3d6
push dword [ebp - 0x28]
call fcn.004281da
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 8
jb 0x41f3ee
push dword [ebp + 8]
call fcn.004281da
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428be6
mov esp, ebp
pop ebp
ret
Function at 0x41ff40
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44342e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x172c
call fcn.00429040
mov eax, dword [0x452598]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0
push 0x44c645
lea ecx, [ebp - 0x65c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x648], 0xf
mov dword [ebp - 0x64c], 0
mov byte [ebp - 0x65c], 0
call fcn.00404770
push 4
push str.c0
lea ecx, [ebp - 0x6d4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x6c0], 0xf
mov dword [ebp - 0x6c4], 0
mov byte [ebp - 0x6d4], 0
call fcn.00404770
push 3
push 0x445d00
lea ecx, [ebp - 0x6a4]
mov byte [ebp - 4], 3
mov dword [ebp - 0x690], 0xf
mov dword [ebp - 0x694], 0
mov byte [ebp - 0x6a4], 0
call fcn.00404770
push 0x37
push str._otptjejhjemghgstehqiqrirtrhhtrnm_52424c4_nuyiv2qmr2nw
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x678], 0xf
mov dword [ebp - 0x67c], 0
mov byte [ebp - 0x68c], 0
call fcn.00404770
lea eax, [ebp - 0x68c]
push eax
push 4
mov byte [ebp - 4], 5
call fcn.0041e360
add esp, 8
lea ecx, [ebp - 0x674]
push 0
push 0x44c645
mov byte [ebp - 0x1729], 0
mov dword [ebp - 0x660], 0xf
mov dword [ebp - 0x664], 0
mov byte [ebp - 0x674], 0
call fcn.00404770
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
lea eax, [ebp - 0x7f4]
push eax
mov byte [ebp - 4], 6
call fcn.004228f0
add esp, 8
cmp dword [ebp - 0x7e4], 0
mov byte [ebp - 4], 7
je 0x4200cf
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x7f4]
push eax
lea ecx, [ebp - 0x6a4]
mov byte [ebp - 0x1729], 1
call fcn.0040b240
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x62c], ax
lea eax, [ebp - 0x62a]
push eax
call fcn.004296c0
add esp, 0xc
lea eax, [ebp - 0x62c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0xcd4]
call fcn.00423f40
lea ecx, [ebp - 0x14cc]
mov byte [ebp - 4], 8
call fcn.00423f70
lea ecx, [ebp - 0x119c]
mov byte [ebp - 4], 9
call fcn.00423f70
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x119c]
mov byte [ebp - 4], 0xa
call fcn.00423fd0
lea ecx, [ebp - 0xcd4]
call fcn.00423ff0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x44f32c
lea eax, [ebp - 0x173c]
push eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x173c], 1
call fcn.00428bf5
lea eax, [ebp - 0x14cc]
push eax
push 0
lea ecx, [ebp - 0x119c]
call fcn.00423ff0
push eax
call fcn.0041ea30
add esp, 0xc
test eax, eax
jne 0x4201b0
mov eax, 0x4201a4
ret
mov eax, 0x4201b6
ret
Function at 0x422ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443548
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x452598]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x422c05
cmp byte [ebx + 0x45], 0
je 0x422c05
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x422b34
xor al, al
jmp 0x422c07
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x422b9e
dec eax
je 0x422ba2
sub eax, 2
je 0x422bee
xor bl, bl
jmp 0x422bf0
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x422bd4
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0042b07d
add esp, 0x10
cmp esi, eax
jne 0x422b9a
cmp byte [ebx + 0x45], 0
je 0x422bee
test esi, esi
jne 0x422b64
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00409970
jmp 0x422b64
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x422c01
push dword [ebp - 0x28]
call fcn.004281da
add esp, 4
mov al, bl
jmp 0x422c07
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428be6
mov esp, ebp
pop ebp
ret
Function at 0x423280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4435d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x452598]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x4232bc
xor eax, eax
jmp 0x42344c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x4232ea
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x4232ea
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x42344c
cmp dword [ebx + 0x50], 0
jne 0x4232f8
or eax, 0xffffffff
jmp 0x42344c
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [edx], eax
jne 0x423319
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
sub ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x40], 0
jne 0x42333e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.0042acb9
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x42344c
mov byte [ebp - 0x2c], cl
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov esi, dword [ebx + 0x40]
lea eax, [ebp - 0x30]
mov edi, dword [esi]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x48]
push eax
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x423436
cmp eax, 1
jg 0x423416
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
cmp edi, 0x10
lea eax, [ebp - 0x28]
cmovae eax, ecx
sub esi, eax
je 0x4233e7
push dword [ebx + 0x50]
lea eax, [ebp - 0x28]
push esi
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0042b07d
add esp, 0x10
cmp esi, eax
jne 0x423436
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x423411
test esi, esi
jne 0x423371
cmp dword [ebp - 0x18], 0x20
jae 0x423436
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00409970
jmp 0x423371
mov ebx, dword [ebp + 8]
jmp 0x423439
cmp eax, 3
jne 0x423436
push dword [ebx + 0x50]
push dword [ebp - 0x2c]
call fcn.0041d3e0
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x423439
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x42344a
push dword [ebp - 0x28]
call fcn.004281da
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428be6
mov esp, ebp
pop ebp
ret 4
Function at 0x43a224
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x452598]
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.0042d84b
mov dword [ebp - 0x14], eax
cmp dword [0x4558d0], edi
jne 0x43a315
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x43a2a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43a3f5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x43a3f5
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43a3f5
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4558d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4558d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4558d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4558e0], eax
test eax, eax
je 0x43a312
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4558dc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43a33a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43a32d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x43a34f
push 4
pop eax
jmp 0x43a3f7
cmp dword [ebp - 0x14], edi
je 0x43a34f
push dword [0x4558d0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43a334
mov eax, dword [0x4558dc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x43a3ad
cmp dword [0x4558e0], esi
je 0x43a3ad
push eax
call ebx
push dword [0x4558e0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43a3ad
test eax, eax
je 0x43a3ad
call ecx
test eax, eax
je 0x43a3a2
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 0x43a3a2
test byte [ebp - 8], 1
jne 0x43a3ad
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x43a3dd
mov eax, dword [0x4558d4]
cmp eax, esi
je 0x43a3da
push eax
call ebx
test eax, eax
je 0x43a3da
call eax
mov edi, eax
test edi, edi
je 0x43a3da
mov eax, dword [0x4558d8]
cmp eax, esi
je 0x43a3da
push eax
call ebx
test eax, eax
je 0x43a3da
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4558d0]
call ebx
test eax, eax
je 0x43a3f5
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x43a3f7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428be6
leave
ret
Function at 0x43d9d6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00431eee
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x43da0e
xor eax, eax
jmp 0x43da3a
cmp esi, dword [ebp - 4]
je 0x43da37
cmp dword [ebp + 0xc], 0
je 0x43da37
push dword [edi + 0x9c]
call fcn.0043d5e4
push dword [edi + 0x9c]
mov esi, eax
call fcn.0042df40
pop ecx
pop ecx
cmp esi, eax
je 0x43da0a
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4050f9
Capabilities:
Delete file

Disassembly:
push 0x5c
mov eax, 0x433b8f
call fcn.00428f19
mov esi, ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [ebp - 4], 0
lea eax, [esi + 0xc8]
cmp dword [eax + 0x18], 8
jb 0x405128
mov eax, dword [eax + 4]
jmp 0x40512b
add eax, 4
cmp dword [esi + 0x6c], 8
jb 0x405136
mov ebx, dword [esi + 0x58]
jmp 0x405139
lea ebx, [esi + 0x58]
cmp dword [esi + 0x50], 8
jb 0x405144
mov edi, dword [esi + 0x3c]
jmp 0x405147
lea edi, [esi + 0x3c]
push eax
lea esi, [ebp - 0x30]
call fcn.0041571f
pop ecx
lea eax, [ebp - 0x68]
push eax
call fcn.00406bb5
push 0xa4
mov byte [ebp - 4], 1
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
mov edi, str.StartupPatch
test eax, eax
je 0x405184
push 0
push edi
push eax
call fcn.0040669a
jmp 0x405186
xor eax, eax
mov ebx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov dword [ebx + 0x184], eax
mov eax, dword [ebp - 0x2c]
jae 0x40519f
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x68]
call fcn.00406c69
test al, al
je 0x4051f4
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4051c0
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4051f4
cmp dword [eax + 0x48], 0x10
jb 0x4051d2
mov eax, dword [eax + 0x34]
jmp 0x4051d5
add eax, 0x34
mov esi, eax
push 0xd
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4051f4
mov esi, dword [ebx + 0x184]
call fcn.004031b0
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x184], eax
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x405200
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.00406c12
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
call fcn.00428f9c
ret
Function at 0x405692
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
lea edi, [esi + 0x1b8]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x40575c
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x405714
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x4056de
mov eax, dword [esi + 0x100]
push 0x67
push 0x14
lea edx, [ebp - 0x18]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
push dword [esi + 0xa8]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x405714
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405714
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esi + 0x28], 8
jb 0x40571f
mov ecx, dword [esi + 0x14]
jmp 0x405722
lea ecx, [esi + 0x14]
lea eax, [esi + 0xac]
cmp dword [eax + 0x18], 8
jb 0x405733
mov eax, dword [eax + 4]
jmp 0x405736
add eax, 4
push dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [esi + 0x1a0]
push eax
lea eax, [esi + 0x188]
push eax
push edi
push dword [ebp + 0xc]
push esi
call fcn.004057e1
pop edi
pop ebx
leave
ret 0x14
Function at 0x406439
Capabilities:
Copy file

Disassembly:
push 0x74
mov eax, 0x431ea7
call fcn.00428f19
lea eax, [ebp - 0x80]
push eax
mov ebx, ecx
call fcn.004173a0
and dword [ebp - 4], 0
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call esi
mov ecx, dword [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 8
jae 0x40649a
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4064a6
lea eax, [ebp - 0x28]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [ebp - 0x48]
setne bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
call fcn.00428f9c
ret

Function at 0x406ac5
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x4333fb
call fcn.00428f19
mov eax, dword [ebp + 8]
push 0x438ff4
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x406aec
xor al, al
jmp 0x406b35
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.0040383d
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x406b0f
lea eax, [ebp - 0x28]
push esi
push dword [ebp - 0x18]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
or dword [ebp - 4], 0xffffffff
add esp, 0x14
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
call fcn.00428f9c
ret 4
Function at 0x406c69
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4004]
mov eax, 0x4004
call fcn.00428fd0
push 0xffffffffffffffff
push 0x433557
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x4000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x400c]
mov edi, ecx
push 0x438ffc
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov byte [ebp - 0xd], 1
call dword [sym.imp.MSVCR90.dll__wfopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x406cd3
xor al, al
jmp 0x406d78
add edi, 4
call fcn.00406d9d
mov esi, dword [sym.imp.MSVCR90.dll_feof]
push ebx
call esi
pop ecx
test eax, eax
jne 0x406d21
cmp byte [ebp - 0xd], 0
je 0x406d6d
push ebx
push 0x4000
lea eax, [ebp]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
push 0
lea ecx, [ebp]
push ecx
push edi
call fcn.00406ddd
push ebx
mov byte [ebp - 0xd], al
call esi
pop ecx
test eax, eax
je 0x406ce9
cmp byte [ebp - 0xd], 0
je 0x406d6d
mov edi, dword [ebp - 0x14]
xor esi, esi
cmp dword [edi + 0x20], esi
je 0x406d6d
push 0x48
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x406d45
push eax
call fcn.00403596
mov esi, eax
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x10]
call dword [0x43436c]
mov edi, dword [edi + 0x20]
mov eax, esi
mov ecx, edi
call fcn.00407726
push edi
call fcn.004072ad
pop ecx
call fcn.004031b0
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
mov al, byte [ebp - 0xd]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4000]
xor ecx, ebp
call fcn.0042898c
add ebp, 0x4004
leave
ret 4
Function at 0x40ac2b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x445bbc]
xor eax, esp
mov dword [esp + 0x19c], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
mov dword [esp + 0xc], eax
cmp byte [esi + 0x24], bl
jne 0x40acc1
lea edi, [esi + 0x28]
mov ecx, edi
call fcn.00415238
push str.DownloadRecord.xml
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [edi + 0x18], 8
jb 0x40ac77
mov edi, dword [edi + 4]
jmp 0x40ac7a
add edi, 4
push edi
push esi
call fcn.0040b4fb
cmp dword [esp + 0xc], ebx
je 0x40ac94
push dword [esp + 0xc]
lea ecx, [esi + 0x44]
call dword [0x43436c]
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov byte [esi + 0x24], 1
mov ecx, dword [esp + 0x1a4]
pop edi
pop ebx
xor ecx, esp
call fcn.0042898c
mov esp, ebp
pop ebp
ret 4