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

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x53bdc1
push ebx
sub esp, 0x9c
mov eax, dword [0x53bdc0]
mov dword [ebp - 0x81], eax
mov eax, dword [0x53be25]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.0043f2a0
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x8c], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.00526b80
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x535cd0], 0
jne 0x4613f6
mov byte [0x535cd0], 1
call fcn.00524e40
test eax, eax
je 0x4613c4
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.0043e190
mov dword [esp], 2
mov esi, dword [fcn.0044d350]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x4613b4
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x53aad5
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x525cd0
jmp 0x525cc8
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x46137a
mov dword [esp], 2
call dword [0x53415c]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x525cc3
mov dword [esp], 2
call dword [0x53415c]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x545974
call fcn.00518a70
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.00524bc0
add esp, 0x18
pop ebx
ret
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.0044da28
call fcn.00525200
call fcn.00524d30
call fcn.00524e70
jmp 0x525cc3
Function at 0x4c0490
Capabilities:
Get common file path

Disassembly:
push ebp
xor eax, eax
mov edx, 0x400
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x28]
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], ax
lea esi, [esi]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x30]
mov dword [esp], edx
call fcn.005023f0
mov eax, dword [ebp - 0x30]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call ebx
sub esp, 8
mov edx, eax
cmp dword [ebp - 0x2c], eax
jb 0x4c04c0
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4c0590
call fcn.004f12a0
mov ebx, dword [ebp + 0xc]
mov dword [ebx], 0
mov dword [ebx + 4], eax
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x30]
mov dword [esp], edx
call fcn.005023f0
mov eax, dword [ebp - 0x30]
lea edx, [esi + 8]
mov ebx, dword [ebp - 0x2c]
sub esp, 8
mov dword [esi], edx
cmp eax, edi
je 0x4c0600
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
lea ebx, [esi + 0x18]
xor eax, eax
mov ecx, ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], ax
call fcn.004c4e70
mov ecx, esi
call fcn.004c40d0
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x4c057d
mov edx, dword [ebp - 0x28]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.00524bc0
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
test edi, edi
je 0x4c05b0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.004f12a0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x3c]
mov dword [ecx], ebx
jmp 0x4c050e
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004c13d0
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi]
test ebx, ebx
jne 0x4c0628
cmp al, 2
je 0x4c0586
mov eax, dword [esi]
xor edx, edx
mov dword [esi + 4], 0
mov ecx, esi
mov word [eax], dx
call fcn.004c40d0
call fcn.004f12b0
mov edi, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, esi
mov dword [edi], 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
add eax, 1
je 0x4c053f
add eax, eax
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
jmp 0x4c053f
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], 0
mov word [eax], cx
mov ecx, esi
call fcn.004c40d0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4c1180
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.004be2e0
test al, al
je 0x4c11db
cmp al, 0xff
je 0x4c11e8
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.004c13d0
cmp al, 2
je 0x4c1200
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x4c1212
mov eax, dword [ebx]
test eax, eax
jne 0x4c11db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004f12a0
mov dword [ebx], esi
mov dword [ebx + 4], eax
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
call fcn.004f12a0
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x4c11db
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
je 0x4c11b1
call fcn.004f12a0
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret

Function at 0x4c1280
Capabilities:
Move file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.004c13d0
cmp al, 0xff
je 0x4c12e8
mov ecx, dword [ebx]
test ecx, ecx
jne 0x4c12de
test al, al
jne 0x4c1300
mov dword [esp + 8], 3
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
sub esp, 0xc
test eax, eax
je 0x4c1350
call fcn.004f12a0
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call fcn.004f12a0
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x4c12ac
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x1c], eax
call fcn.004c13d0
mov edx, dword [ebx]
test edx, edx
jne 0x4c12de
mov ecx, dword [esp + 0x1c]
cmp cl, 2
je 0x4c1338
cmp al, 2
jne 0x4c12ac
call fcn.004f12b0
mov dword [ebx], 0x14
mov dword [ebx + 4], eax
jmp 0x4c12de
cmp al, 2
je 0x4c12ac
call fcn.004f12b0
mov dword [ebx], 0x15
mov dword [ebx + 4], eax
jmp 0x4c12de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x4c1380
call edi
mov dword [eax], 5
call fcn.004f12b0
mov esi, eax
call edi
mov eax, dword [eax]
mov dword [ebx + 4], esi
mov dword [ebx], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call edi
mov dword [eax], 0xd
jmp 0x4c1369
Function at 0x4c8950
Capabilities:
Get disk size

Disassembly:
push esi
push ebx
sub esp, 0x34
lea eax, [esp + 0x28]
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x50]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
test eax, eax
je 0x4c8a18
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, eax
or ecx, edx
je 0x4c89cc
mov esi, dword [esp + 0x44]
mov dword [esi], edx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, eax
or esi, edx
je 0x4c89e3
mov ecx, dword [esp + 0x48]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, eax
or ecx, edx
jne 0x4c8a08
call fcn.004f12a0
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x34
pop ebx
pop esi
ret
mov ecx, dword [esp + 0x4c]
mov dword [ecx], edx
mov dword [ecx + 4], eax
jmp 0x4c89f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004f12a0
mov dword [ebx], esi
mov dword [ebx + 4], eax
add esp, 0x34
pop ebx
pop esi
ret

Function at 0x4cf7e0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x4cf820
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x4cf7f1
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x10003609
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000a568]
jne 0x10003613
repz ret
jmp fcn.10005f00

Function at 0x100046fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000a568]
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.1000364c
and dword [ebp - 0x14], 0
cmp dword [0x1000b7e0], 0
mov dword [ebp - 0x18], eax
jne 0x100047ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10004856
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10004856
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000b7e0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000b7e4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000b7e8], eax
call edi
push eax
call esi
mov dword [0x1000b7f0], eax
test eax, eax
je 0x100047ae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000b7ec], eax
mov eax, dword [0x1000b7ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10004807
cmp dword [0x1000b7f0], ecx
je 0x10004807
push eax
call esi
push dword [0x1000b7f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10004807
test ebx, ebx
je 0x10004807
call edi
test eax, eax
je 0x100047fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100047fe
test byte [ebp - 8], 1
jne 0x10004807
or dword [ebp + 0x10], 0x200000
jmp 0x1000483a
mov eax, dword [0x1000b7e4]
cmp eax, dword [ebp - 0x18]
je 0x1000483a
push eax
call esi
test eax, eax
je 0x1000483a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000483a
mov eax, dword [0x1000b7e8]
cmp eax, dword [ebp - 0x18]
je 0x1000483a
push eax
call esi
test eax, eax
je 0x1000483a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000b7e0]
call esi
test eax, eax
je 0x10004856
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10004858
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003609
leave
ret
Function at 0x100a7b10
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100a7cf4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x64000]
push edi
jmp 0x100a7b3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100a7b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100a7b30
mov eax, 1
add ebx, ebx
jne 0x100a7b53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100a7b64
jne 0x100a7b83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100a7b83
dec eax
add ebx, ebx
jne 0x100a7b70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x100a7b48
add ebx, ebx
jne 0x100a7b7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x100a7bd5
xor ecx, ecx
sub eax, 3
jb 0x100a7b9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100a7c0a
sar eax, 1
mov ebp, eax
jmp 0x100a7ba6
add ebx, ebx
jne 0x100a7ba6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100a7b74
inc ecx
add ebx, ebx
jne 0x100a7bb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100a7b74
add ebx, ebx
jne 0x100a7bc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100a7bb6
jne 0x100a7bd2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100a7bb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100a7bf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100a7be6
jmp 0x100a7b36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100a7bf4
add edi, ecx
jmp 0x100a7b36
pop esi
mov edi, esi
mov ecx, 0x13cf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100a7c12
cmp byte [edi], 0x13
jne 0x100a7c12
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 0x100a7c17
lea edi, [esi + 0xa3000]
mov eax, dword [edi]
or eax, eax
je 0x100a7c86
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa7484]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa7510]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100a7c44
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa7514]
or eax, eax
je 0x100a7c80
mov dword [ebx], eax
add ebx, 4
jmp 0x100a7c61
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100a7cb7
cmp al, 0xef
ja 0x100a7caa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100a7c8c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100a7c99
mov ebp, dword [esi + 0xa7518]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x100a7ceb
sub esp, 0xffffff80
jmp 0x1005232f
Function at 0x401000
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x403170]
mov eax, dword [ecx + 0x3c]
sub esp, 0x2c
add eax, ecx
movzx edx, word [eax + 0x14]
push ebx
push esi
movzx esi, word [eax + 6]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea eax, [edx + eax + 0x18]
xor edx, edx
cmp dword [eax + 4], ebx
jne 0x401036
cmp dword [eax], 0x7373622e
jne 0x401036
mov edx, eax
add eax, 0x28
dec esi
je 0x401040
test edx, edx
je 0x401027
test edx, edx
je 0x40105e
mov eax, dword [edx + 0xc]
test eax, eax
je 0x40105a
mov edx, dword [edx + 0x10]
test edx, edx
je 0x40105a
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
jmp 0x401061
push 0xb
jmp 0x401060
push 2
pop ebx
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x40116e
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
and esi, 0xfff
neg esi
sbb esi, esi
shr eax, 0xc
neg esi
add esi, eax
mov eax, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 0xc
push eax
call fcn.00401f0b
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x401167
lea edx, [edi - 1]
and edx, 1
cmp edx, esi
jae 0x40113d
sub eax, dword [ebp - 0xc]
mov ecx, edx
lea edi, [eax + edi + 0x4041a7]
mov eax, dword [ebp - 0xc]
shl ecx, 0xc
add ecx, ebx
sub eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
sub eax, edx
and dword [ebp - 0x1c], 0
lea eax, [eax + ebx - 0x7e47c82d]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 4]
mov eax, dword [eax + ebx]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x401113
mov ebx, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x24]
add eax, ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ebx], eax
jmp 0x40111a
mov dword [ebp - 8], 1
dec dword [ebp - 8]
jne 0x4010ea
mov eax, dword [edi + 4]
sub eax, dword [edi + 8]
add ecx, 0x1000
add eax, dword [edi + 0xc]
inc edx
mov dword [0x403180], eax
cmp edx, esi
jb 0x4010ca
mov ebx, dword [ebp - 0x2c]
jmp 0x401142
mov eax, dword [0x403180]
cmp eax, 0x69b25f44
jne 0x401158
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, ebx
call fcn.00401f20
jmp 0x40115f
mov dword [ebp - 0x14], 0x15
push ebx
call fcn.004013e6
jmp 0x40116e
mov dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401178
Capabilities:
Create thread
Get geographical location
Get system information on windows
Identify system language via api
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
call fcn.00401d96
mov dword [ebp - 4], eax
test eax, eax
jne 0x40132e
push ebx
push esi
push edi
xor esi, esi
push 0x30
mov dword [ebp - 8], esi
pop ebx
push ebx
call fcn.00401f0b
mov edi, eax
test edi, edi
je 0x4011da
lea eax, [ebp - 8]
push eax
push ebx
push edi
push 8
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, eax
and eax, 0xffff
mov dword [ebp - 4], eax
cmp eax, 4
jne 0x4011c5
add ebx, 0x30
mov eax, dword [edi]
push 0x13
pop esi
xor edx, edx
div esi
push edi
lea esi, [edx + ecx + 1]
call fcn.004013e6
jmp 0x4011e1
mov dword [ebp - 4], 8
cmp dword [ebp - 4], 0
jne 0x401199
push esi
call section..text
shl esi, 4
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
cmp eax, 0x15
je 0x401191
xor esi, esi
cmp eax, esi
jne 0x40132b
push 4
lea eax, [ebp - 8]
push eax
push 0x5a
push 0x400
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x40123e
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 4
lea ecx, [ebp - 8]
movzx eax, ax
push ecx
push eax
call sub.KERNEL32.dll_VerLanguageNameA
mov eax, 0x5552
cmp word [ebp - 8], ax
je 0x40131d
lea eax, [ebp - 0xc]
push eax
call fcn.0040135e
test eax, eax
jne 0x401296
mov ebx, dword [ebp - 0xc]
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x40128e
lea eax, [edi + edi + 2]
push eax
call fcn.00401f0b
mov dword [0x403178], eax
test eax, eax
je 0x40128e
push edi
push eax
push ebx
call esi
push ebx
call fcn.004013e6
jmp 0x40129c
mov dword [0x403178], ebx
jmp 0x40129c
mov dword [0x403178], esi
xor edi, edi
push edi
push edi
push dword [0x403180]
push dword [sym.imp.KERNEL32.dll_SleepEx]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x401314
lea eax, [ebp - 0x24]
push eax
push esi
push 0x401e51
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4012f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call edi
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x401314
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40130f
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call edi
jmp 0x40131d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jne 0x40132b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013fb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x20
call fcn.00401f0b
mov esi, eax
test esi, esi
je 0x4014ce
mov eax, dword [0x403184]
lea eax, [eax + 0x404014]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [0x403184]
lea eax, [eax + 0x404151]
push eax
push ebx
mov dword [ebp - 4], 0x7f
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x4014c6
mov eax, dword [0x403184]
lea eax, [eax + 0x404161]
push eax
push ebx
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x4014c6
mov eax, dword [0x403184]
lea eax, [eax + 0x404174]
push eax
push ebx
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x4014c6
mov eax, dword [0x403184]
lea eax, [eax + 0x404189]
push eax
push ebx
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x4014c6
mov eax, dword [0x403184]
lea eax, [eax + 0x40419f]
push eax
push ebx
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4014c6
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, esi
call fcn.00401b6a
mov dword [ebp - 4], eax
test eax, eax
jne 0x4014c6
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x4014d5
push esi
call fcn.004013e6
jmp 0x4014d5
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40189c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x192
push 0x54d38000
push dword [ebp - 8]
push dword [ebp - 0xc]
call sub.ntdll.dll__aulldiv
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x403184]
lea ecx, [eax + 0x40405e]
push ecx
lea eax, [eax + 0x404054]
push eax
lea eax, [ebp - 0x38]
push 0x16
push eax
mov dword [ebp - 8], edx
call sub.ntdll.dll__snwprintf
mov eax, dword [ebp + 8]
xor ebx, ebx
add esp, 0x14
cmp eax, ebx
jne 0x4018fa
mov eax, 0x1000
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push 4
push 0x403188
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x40195d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], ebx
jne 0x40192e
call edi
cmp eax, 0xb7
je 0x40192e
push 2
pop edi
jmp 0x401954
push ebx
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x40194c
mov ecx, dword [ebp + 0xc]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor edi, edi
jmp 0x401965
call edi
mov edi, eax
cmp edi, ebx
je 0x401965
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401965
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc