joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3730
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [esp + 0x18], eax
mov bl, 1
cmp dword [ecx + 8], 0
je 0x4b3764
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.0045bb2d
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ecx
xor ebx, ebx
lea edi, [esp + 8]
mov dword [edi + 4], ebx
mov dword [edi], ebx
lea eax, [ecx + 0x5d120]
mov dword [esp], eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
lea ecx, [esp + 0x10]
mov word [ecx], ax
mov dword [ecx + 2], 0x5c003a
mov word [ecx + 6], 0
push ebx
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4b374f
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
je 0x4b37d6
cmp ecx, dword [esp + 8]
sbb eax, dword [esp + 0xc]
jb 0x4b37d6
mov dword [esi + 0x2470], 2
xor ebx, ebx
jmp 0x4b374f
sub esp, 0x1c
movaps xmm0, xmmword [0x4dd990]
movups xmmword [esp + 4], xmm0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x4b3836
mov bl, 1
cmp byte [esi + 0x26f0], 0
je 0x4b374f
lea edi, [esi + 0x26e4]
mov eax, dword [esi + 0x26e4]
mov ecx, dword [esi + 0x26e8]
cmp ecx, eax
je 0x4b385d
add ecx, 0xfffffffc
jne 0x4b382b
jmp 0x4b384e
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
jmp 0x4b37cf
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
push 0x4d745c
call fcn.00492230
mov dword [esi + 0x26e8], eax
mov ecx, esi
call fcn.004b3f20
test al, al
jne 0x4b374f
mov ecx, dword [esi + 0x2468]
test ecx, ecx
je 0x4b3888
mov eax, 0xa
cmp ecx, 0xb
jae 0x4b388d
jmp 0x4b3893
mov eax, 5
mov dword [esi + 0x2468], eax
lea ecx, [esi + 0x5cfb8]
xor eax, eax
mov dword [esi + 0x5cfc4], eax
mov dword [esi + 0x5cfc0], eax
mov eax, dword [esi + 0x5d100]
mov edx, dword [esi + 0x5d104]
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esi + 0x5cfc8], eax
mov dword [esi + 0x5cfcc], edx
mov dword [esp + 4], ecx
mov eax, dword [esi + 0x26e8]
cmp eax, dword [esi + 0x26ec]
jae 0x4b3913
test eax, eax
je 0x4b3921
mov dword [eax], ecx
add eax, 4
mov dword [esi + 0x26e8], eax
mov eax, dword [esi + 0x5d100]
mov ecx, dword [esi + 0x5d104]
lea edx, [esp + 4]
mov dword [edx], ecx
push 0
push edx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4b374f
lea eax, [esp + 4]
mov ecx, edi
push eax
call fcn.004b4730
jmp 0x4b38e0
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
jmp 0x4b3853
Function at 0x4b3930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 8]
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x805c]
mov edx, dword [edi + 0x20]
cmp dword [edx + 4], 1
cmove eax, edi
mov esi, ecx
mov ebx, dword [eax]
cmp byte [ecx + 0x26f0], 0
jne 0x4b39b5
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
lea edx, [edi + 0x40]
push eax
push ecx
push ebx
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b3983
cmp dword [ebp - 0x14], ebx
je 0x4b399b
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bb2d
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
add dword [esi + 0x5d110], ebx
adc dword [esi + 0x5d114], 0
mov ecx, esi
push ebx
push edi
call fcn.004b4350
mov bl, 1
jmp 0x4b3985
mov ecx, esi
call fcn.004b4170
mov edx, dword [edi + 0x8040]
mov eax, dword [edx + 0x18]
add eax, dword [edx + 8]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x1c], edx
adc ecx, dword [edx + 0xc]
lea edx, [ebp - 0x14]
mov dword [edx], ecx
push 0
push edx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4b3a0e
xor eax, eax
lea ecx, [ebp - 0x18]
mov dword [ecx], eax
lea edx, [edi + 0x40]
push eax
push ecx
push ebx
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b3983
cmp dword [ebp - 0x18], ebx
jne 0x4b3983
jmp 0x4b3a1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b3983
jmp 0x4b39e8
mov eax, dword [ebp - 0x1c]
add dword [eax + 0x18], ebx
adc dword [eax + 0x1c], 0
add dword [esi + 0x5d110], ebx
adc dword [esi + 0x5d114], 0
mov ecx, esi
push ebx
push edi
call fcn.004b4350
mov ecx, esi
call fcn.004b4260
jmp 0x4b39b1
Function at 0x4b4170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov esi, ecx
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
lea ebx, [ebp - 0x21c]
mov dword [ebx], edi
mov dword [ebp - 0x220], edi
lea eax, [ebp - 0x218]
push 0x208
push edi
push eax
call fcn.00463600
add esp, 0xc
push 2
push edi
push 0xffffffffffffff96
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push 0x6a
lea eax, [ebp - 0x218]
push eax
mov edi, esi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebx], 0x6a
jne 0x4b4246
mov esi, ebx
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x218]
push eax
call fcn.0047e438
add esp, 8
test eax, eax
jne 0x4b4246
mov eax, 0xfffffffc
sub eax, dword [ebp - 0x21c]
xor ecx, ecx
inc ecx
xor edx, edx
push ecx
push edx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebx, [ebp - 0x220]
xor eax, eax
push eax
push esi
push 4
push ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx]
add eax, dword [ebp - 0x21c]
neg eax
xor ecx, ecx
inc ecx
push ecx
xor ecx, ecx
push ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bb2d
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b4260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov edi, dword [ecx + 0x26e8]
mov ebx, dword [ecx + 0x26e4]
mov ecx, edi
sub ecx, ebx
sar ecx, 2
mov dword [ebp - 0x18], ecx
push 2
push eax
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, ebx
je 0x4b4327
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push 0
push eax
push 4
push ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x26e4]
cmp dword [esi + 0x26e8], eax
je 0x4b4342
mov ebx, 4
xor edi, edi
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x20
push dword [eax + edi*4]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, 0x20
inc edi
mov eax, dword [esi + 0x26e4]
mov ecx, dword [esi + 0x26e8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x4b42cf
mov dword [ebp - 0x18], ebx
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea edi, [ebp - 0x14]
push edi
push 4
lea eax, [ebp - 0x18]
push eax
push dword [esi + 8]
call ebx
xor eax, eax
push eax
push edi
push 0x6a
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push dword [esi + 8]
call ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bb2d
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 4
jmp 0x4b42fc
Function at 0x4b5280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.0044ce80
mov ecx, eax
push str.enable_logging
call fcn.0044ce90
test al, al
je 0x4b5351
mov bl, 1
cmp dword [0x4f7ff0], 0
jne 0x4b5353
mov esi, dword [0x4f7fdc]
test esi, esi
je 0x4b536a
test byte [0x4f11c8], 1
je 0x4b5353
cmp byte [esi + 0xb], 0
jns 0x4b52dd
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x4dde20]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4f7ff0], eax
inc eax
cmp eax, 1
ja 0x4b5353
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.00463600
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x4b5403
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bb2d
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc
call fcn.00459b0c
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.00463600
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push edi
call fcn.0048fb00
movzx eax, byte [esi + 0xb]
mov ecx, esi
test al, al
jns 0x4b53bf
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
jne 0x4b53dc
mov ecx, esi
push 9
push str.debug.log
call fcn.0042a1d0
mov dword [0x4f7fdc], esi
jmp 0x4b52cc
add eax, eax
test eax, eax
je 0x4b53c3
lea edx, [eax - 2]
cmp word [ecx + eax - 2], 0x5c
mov eax, edx
jne 0x4b53de
cmp edx, 0xfffffffe
je 0x4b53c3
sar edx, 1
inc edx
mov ecx, esi
push 0xffffffffffffffff
push edx
call fcn.00424240
jmp 0x4b53c3
mov ecx, dword [0x4f7fdc]
push esi
call fcn.0042a140
mov ecx, dword [0x4f7fdc]
call fcn.004a8ef0
cmp word [eax], 0x5c
je 0x4b5432
mov ecx, dword [0x4f7fdc]
push 1
push 0x4d861a
call fcn.0042a1d0
mov ecx, dword [0x4f7fdc]
push 9
push str.debug.log
call fcn.0042a1d0
mov eax, dword [0x4f7fdc]
cmp byte [eax + 0xb], 0
jns 0x4b5451
mov eax, dword [eax]
movaps xmm0, xmmword [0x4dde20]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4f7ff0], eax
inc eax
cmp eax, 1
ja 0x4b5353
mov dword [0x4f7ff0], 0
jmp 0x4b5351

Function at 0x4bb310
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax], edx
lea edx, [ecx + ecx*4]
lea edx, [ecx + edx*2]
add edx, 0x67452301
mov dword [eax + 8], edx
imul edx, ecx, 0x47
add edx, 0xefcdab89
mov dword [eax + 0xc], edx
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*4]
add edx, 0x98badcfe
mov dword [eax + 0x10], edx
imul ecx, ecx, 0x61
add ecx, 0x10325476
mov dword [eax + 0x14], ecx
pop ebp
ret
Function at 0x4c57d0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
mov eax, esp
movdqa xmmword [eax], xmm0
movdqa xmmword [eax + 0x30], xmm0
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
mov dword [eax], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4c5878
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 8]
mov edx, dword [esp + 0xc]
shrd esi, edx, 0xa
test edx, 0xfffffe00
mov edx, 0x7fffffff
cmovne esi, edx
mov dword [ecx], esi
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
shrd esi, edi, 0xa
test edi, 0xfffffe00
cmovne esi, edx
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
shrd esi, edi, 0xa
test edi, 0xfffffe00
cmovne esi, edx
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
shrd esi, edi, 0xa
test edi, 0xfffffe00
cmovne esi, edx
mov dword [ecx + 0xc], esi
test eax, eax
setne bl
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.0045bb2d
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x427ad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x420015
lea edi, [esi - 0x1f015]
push edi
or ebp, 0xffffffff
jmp 0x427af2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427af9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427ae8
mov eax, 1
add ebx, ebx
jne 0x427b0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427b00
jne 0x427b1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427b00
xor ecx, ecx
sub eax, 3
jb 0x427b30
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x427ba2
mov ebp, eax
add ebx, ebx
jne 0x427b3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427b48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x427b6c
inc ecx
add ebx, ebx
jne 0x427b58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x427b4d
jne 0x427b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427b4d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x427b8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x427b7d
jmp 0x427aee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x427b8c
add edi, ecx
jmp 0x427aee
pop esi
mov edi, esi
mov ecx, 0x986
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x427baa
cmp byte [edi], 7
jne 0x427baa
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 eax, ebx
loop 0x427baf
lea edi, [esi + 0x25000]
mov eax, dword [edi]
or eax, eax
je 0x427c1e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x427bdc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280a4]
or eax, eax
je 0x427c18
mov dword [ebx], eax
add ebx, 4
jmp 0x427bf9
call dword [esi + 0x280a8]
popal
jmp 0x4011cb
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41e960]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x401036
cmp word [0x41e962], bx
je 0x401027
call eax
mov dword [0x41e960], eax
push eax
call fcn.00402490
push eax
call fcn.0040950a
pop ecx
jmp 0x4010a4
push 0x27
call fcn.00402490
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x401098
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push 0x41a490
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401063
lea eax, [ebp - 0x904]
push eax
call fcn.0040950a
pop ecx
call fcn.0040491c
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401893
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc]
call fcn.004136a9
push dword [ebp + 0xc]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00401403
push 0x5c
mov ecx, edi
call fcn.004017a8
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40133c
push edi
push edi
mov dword [0x41e964], esi
mov dword [0x41e96c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x41e9c4], 2
mov dword [0x41e968], eax
je 0x4018f0
call fcn.00408c92
push 0xffffffffffffffff
push dword [0x41e968]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41e96c]
cmp eax, edi
mov dword [0x41ea58], edi
je 0x40193f
cmp eax, 1
je 0x401933
cmp eax, 2
je 0x40192f
cmp eax, 3
je 0x40192b
cmp eax, 0x67
jle 0x401926
cmp eax, 0x6b
jle 0x4019a3
push eax
push 0x14
jmp 0x401976
push 0x12
jmp 0x401935
push 0x13
jmp 0x401935
push 0x11
push edi
call fcn.004095ee
pop ecx
pop ecx
jmp 0x4019a3
cmp dword [0x41ea60], edi
jne 0x4019a3
lea eax, [ebp + 8]
push eax
push dword [0x41e968]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x401966
cmp ecx, edi
jne 0x401966
xor eax, eax
jmp 0x4019a8
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x401979
push ecx
push 0x21
push edi
jmp 0x40199b
and ecx, 0xffff
cmp ecx, 0xe
jne 0x40198d
cmp dword [0x41e9c8], 0xffffffff
je 0x4019a3
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.004095ee
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401e7e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401ea9
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ebf
test al, 0x10
jne 0x401ebf
push esi
jmp 0x401e9f
xor eax, eax
inc eax
pop esi
ret

Function at 0x4020d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebx, eax
movzx eax, word [0x41e980]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x402116
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x40213c
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x402127
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40213c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4021b6
cmp dword [0x41e990], 0
jne 0x4021b4
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x41a5d0
mov ebx, 0x41a5c4
push ebx
mov dword [0x41e990], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x41e980]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push 0x41a5a8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x4021a9
push 0x41a588
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x4021b4
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402490
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41e0b0], ebx
je 0x4024c3
mov eax, 0x41e0b0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4024c3
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41e0b0]
cmp dword [eax], ebx
jne 0x4024ac
shl esi, 4
cmp dword [esi + 0x41e0b0], ebx
jne 0x4024d8
mov eax, 0x41a584
jmp 0x40264a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push 0x41a600
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x402588
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419240
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x40257f
call edi
test eax, eax
jne 0x40257f
mov eax, dword [esi + 0x41e0bc]
test eax, eax
je 0x402574
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402571
push dword [esi + 0x41e0bc]
call fcn.0041923a
mov dword [esi + 0x41e0bc], edi
jmp 0x402587
push edi
jmp 0x402582
mov eax, dword [ebp - 8]
mov dword [esi + 0x41e0bc], eax
jmp 0x402588
push dword [ebp - 8]
call fcn.0041923a
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x41e0bc]
test eax, eax
jne 0x402649
mov ebx, dword [esi + 0x41e0b4]
lea edi, [esi + 0x41e0b8]
cmp dword [edi], eax
je 0x4025be
call fcn.0040243a
cmp eax, dword [0x41b41c]
jne 0x4025be
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419240
cmp dword [0x41e084], 0xffffffff
pop ecx
mov dword [esi + 0x41e0bc], eax
jne 0x402629
and dword [0x41e084], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41e980]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x402629
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e084], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41e0bc]
push edi
push ebx
push 0
push dword [0x41e084]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41e0bc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402757
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4027b4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x4029fa
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x402a0a
xor eax, eax
leave
ret
test byte [0x41e9c8], 2
mov dword [ebp - 0x40], 0x40
jne 0x402a5f
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402a5f
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402a5f
jb 0x402a3b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402a5f
push 0x2b
call fcn.00402490
push eax
call fcn.00409581
cmp eax, 1
pop ecx
pop ecx
je 0x402a58
or dword [0x41e9c8], 0xffffffff
jmp 0x402a06
or dword [0x41e9c8], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402e9c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004014eb
cmp dword [ebp - 4], 1
jg 0x402eba
push 1
lea ecx, [ebp - 0xc]
call fcn.004011b7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402ede
push dword [ebp - 0xc]
call fcn.0041923a
pop ecx
jmp 0x402f15
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402ad5
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00401184
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.0040143c
push esi
call fcn.0041923a
pop ecx
pop ebx
pop edi
pop esi
leave
ret