joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bf30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov eax, dword [0x410e00]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x10], eax
call eax
mov edx, dword [ebp + 8]
mov eax, dword [0x411208]
test edx, edx
je 0x40c02f
test eax, eax
je 0x40c080
mov esi, dword [0x410f6c]
test esi, esi
je 0x40c0f0
mov dword [esp + 4], 0x412905
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strpbrk]
test eax, eax
jne 0x40c0b0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov edi, dword [0x4107d8]
mov dword [esp + 4], esi
mov ebx, eax
lea eax, [eax + 1]
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_memmove]
mov esi, dword [0x411208]
mov eax, esi
sub eax, ebx
cmp eax, 2
jbe 0x40c058
mov eax, dword [ebp + 8]
add edi, ebx
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, ebx
not eax
lea edx, [eax + esi]
mov dword [esp + 8], edx
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x40c010
mov eax, dword [0x4107d8]
mov dword [0x410f6c], 0
test eax, eax
je 0x40c003
call sym._GetWideString.part.0
mov dword [0x410e00], eax
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [0x4107d8]
add ebx, esi
mov dword [0x410f6c], esi
mov byte [ebx + eax], 0
test esi, esi
jne 0x40bf71
mov eax, dword [0x411208]
mov dword [0x410e00], 0
test eax, eax
jne 0x40c0fa
mov dword [0x411208], 0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
add esi, esi
mov dword [esp], edi
mov dword [0x411208], esi
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [0x4107d8], eax
mov edi, eax
jmp 0x40bfc2
mov dword [0x411208], 0x1000
mov dword [esp], 0x1000
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [0x4107d8], eax
mov esi, eax
mov byte [eax], 0
mov dword [0x410f6c], eax
jmp 0x40bf71
lea ecx, [eax + 1]
cmp byte [eax], 0xd
mov dword [0x410f6c], ecx
je 0x40c0d8
mov byte [eax], 0
mov eax, esi
call sym._GetWideString.part.0
mov dword [0x410e00], eax
jmp 0x40c008
cmp byte [eax + 1], 0xa
jne 0x40c0be
lea ecx, [eax + 2]
mov dword [0x410f6c], ecx
jmp 0x40c0be
mov dword [0x410e00], 0
mov eax, dword [0x4107d8]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call eax
jmp 0x40c041
Function at 0x40c110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov edi, dword [ebp + 8]
mov eax, dword [0x411204]
test edi, edi
je 0x40c20c
test eax, eax
je 0x40c260
mov ebx, dword [0x410f68]
test ebx, ebx
je 0x40c2c9
mov dword [esp + 4], 0x4128da
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x40c29e
mov edx, dword [0x410f68]
cmp word [edx], 0
je 0x40c290
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40c170
sub eax, edx
mov edi, eax
mov ebx, eax
lea eax, [eax + 2]
sar edi, 1
mov esi, dword [0x4107d4]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x411204]
mov edx, eax
sub edx, edi
cmp edx, 2
jbe 0x40c230
mov ecx, dword [ebp + 8]
mov edx, edi
mov dword [esp + 4], 2
not edx
add eax, edx
mov dword [esp + 0xc], ecx
lea ecx, [esi + ebx]
mov dword [esp + 8], eax
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x40c1f0
mov dword [0x410f68], 0
mov ebx, dword [0x4107d4]
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x4107d4]
add eax, edi
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [0x410f68], ebx
test ebx, ebx
jne 0x40c13f
mov eax, dword [0x411204]
test eax, eax
jne 0x40c2c9
mov dword [0x411204], 0
xor ebx, ebx
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [eax + eax]
shl eax, 2
mov dword [esp], esi
mov dword [0x411204], edx
mov dword [ebp - 0x10], edx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x10]
mov dword [0x4107d4], eax
mov esi, eax
mov eax, edx
jmp 0x40c1ad
mov dword [0x411204], 0x1000
xor esi, esi
mov dword [esp], 0x2000
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [0x4107d4], eax
mov ebx, eax
mov word [eax], si
mov dword [0x410f68], eax
jmp 0x40c13f
mov eax, 2
xor ebx, ebx
xor edi, edi
jmp 0x40c184
lea edx, [eax + 2]
cmp word [eax], 0xd
mov dword [0x410f68], edx
je 0x40c2b7
xor edx, edx
mov word [eax], dx
jmp 0x40c1e6
cmp word [eax + 2], 0xa
jne 0x40c2ad
lea edx, [eax + 4]
mov dword [0x410f68], edx
jmp 0x40c2ad
mov eax, dword [0x4107d4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40c219
Function at 0x40c6b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40c6e5
lea eax, [ebp - 0x42]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fread]
cmp eax, 1
je 0x40c6f8
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [ebp - 0x41]
movzx eax, byte [ebp - 0x42]
xor esi, esi
mov byte [ebp - 0x45], cl
mov ecx, sym._get_lineA
cmp al, 0xff
jne 0x40c721
xor edx, edx
mov edi, sym._get_lineW
cmp byte [ebp - 0x45], 0xfe
sete dl
cmove ecx, edi
mov esi, edx
movzx edx, byte [ebp - 0x45]
mov dword [ebp - 0x40], ebx
lea ebx, [ebp - 0x40]
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3c]
mov word [ebp - 0x3a], dx
mov edx, 0xffffffff
mov word [ebp - 0x34], dx
mov edx, sym._header_state
mov dword [ebp - 0x38], esi
mov dword [0x410c60], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x40c79a
mov edx, dword [ebp - 0x10]
mov edx, dword [edx*4 + 0x412e00]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
test eax, eax
jne 0x40c790
movzx eax, word [ebp - 0x34]
lea edx, [eax - 3]
cmp dx, 1
jbe 0x40c800
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, 1
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40c6e7
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
cmp ax, 3
sete bl
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40dde0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [edx + 0x10]
push esi
lea esi, [edx + 8]
push ebx
mov ebx, edx
sub esp, 0x24
mov dword [ebp - 0x14], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
call eax
sub esp, 0x18
test eax, eax
je 0x40dea0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebx + 4]
cmp eax, 2
je 0x40de70
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x8045
mov dword [esp], eax
call sym._error_code_messagebox
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebx + 0xc], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test ecx, ecx
jne 0x40de38
mov dword [ebx + 8], 1
mov dword [ebx + 0x10], 2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
xor ecx, ecx
mov dword [ebx + 0xc], eax
mov word [eax], cx
mov eax, 1
jmp 0x40de64
mov eax, dword [ebx + 0x10]
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
call eax
sub esp, 0x18
test eax, eax
jne 0x40df08
mov eax, dword [ebx + 0x10]
test al, 1
jne 0x40def1
mov ecx, dword [ebp - 0x10]
and eax, 0xfffffffe
xor edx, edx
mov word [ecx + eax], dx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + 4]
jmp 0x40de38

Function at 0x40e220
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebx + 0x1c]
sub esp, 0x18
sub eax, 3
cmp eax, 1
jbe 0x40e290
cmp word [ebx + 0xc], 1
mov eax, 1
mov dword [ebx + 0x24], 0
sbb eax, 0xffffffff
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40e268
Function at 0x40f8d0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40f95b
cmp ax, 9
je 0x40f948
cmp ax, 0x20
je 0x40f948
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x40f9b0
cmp ax, 0x22
je 0x40f9c0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40f95b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40f900
test edi, 1
jne 0x40f900
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40f948
cmp ax, 0x20
je 0x40f948
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40f9d8
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x40f91b
and dword [ebp - 0x54], 1
jne 0x40f914
xor edi, 1
jmp 0x40f91b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40f974

Function at 0x40f9f0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x401c66
pop dword [ebp - 0x1c]
mov eax, 0x13a216de
add eax, 0xec9e0588
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x8087fcfe
add dword [ebp - 0x2c], 0xcdca484d
mov dword [ebp - 0x28], 0xfee0b50a
sub dword [ebp - 0x28], 0xccad68c5
mov dword [ebp - 0x24], 0xb7c87aaa
add dword [ebp - 0x24], 0x9483c984
mov dword [ebp - 0x20], 0x54554218
sub dword [ebp - 0x20], 0x54554218
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x271eb54a
sub dword [ebp - 0x2c], 0xb2ac4bf4
mov dword [ebp - 0x28], 0x68d91051
add dword [ebp - 0x28], 0xd8935124
mov dword [ebp - 0x24], 0xc1e7f088
add dword [ebp - 0x24], 0xa1877be4
mov dword [ebp - 0x20], 0x2082350c
add dword [ebp - 0x20], 0xdf7dcaf4
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3975a
push 0
call eax
mov ecx, 0x98e8d542
add ecx, 0x67177ea8
mov edx, eax
mov ebx, 0x407000
add ebx, dword [ebp - 0x1c]
mov edi, 0x925c116c
add edi, 0x65d93fb8
mov dword [ebp - 0x14], 0xf9d6bbe2
mov esi, dword [ebx]
sub dword [ebp - 0x14], 0xaf16864
xor esi, edi
xor dword [ebp - 0x14], edx
mov dword [edx], esi
xor dword [ebp - 8], edx
add edx, 4
add ebx, 0x4ec0a7b1
add ebx, 0xb13f5853
loop 0x401d78
add eax, 0x1427b
mov ebx, eax
add eax, 0xf81c08fd
add eax, 0x7e3f708
mov ecx, 0x66b48b2e
add ecx, 0x998b74d2
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x10003368
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10003377
pop dword [ebp - 0x34]
mov eax, 0xb5c1164a
add eax, 0x5a3f1d2d
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xc8cf13fb
sub dword [ebp - 0x44], 0x7a7cceb0
mov dword [ebp - 0x40], 0x6f5cd917
add dword [ebp - 0x40], 0xc2d6732e
mov dword [ebp - 0x3c], 0x6368ce1d
add dword [ebp - 0x3c], 0xe8e37611
mov dword [ebp - 0x38], 0x991790ea
sub dword [ebp - 0x38], 0x991790ea
lea eax, [ebp - 0x44]
push eax
mov eax, 0xa8574558
add eax, 0x67a8faf0
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x194f79c6
add dword [ebp - 0x44], 0x5b22ef90
mov dword [ebp - 0x40], 0x1bf984da
add dword [ebp - 0x40], 0x2572dc9b
mov dword [ebp - 0x3c], 0x1e4a03ef
add dword [ebp - 0x3c], 0x4525687d
mov dword [ebp - 0x38], 0x9bedf9f1
add dword [ebp - 0x38], 0x6412060f
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xa40073d4
add eax, 0x6bffcca8
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x366c3
push 0
call eax
mov ecx, 0x4ac58e6d
sub ecx, 0x4ac54729
xor ebx, ebx
add ebx, eax
mov edi, 0x4634a399
sub edi, 0x36340d99
add edi, dword [ebp - 0x34]
mov edx, 0xea660e84
sub dword [ebp - 0x2c], 0x719d38b1
mov esi, dword [edi]
sub dword [ebp - 4], eax
sub esi, edx
xor dword [ebp - 0x30], 0xff23bd45
mov dword [ebx], esi
sub dword [ebp - 0x24], 0x12fa5658
add ebx, 4
add edi, 4
loop 0x10003495
add eax, 0x368c0771
add eax, 0xc9750872
xor ebx, ebx
add ebx, eax
add eax, 0x7d8f66e2
add eax, 0x82709923
mov ecx, 0xaf96f291
add ecx, 0x60690d6f
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x341f1b18
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x342226fc]
jne 0x343468f7
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3438ee58], eax
mov dword [0x3438ee54], ecx
mov dword [0x3438ee50], edx
mov dword [0x3438ee4c], ebx
mov dword [0x3438ee48], esi
mov dword [0x3438ee44], edi
mov word [0x3438ee70], ss
mov word [0x3438ee64], cs
mov word [0x3438ee40], ds
mov word [0x3438ee3c], es
mov word [0x3438ee38], fs
mov word [0x3438ee34], gs
pushfd
pop dword [0x3438ee68]
mov eax, dword [ebp]
mov dword [0x3438ee5c], eax
mov eax, dword [ebp + 4]
mov dword [0x3438ee60], eax
lea eax, [ebp + 8]
mov dword [0x3438ee6c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3438eda8], 0x10001
mov eax, dword [0x3438ee60]
mov dword [0x3438ed5c], eax
mov dword [0x3438ed50], 0xc0000409
mov dword [0x3438ed54], 1
mov eax, dword [0x342226fc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3437bd10]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x3438eda0], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x343469fc
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x3438eda0], 0
jne 0x343469e7
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x341f1da5
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x1c]
mov dword [esi], 1
call fcn.341f1f4d
mov ebp, dword [sym.imp.kernel32.dll_InitializeCriticalSection]
lea eax, [esi + 0x58]
push eax
call ebp
xor ebx, ebx
lea edi, [esi + 0x7c]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
lea ecx, [esi + 0xa0]
mov dword [esi + 0x88], ebx
call fcn.341f1f83
lea ecx, [esi + 0xac]
push ecx
call ebp
push 0x34
lea edx, [esi + 0xd4]
push ebx
push edx
mov dword [esi + 0xd0], ebx
call sub.msvcr80.dll_memset
add esp, 0xc
lea eax, [esp + 0x24]
mov ebp, 1
push eax
mov dword [esp + 0x14], ebp
mov dword [esi + 0x88], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0x14], 3
mov dword [esi + 0x18], ebx
mov dword [esi + 0x78], ebx
mov dword [esp + 0x28], 0x20
call dword [sym.imp.kernel32.dll_GlobalMemoryStatus]
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esp + 0x48]
cmp eax, ebp
mov dword [esi + 0x74], ebx
je 0x341f1e72
lea esp, [esp]
add dword [esi + 0x74], ebp
mov ecx, dword [esi + 0x74]
mov edx, ebp
shl edx, cl
cmp edx, eax
jne 0x341f1e64
mov eax, dword [esp + 0x2c]
cmp eax, 0x4000000
jbe 0x341f1e82
mov eax, 0x4000000
mov ecx, eax
shr ecx, 0xc
cmp eax, 0xc00000
mov dword [esi + 0x8c], ecx
mov dword [esi + 0x90], 0x100
jbe 0x341f1ebc
add eax, 0xff400000
shr eax, 0xe
add eax, 0x100
cmp eax, 0xe00
mov dword [esi + 0x90], eax
ja 0x342a41e2
lea eax, [ecx + 7]
shr eax, 3
push eax
call dword [sym.imp.msvcr80.dll_malloc]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x88], eax
je 0x342a41f1
mov ecx, dword [esi + 0x8c]
add ecx, 7
shr ecx, 3
mov dword [edi + 4], ecx
add ecx, ecx
mov dword [edi], eax
mov edx, dword [edi + 8]
add ecx, ecx
lea eax, [esp + 0x10]
add ecx, ecx
push eax
push ecx
mov ecx, edi
call fcn.341f1f96
mov eax, dword [esi + 0x8c]
lea edx, [esp + 0x10]
push edx
push eax
xor edx, edx
mov ecx, edi
call fcn.341f2009
test byte [esi + 0x44], 8
lea eax, [esi + 0x44]
mov dword [esi + 0x94], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0x98], ebx
jne 0x342a4200
test dword [esp + 0x10], 0xfffffffe
jne 0x342a4239
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov dword [esi + 0x90], 0xe00
jmp 0x341f1ebc
push ebp
push 0xfffffc0d
mov ecx, esi
call fcn.341f7675
jmp 0x342a4208
push eax
mov ecx, esi
call fcn.34207602
mov eax, dword [esi + 0x88]
cmp eax, ebx
je 0x342a421c
push eax
call dword [sym.imp.msvcr80.dll_free]
add esp, 4
mov eax, dword [esi + 0x70]
cmp eax, ebx
je 0x341f1f35
push 0x8000
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualFree]
jmp 0x341f1f35
lea ecx, [esp + 0x10]
call fcn.341fd218
jmp 0x341f1f43
Function at 0x341f2ddb
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x342c50db
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x342c50db
mov esi, dword [ebp]
test esi, esi
je 0x342c50db
push ebx
mov ebx, dword [esp + 0x20]
cmp ebx, 1
jne 0x341f2e14
cmp esi, 2
jb 0x342c5006
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebp
push edi
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x341f2e69
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
jne 0x342c5012
cmp ebx, 1
jne 0x341f2e69
mov eax, dword [ebp]
cmp eax, esi
jae 0x342c5033
shr eax, 1
mov word [edi + eax*2], 0
mov ecx, dword [esp + 0x28]
cmp ecx, 2
je 0x342c5043
mov eax, dword [esp + 0x24]
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
pop ebx
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 0x18
cmp ebx, 1
jne 0x342c5020
cmp ecx, 2
je 0x341f2e49
pop ebx
pop edi
mov dword [esp + 0x1c], 0x65d
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
ret 0x18
mov edx, esi
shr edx, 1
mov word [edi + edx*2 - 2], 0
jmp 0x341f2e60
push esi
call dword [sym.imp.msvcr80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x342c505f
pop ebx
pop edi
pop esi
mov eax, 0xe
pop ebp
ret 0x18
shr esi, 1
push esi
push ebx
push edi
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x342c50b8
cmp esi, eax
lea ecx, [eax + eax]
mov dword [ebp], ecx
jae 0x342c509a
push ebx
mov word [edi], 0
mov dword [esp + 0x28], 0xea
call dword [sym.imp.msvcr80.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
push esi
push edi
push ebx
call dword [sym.imp.MSO.dll_Ordinal_6877]
push ebx
call dword [sym.imp.msvcr80.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
mov word [edi], 0
push ebx
mov dword [ebp], 0
mov dword [esp + 0x28], 0x57
call dword [sym.imp.msvcr80.dll_free]
add esp, 4
jmp 0x341f2e69
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 0x18

Function at 0x341f3bda
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x342226fc]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
push esi
mov esi, dword [esp + 0x21c]
push edi
mov edi, dword [esp + 0x228]
lea eax, [esp + 0xc]
push eax
push 0x104
mov ebp, ecx
call sub.kernel32.dll_GetTempPathW
test eax, eax
je 0x342a431e
push ebx
push 0x20a
call fcn.341f1b84
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x342a432b
mov dword [esi], ebx
test byte [edi], 8
jne 0x341f3c5c
mov ecx, dword [esp + 0x228]
push 0x105
push ebx
push ecx
push 0x341f3c78
lea edx, [esp + 0x20]
push edx
call fcn.341f3c86
test eax, eax
je 0x342a433e
pop ebx
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.341f1b18
add esp, 0x210
ret 0xc
push edi
mov ecx, ebp
call fcn.342436f3
jmp 0x341f3c5d
push 1
push 0xfffffc0d
mov ecx, edi
call fcn.341f7675
jmp 0x341f3c30
mov eax, dword [esi]
test eax, eax
je 0x342a434d
push eax
call fcn.341f4964
add esp, 4
push edi
mov ecx, ebp
mov dword [esi], 0
call fcn.342436f3
jmp 0x341f3c5c
Function at 0x341f3c86
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
ret 0x14