joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100711e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10071205
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x10071232
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10071238
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, ecx
cdq
mov dword [esp + 0x2c], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x100712a0
jg 0x1007124f
test esi, esi
je 0x100712a0
test ecx, ecx
jl 0x1007129a
jg 0x10071259
test eax, eax
je 0x1007129a
cmp edi, ecx
jg 0x1007126d
jl 0x10071263
cmp esi, eax
jae 0x1007126d
mov eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x28]
push eax
push ebp
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
add ebp, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x100712a4
mov ebp, dword [esp + 0x28]
jmp 0x100712ae
mov ebp, dword [esp + 0x28]
test edi, edi
jl 0x100712c8
jg 0x100712ae
test esi, esi
je 0x100712c8
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100712c8
push eax
push esi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x10072860
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x1007780d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10092c4c]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
call fcn.10063990
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1005d0a0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
or esi, 0xffffffff
call fcn.1005d2d0
push eax
call fcn.10063880
add esp, 4
test al, al
je 0x100729b7
push 0x1007fc38
lea ecx, [ebp - 0x28]
call fcn.1005d2d0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100729b7
push ebx
push 0x200
lea eax, [ebp]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, eax
add esp, 0x10
test edx, edx
je 0x10072948
nop dword [eax]
xor ecx, ecx
movzx eax, byte [ebp + ecx]
inc ecx
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x1008ac88]
mov edi, esi
cmp ecx, edx
jb 0x10072912
push ebx
push 0x200
lea eax, [ebp]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10072910
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1005c790
not esi
push esi
push 0x1008b088
call fcn.1005ca10
add esp, 8
cmp esi, 0x931b4825
ja 0x1007299d
je 0x1007298b
cmp esi, 0x2f388d11
je 0x1007298b
cmp esi, 0x8c4b7b3a
jne 0x100729d5
push dword [ebp + 0x20c]
call fcn.10073020
add esp, 4
mov al, 1
jmp 0x100729d7
cmp esi, 0xae196a1e
jne 0x100729d5
push dword [ebp + 0x20c]
call fcn.10072a00
add esp, 4
mov al, 1
jmp 0x100729d7
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.1005c790
push 0
push 0x1008b088
call fcn.1005ca10
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.10074697
lea esp, [ebp + 0x204]
pop ebp
ret

Function at 0x100740b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
sub eax, 0
je 0x10074127
sub eax, 1
jne 0x10074148
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp byte [0x10098bfc], 0
jne 0x10074148
call fcn.10060720
call fcn.10061e20
push dword [0x10093740]
push str.imagebase__0x_p
call fcn.1005ca10
mov ecx, dword [0x10098bf8]
add esp, 8
test ecx, ecx
je 0x1007410a
call fcn.10064490
test al, al
mov eax, str.m2ext_initialised.
jne 0x1007410f
mov eax, str.m2ext_instance_failed_to_create.
push eax
call fcn.1005c850
add esp, 4
mov byte [0x10098bfc], 1
mov eax, 1
ret 0xc
push str.terminate_the_process.
call fcn.1005c850
add esp, 4
call fcn.1005c830
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
ret 0xc
Function at 0x416c80
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x4171a0
test edx, edx
je 0x4171a0
call fcn.00416c97
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x4171e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00416c80
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x417251
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x417216
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret

Function at 0x41b72f
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x667470
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x703034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebx + 4]
lea esi, [ebp + 0xc]
mov dword [ebx], eax
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x18]
push 0x6c28e0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebx + 0x10], 0
and dword [ebx + 0x14], 0
call fcn.00429293
push 0x6ccdaf
lea ecx, [ebx + 0x30]
call fcn.00429293
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41c763
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c7be
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c7af
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x41c7ab
cmp esi, ecx
jae 0x41c7af
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x41c799
cmp esi, ecx
jb 0x41c7b3
xor eax, eax
jmp 0x41c7bd
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4246e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42475a
cmp dword [ebp - 8], 1
je 0x424732
cmp dword [ebp - 8], 2
je 0x424732
push 0xd
pop eax
jmp 0x42475a
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x424754
test ecx, ecx
je 0x42474f
test cl, 1
jne 0x42472d
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x424754
jmp 0x42472d
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00620181
mov esp, ebp
pop ebp
ret 0xc
Function at 0x430274
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, edx
xor edx, edx
push edi
mov edi, ecx
push 0x34
lea ecx, [esi - 1]
mov dword [ebp - 0x10], ecx
mov eax, dword [edi + ecx*4]
mov dword [ebp - 4], eax
pop eax
div esi
lea ebx, [eax + 6]
xor eax, eax
cmp ecx, 1
jb 0x430366
jmp 0x43035e
sub eax, 0x61c88647
xor ecx, ecx
mov dword [ebp - 0x14], eax
dec ebx
shr eax, 2
and eax, 3
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x10], ecx
jbe 0x43031b
mov ebx, dword [ebp - 0xc]
mov edx, dword [edi + ecx*4 + 4]
mov esi, edx
shr eax, 5
mov ecx, edx
xor edx, dword [ebp - 0x14]
shl esi, 2
xor esi, eax
shr ecx, 3
mov eax, dword [ebp - 4]
shl eax, 4
xor ecx, eax
add esi, ecx
mov ecx, dword [ebp - 8]
mov eax, ecx
and eax, 3
xor eax, ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + eax*4]
xor eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
add eax, edx
xor esi, eax
add dword [edi + ecx*4], esi
mov eax, dword [edi + ecx*4]
inc ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 0x10]
jb 0x4302cc
mov ebx, dword [ebp - 0x18]
mov edx, dword [edi]
mov esi, edx
shr eax, 5
mov ecx, edx
xor edx, dword [ebp - 0x14]
shl esi, 2
xor esi, eax
shr ecx, 3
mov eax, dword [ebp - 4]
shl eax, 4
xor ecx, eax
mov eax, dword [ebp - 8]
and eax, 3
add esi, ecx
xor eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
xor eax, dword [ebp - 4]
add eax, edx
xor esi, eax
mov eax, dword [ebp - 0x10]
add dword [edi + eax*4], esi
mov eax, dword [edi + eax*4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
test ebx, ebx
jne 0x4302a7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430560
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
test edx, edx
jne 0x430574
xor eax, eax
jmp 0x430697
push ebx
mov eax, edx
xor edx, edx
push 3
pop ecx
div ecx
mov ecx, eax
mov ebx, edx
xor eax, eax
mov dword [ebp - 4], ecx
test ebx, ebx
mov dword [ebp - 8], ebx
setne al
add eax, ecx
xor ecx, ecx
shl eax, 2
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0063e2ce
mov edx, eax
mov dword [ebp - 0xc], edx
pop ecx
test edx, edx
je 0x430696
cmp dword [ebp - 4], 0
push esi
mov esi, edx
jbe 0x430621
mov ebx, dword [ebp - 4]
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
movzx edx, byte [edi + 2]
add edi, 3
shl eax, 8
shl ecx, 0x10
or ecx, eax
or edx, ecx
mov eax, edx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_e]
mov byte [esi], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_e]
mov byte [esi + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_e]
mov byte [esi + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_e]
mov byte [esi + 3], al
add esi, 4
sub ebx, 1
jne 0x4305c0
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp ebx, 1
jne 0x43064d
movzx ecx, byte [edi]
mov eax, ecx
and ecx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_e]
mov byte [esi], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_e]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
jmp 0x43068d
cmp ebx, 2
jne 0x430690
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0xa
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_e]
mov byte [esi], al
mov eax, ecx
shr eax, 4
and eax, 0x3f
and ecx, 0xf
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_e]
mov byte [esi + 1], al
mov al, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_e]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
mov eax, edx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x433e7f
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x433fe8
mov edx, 0x10000000
cmp eax, 0x7c
je 0x433fe8
cmp eax, 0x29
jne 0x433eb8
cmp dword [esi + 0x10], 0
jne 0x433fe8
test dword [esi + 0x50], edx
je 0x433fee
cmp eax, 0x2e
jne 0x433ed3
push 5
lea ecx, [esi + 0x24]
call fcn.004340e2
mov ecx, esi
call fcn.00433e5a
jmp 0x433fd2
cmp eax, 0x5c
jne 0x433f30
mov ecx, esi
call fcn.00433e5a
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x433f06
cmp word [esi + 0x48], 0x62
jne 0x433f06
push 4
lea ecx, [esi + 0x24]
call fcn.004340e2
mov ecx, esi
call fcn.00433e5a
jmp 0x433fd9
test eax, eax
je 0x433f24
cmp word [esi + 0x48], 0x42
jne 0x433f24
push 4
lea ecx, [esi + 0x24]
call fcn.004340e2
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x433efa
mov ecx, esi
call fcn.00434454
jmp 0x433fd2
cmp eax, 0x5b
jne 0x433f54
mov ecx, esi
call fcn.00433e5a
mov ecx, esi
call fcn.00434408
cmp dword [esi + 0x4c], 0x5d
je 0x433ec7
push 4
jmp 0x433ff0
cmp eax, 0x28
jne 0x433f78
mov ecx, esi
call fcn.00433e5a
mov ecx, esi
call fcn.0043454c
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x433fee
mov ecx, esi
call fcn.00433e5a
jmp 0x433fce
cmp eax, 0x5e
jne 0x433f84
push 2
jmp 0x433ef2
cmp eax, 0x24
jne 0x433f90
push 3
jmp 0x433ef2
cmp eax, 0x2a
je 0x433fe4
cmp eax, 0x2b
je 0x433fe4
cmp eax, 0x3f
je 0x433fe4
cmp eax, 0x7b
je 0x433fe4
cmp eax, 0x7d
jne 0x433fae
test dword [esi + 0x50], edx
je 0x433fe0
cmp eax, 0x5d
jne 0x433fb8
test dword [esi + 0x50], edx
je 0x433f4d
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00434702
mov ecx, esi
call fcn.00433e5a
mov bl, 1
test bl, bl
je 0x433fd9
mov ecx, esi
call fcn.0043463e
mov cl, 1
jmp 0x433e86
push 6
jmp 0x433ff0
push 0xa
jmp 0x433ff0
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.0060a5e6
int3
Function at 0x436a9e
Capabilities:
Check for time delay via gettickcount
Delete file
Move file

Disassembly:
push 0x34
mov eax, 0x669215
call fcn.00621369
cmp dword [0x7157d8], 0
je 0x436c35
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x715b90]
cmp eax, 0x927c0
jb 0x436c35
mov edi, 0x400000
cmp dword [0x7157c8], edi
jg 0x436c35
push 0x800000
push 0x7157c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, eax
cmp ebx, edi
je 0x436b21
test ebx, ebx
je 0x436b21
cmp ebx, edi
jle 0x436b09
push 0xff800000
jmp 0x436c2a
lea eax, [ebx - 1]
cmp eax, 0x3ffffe
ja 0x436c35
push 0xffc00000
jmp 0x436c2a
call esi
cmp dword [0x703a9c], 0xffffffff
mov dword [0x715b90], eax
je 0x436c22
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
xor esi, esi
push eax
push esi
mov edi, 0x7157e0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov eax, dword [0x703a9c]
cmp dword [ebp - 0x24], esi
jb 0x436c22
ja 0x436b6b
cmp dword [ebp - 0x20], eax
jb 0x436c22
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.0043773e
push str..old
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.004374b6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [0x7157d8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
mov dword [0x7157d8], esi
push 0x7157e0
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push ecx
push ecx
push 0x80
push 2
push ecx
push 0x40000000
push 0x7157e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00419a50
test eax, eax
js 0x436c0d
push 2
push ecx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043654a
cmp byte [0x7157dc], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [0x7157d8], eax
je 0x436c17
push str.NewFile
push esi
push esi
call fcn.00436ec5
add esp, 0xc
jmp 0x436c10
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x436c17
push esi
call edi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004246cb
mov eax, 0xff800000
sub eax, ebx
push eax
push 0x7157c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
call fcn.00621313
ret
Function at 0x436c3b
Capabilities:
Delete file
Move file

Disassembly:
push 0x38
mov eax, 0x66925a
call fcn.00621369
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0x7157cc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x436db8
xor ebx, ebx
mov dword [0x703a9c], 0x400000
mov byte [ebp - 0x41], bl
mov dword [ebp - 0x1c], ebx
call fcn.00424609
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041b7d4
mov dword [ebp - 4], ebx
test edi, edi
jne 0x436cb4
lea ecx, [ebp - 0x14]
call fcn.00436966
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004309f6
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004246cb
mov esi, dword [ebp - 0x1c]
mov edi, esi
mov dword [ebp - 0x14], esi
jmp 0x436cb7
mov esi, dword [ebp - 0x1c]
push edi
call fcn.0063dcb8
push edi
push 0x6cd984
push 0x104
push 0x7157e0
call fcn.004376a8
add esp, 0x14
lea edi, [ebp - 0x40]
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0x24], ebx
ja 0x436cfc
cmp dword [ebp - 0x20], 0x400000
jb 0x436d3d
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.0043773e
push 2
pop eax
push str..old
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], al
call fcn.004374b6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 0x41], 1
call fcn.004246cb
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
cmp byte [ebp - 0x41], 0
push ecx
push ecx
push 0x80
push 4
pop eax
push 2
pop ecx
cmovne eax, ecx
mov byte [ebp - 4], 3
push eax
push ecx
push 0x40000000
push edi
lea ecx, [ebp - 0x18]
call fcn.00419a50
test eax, eax
js 0x436da2
push 2
pop eax
push eax
push ecx
push ecx
lea ecx, [ebp - 0x18]
call fcn.0043654a
cmp byte [0x7157dc], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [0x7157d8], eax
je 0x436db0
push str.BEGAIN_n
push ebx
push ebx
call fcn.00436ec5
add esp, 0xc
jmp 0x436da5
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x436db0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.004246cb
call fcn.00621313
ret
Function at 0x436dbe
Capabilities:
Write file on windows

Disassembly:
push 0x18
mov eax, 0x66929f
call fcn.00621369
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00424609
push eax
lea ecx, [ebp - 0x14]
call fcn.0041b7d4
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x14]
push str.:__Tid_d_
push eax
call fcn.0043763f
add esp, 0xc
push 0x6cda10
call fcn.0063c700
pop ecx
push eax
push ecx
mov ecx, esi
call fcn.00437534
lea ecx, [ebp - 0x24]
call fcn.00436a2b
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.004371fb
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004371fb
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00437318
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004246cb
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.004246cb
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.004246cb
call fcn.00436a9e
cmp dword [0x7157c8], 0x400000
jge 0x436eb4
mov edi, 0x7157c8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 0x400000
jge 0x436ead
mov ecx, dword [0x7157d8]
test ecx, ecx
je 0x436ead
mov eax, dword [esi]
lea edx, [ebp - 0x18]
push ebx
push edx
mov dword [ebp - 0x18], ebx
push dword [eax - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004246cb
call fcn.00621313
ret
Function at 0x437ff5
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x703034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00638f20
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
push str.GetPhysicallyInstalledSystemMemory
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43803e
lea ecx, [ebp - 0x10]
push ecx
call eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov edx, dword [ebp - 0xc]
or ecx, edx
je 0x438053
shrd eax, edx, 0xa
shr edx, 0xa
jmp 0x438071
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00620181
mov esp, ebp
pop ebp
ret
Function at 0x438f42
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x66979f
call fcn.00621369
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push 0x20a
push esi
push eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], esi
call fcn.00638f20
mov dword [edi + 0x14], 7
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], esi
jb 0x438f8e
mov eax, dword [edi]
jmp 0x438f90
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push ebx
push closesocket
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439027
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x6ce09c
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43901b
cmp word [ebp - 0x21c], ax
je 0x43900c
lea eax, [ebp - 0x21c]
push eax
call fcn.0063dcb8
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.004284c0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.00621313
ret 0x10

Function at 0x439031
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x66979f
call fcn.00621369
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push 0x20a
push esi
push eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], esi
call fcn.00638f20
mov dword [edi + 0x14], 7
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], esi
jb 0x43907d
mov eax, dword [edi]
jmp 0x43907f
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push ebx
push closesocket
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439116
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push str.InstallPath
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43910a
cmp word [ebp - 0x21c], ax
je 0x4390fb
lea eax, [ebp - 0x21c]
push eax
call fcn.0063dcb8
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.004284c0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.00621313
ret 0xc