joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d7a
nop
nop
sub eax, 0x403d20
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x401465
Capabilities:
Encode data using xor

Disassembly:
jmp 0x418f56
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x419021
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.1110
mov ebp, 0x751298
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0xc1
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x90
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x9a
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0xb1
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x99
push ebx
push ebp
call fcn.004032a6
add esp, 0x44
push eax
call fcn.00406ff5
add byte [esi + edi], 0x7b
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x36
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x78
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0x6b
add esp, 0x28
inc esi
cmp esi, dword [esp + 0x18]
jb 0x418f74
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x403c7e
Capabilities:
Terminate process

Disassembly:
jmp 0x45aa49
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45aa5a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040665e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403e09
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a45a2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a45b3
pop esi
ret
push ebx
push edi
push esi
call fcn.004a4489
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040488b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a45db
push ebx
push esi
push edi
call fcn.004063fc
add esp, 0xc
push 0
call fcn.00407185
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4064d3
Capabilities:
Parse pe header

Disassembly:
jmp 0x44987f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4498be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4498be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4498be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4498be
cmp dword [ecx + 0x74], 0xe
jbe 0x4498be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x41966d
sub esp, 0x20
mov eax, dword [0x74d3a8]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4196e5
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040209f
test esi, esi
je 0x4196d2
cmp dword [esp + 0x38], 3
jbe 0x4196d2
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004031f2
pop ecx
pop ecx
test eax, eax
je 0x4196d2
cmp eax, dword [esp + 0x38]
je 0x4196fd
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402de7
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x41969e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004035df
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402de7
jmp 0x4196e7
Function at 0x49ae95
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040201d
mov eax, dword [0x74d3a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406cd0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49aed7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49b033
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406e5b
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x7528d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403855
mov ecx, dword [esi*4 + 0x7528d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49b02c
cmp eax, dword [edi + ecx + 0x24]
jne 0x49b02c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b02c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403855
add esp, 0x14
test edx, edx
jl 0x49b02c
jg 0x49afa2
test eax, eax
jb 0x49b02c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49b02c
jl 0x49afbc
cmp dword [ebp - 0x1008], eax
ja 0x49b02c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49afda
test ebx, ebx
je 0x49b013
cmp ecx, edi
jae 0x49b013
mov al, byte [ecx]
cmp al, 0xd
jne 0x49aff4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49b000
cmp byte [ecx + 1], 0xa
jne 0x49b000
inc ecx
jmp 0x49b000
movzx eax, al
movsx eax, byte [eax + 0x74d6c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49afda
cmp edx, ebx
jne 0x49afda
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49b031
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004035df
leave
ret
Function at 0x49b238
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x7528d8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49b278
cmp byte [ebx], 0xa
jne 0x49b278
or byte [eax + edi + 0x28], 4
jmp 0x49b27d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49b37b
mov al, byte [edx]
cmp al, 0x1a
je 0x49b35d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49b2ac
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49b2d1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49b2db
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x49b28e
jmp 0x49b37b
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b358
cmp dword [ebp - 0xc], 0
je 0x49b358
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x7528d8]
test byte [eax + edi + 0x28], 0x48
je 0x49b332
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49b31d
mov byte [esi], dl
jmp 0x49b32e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7528d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49b37b
cmp byte [ebp - 1], 0xa
jne 0x49b341
cmp esi, ebx
jne 0x49b341
mov byte [esi], 0xa
jmp 0x49b37a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401af5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49b37b
mov byte [esi], 0xd
jmp 0x49b37a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x7528d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49b377
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49b37b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49b3d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x7528d8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49b41a
cmp word [esi], dx
jne 0x49b41a
or byte [edi + eax + 0x28], 4
jmp 0x49b41f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x49b572
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x49b552
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49b461
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49b497
cmp eax, edx
jae 0x49b4a3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49b439
jmp 0x49b572
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b54e
cmp dword [ebp - 0x14], 0
je 0x49b54e
mov eax, dword [ebx*4 + 0x7528d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49b526
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49b4ef
mov word [esi], cx
jmp 0x49b522
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x7528d8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x7528d8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x7528d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49b572
pop ebx
cmp word [ebp - 4], bx
jne 0x49b537
cmp esi, dword [ebp + 0xc]
jne 0x49b537
mov word [esi], bx
jmp 0x49b56f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401af5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49b572
push 0xd
jmp 0x49b56b
mov ecx, dword [ebx*4 + 0x7528d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49b569
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49b572
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2b41
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x74d3a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a2b8c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a3003
test al, al
jne 0x4a2b86
sub edx, 2
cmp edx, edi
jne 0x4a2b6c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a2bae
lea eax, [edi + 2]
cmp edx, eax
je 0x4a2bae
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a273a
add esp, 0x10
jmp 0x4a2ca8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a3003
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a2bf1
push dword [ebp - 0x25c]
jmp 0x4a2b9e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a2c2e
cmp word [ebp - 0x226], 0
je 0x4a2c4f
cmp word [ebp - 0x226], ax
jne 0x4a2c2e
cmp word [ebp - 0x224], 0
je 0x4a2c4f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a273a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a2c9b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a2c08
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a2c83
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a2ca8
push 0x4a2122
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004061fe
add esp, 0x10
jmp 0x4a2c78
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004035df
leave
ret
Function at 0x402b77
Capabilities:
Delete directory
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00409300
cmp dword [0x2a9b018], 0x594
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x402bb4
push 0x4024e8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x40254c
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x426c78]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x426c7c]
push esi
xor esi, esi
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00402b70
mov eax, dword [0x426c80]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x426c84]
add ebx, 0x23f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x2a9b018], 0xc
mov dword [ebp - 4], eax
jne 0x402c3f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x2a9b018]
cmp eax, 0xfa9
jne 0x402c5b
mov dword [0x2a9a5b4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x402c68
mov dword [0x2a99f68], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x2a9a5b0], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2a9b018], 0x213
mov dword [ebp - 0x14], edx
jne 0x402caf
push esi
push 0x402568
push esi
push 0x4025f0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x2a9b018], 0xc
jne 0x402cec
push esi
lea eax, [ebp - 0x82c]
push eax
push 0x402640
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push esi
lea eax, [ebp - 0x102c]
push eax
push 0x4026b0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edi, eax
shr edi, cl
lea edx, [ebx + eax]
xor dword [ebp - 4], edx
add edi, dword [ebp - 0x24]
cmp dword [0x2a9b018], 0x121
jne 0x402d2a
push 0x4026e0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
sub dword [ebp - 0x10], ecx
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x402bf4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
pop edi
pop esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
pop ebx
leave
ret 4
Function at 0x402d54
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00409300
mov eax, dword [0x2a9b018]
mov ecx, dword [0x2a99f6c]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402e4c
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2a9b018], 0x959
jne 0x402e3a
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push 0x402730
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push 0x4027b0
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x402840
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402890
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push 0x402724
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x4028e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.00402b77
add edi, 8
dec ebx
jne 0x402d80
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4030b2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
push ebx
call dword [sym.imp.USER32.dll_CharUpperW]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
cmp esi, 0x2710
jge 0x4030e5
lea eax, [ebp - 0x42c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
inc esi
cmp esi, 0x5d744c
jl 0x4030c2
xor esi, esi
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, edi
jle 0x403108
cmp dword [ebp - 4], 0x785074d5
jne 0x403111
inc esi
cmp esi, 0x1c1b
jl 0x4030f5
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x403137
inc esi
cmp esi, 0x4f6a4
jl 0x403113
cmp dword [0x2a9b018], 0x400
jne 0x403159
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push ebx
push ebx
call fcn.004031ca
push ebx
call fcn.00403244
add esp, 0xc
mov eax, dword [0x42704c]
mov dword [0x2a9b018], eax
mov eax, dword [0x427020]
mov dword [0x2a9b01c], eax
call fcn.00402e69
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp esi, edi
jle 0x403188
cmp dword [ebp - 4], 0x785074d5
jne 0x403191
inc esi
cmp esi, 0x11915
jl 0x403174
mov esi, 0x3078f
cmp dword [0x2a9b018], 0x51f
jne 0x4031ac
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
dec esi
jne 0x403196
mov eax, dword [0x2a99f6c]
mov dword [0x2a9a5ac], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x406ebc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040471e
and dword [ebp - 4], 0
cmp dword [0x4278e8], 0
mov ebx, eax
jne 0x406f6d
push 0x4019c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40701e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019b8
push edi
call esi
test eax, eax
je 0x40701e
push eax
call fcn.004046ac
mov dword [esp], 0x4019a8
push edi
mov dword [0x4278e8], eax
call esi
push eax
call fcn.004046ac
mov dword [esp], 0x401994
push edi
mov dword [0x4278ec], eax
call esi
push eax
call fcn.004046ac
mov dword [esp], 0x401978
push edi
mov dword [0x4278f0], eax
call esi
push eax
call fcn.004046ac
pop ecx
mov dword [0x4278f8], eax
test eax, eax
je 0x406f6d
push 0x401960
push edi
call esi
push eax
call fcn.004046ac
pop ecx
mov dword [0x4278f4], eax
mov eax, dword [0x4278f4]
cmp eax, ebx
je 0x406fc5
cmp dword [0x4278f8], ebx
je 0x406fc5
push eax
call fcn.00404727
push dword [0x4278f8]
mov esi, eax
call fcn.00404727
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406fc5
test edi, edi
je 0x406fc5
call esi
test eax, eax
je 0x406fbc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406fbc
test byte [ebp - 0xc], 1
jne 0x406fc5
or dword [ebp + 0x10], 0x200000
jmp 0x406ffe
mov eax, dword [0x4278ec]
cmp eax, ebx
je 0x406ffe
push eax
call fcn.00404727
pop ecx
test eax, eax
je 0x406ffe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406ffe
mov eax, dword [0x4278f0]
cmp eax, ebx
je 0x406ffe
push eax
call fcn.00404727
pop ecx
test eax, eax
je 0x406ffe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4278e8]
call fcn.00404727
pop ecx
test eax, eax
je 0x40701e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407020
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4077d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426a10]
jne 0x4077df
repz ret
jmp fcn.00408e89