joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477b52
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x477bef
push ebx
push esi
call fcn.00477b0e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00474fec
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x477b9c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x477bee
push edi
push eax
call fcn.0046e98c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x477bbc
call fcn.0046cb21
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x477bed
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00474fec
add esp, 0x20
test eax, eax
jne 0x477bdb
push edi
call fcn.0046cb21
jmp 0x477be3
push ebx
call fcn.0046cb21
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x477bf2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x477c03
pop esi
ret
push ebx
push edi
push esi
call fcn.00477b0e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046e98c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x477c2b
push ebx
push esi
push edi
call fcn.00430110
add esp, 0xc
push 0
call fcn.0046cb21
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x47850c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00477e9e

Function at 0x478993
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00478867

Function at 0x484a60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x484a8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x484a8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x854
push ebx
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
push 0x400
push eax
push 0
mov dword [esp + 0x28], 0x44
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
test ecx, ecx
jle 0x401056
mov al, byte [esp + ecx + 0x60]
mov byte [esp + ecx + 0x60], 0
cmp al, 0x5c
je 0x401056
dec ecx
test ecx, ecx
jg 0x401044
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
test ecx, ecx
jle 0x40107b
cmp byte [esp + ecx + 0x60], 0x5c
je 0x40107b
mov byte [esp + ecx + 0x60], 0
dec ecx
test ecx, ecx
jg 0x40106a
or ecx, 0xffffffff
mov edi, str.FSCOMMAND_
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x460]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x460]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.FH_Client_Installer.exe]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x64]
push ecx
push edx
push 0
push 0x4000020
push 0
push 0
push 0
lea eax, [esp + 0x480]
push 0x4054d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x854
ret 0x10
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0xdc6e24
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdc6e2e
pushal
call 0xdc6e34
pop ebp
sub ebp, 0x10
sub ebp, 0x9c6e24
jmp 0xdc6e4a
mov eax, 0x9c6e24
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c9
mov edx, 0xa4ee38d5
xor byte [eax], dl
inc eax
dec ecx
jne 0xdc6e61
jmp 0xdc6e74
pop esi
sbb byte [esi + 0x5c], bl
jmp 0x55b24452
Function at 0x402426
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa0
xor ebx, ebx
lea eax, [ebp - 0xa8]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x2bc], ebx
lea eax, [ebp - 0x2bc]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x401128
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call fcn.004025ac
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4024c1
lea eax, [ebp - 0x2b8]
push eax
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 8
lea eax, [ebp - 0x2b8]
push eax
push 3
push ebx
push 0x401258
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push ebx
push 0x146
push 0xc9
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor esi, esi
movzx edi, ax
inc esi
cmp esi, edi
ja 0x402506
lea eax, [ebp - 0xa8]
push eax
lea eax, [esi - 1]
push eax
push 0x148
push 0xc9
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x40250f
xor eax, eax
mov word [ebp - 0xa8], ax
push esi
push 0x401238
lea eax, [ebp - 0x2a8]
push 0x200
push eax
call fcn.00401930
add esp, 0x10
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xa8]
push eax
push 1
push ebx
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc esi
cmp esi, 0x14
jbe 0x4024df
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 2
push str.DIALER.HLP
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_WinHelpW]
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x407cf8], ebx
xor ecx, ebp
pop ebx
call fcn.00405b90
leave
ret

Function at 0x405e20
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x406200
call fcn.0040611c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x405e80
cmp eax, 0xffffffff
je 0x405e80
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x405e79
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x405e79
cmp edx, 0x10000000
jae 0x405e79
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x405e76
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10017050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.10017040
push ebp
push 0x1000ed20
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10017168
mov al, byte [ebp - 0x110]
test al, al
je 0x10017131
lea eax, [ebp - 0xc]
call fcn.10002840
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100034a0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.100066b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100071e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x100170ba
mov ecx, ebp
call fcn.1000ebe0
jmp 0x10017168
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x10017131
mov ecx, ebp
call fcn.1000ebe0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10017234
mov al, byte [ebp - 0x110]
test al, al
je 0x100171fd
lea eax, [ebp - 0xc]
call fcn.10002840
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100034a0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.100066b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100071e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x10017186
mov ecx, ebp
call fcn.1000ebe0
jmp 0x10017234
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x100171fd
mov ecx, ebp
call fcn.1000ebe0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.10016cd0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.10017040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100170ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.10017040
push ebp
push 0x1000ed20
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10017168
mov al, byte [ebp - 0x110]
test al, al
je 0x10017131
lea eax, [ebp - 0xc]
call fcn.10002840
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100034a0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.100066b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100071e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x100170ba
mov ecx, ebp
call fcn.1000ebe0
jmp 0x10017168
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x10017131
mov ecx, ebp
call fcn.1000ebe0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10017234
mov al, byte [ebp - 0x110]
test al, al
je 0x100171fd
lea eax, [ebp - 0xc]
call fcn.10002840
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100034a0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.100066b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100071e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x10017186
mov ecx, ebp
call fcn.1000ebe0
jmp 0x10017234
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x100171fd
mov ecx, ebp
call fcn.1000ebe0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.10016cd0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.10017040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10017131
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.10017040
push ebp
push 0x1000ed20
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10017168
mov al, byte [ebp - 0x110]
test al, al
je 0x10017131
lea eax, [ebp - 0xc]
call fcn.10002840
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100034a0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.100066b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100071e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x100170ba
mov ecx, ebp
call fcn.1000ebe0
jmp 0x10017168
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x10017131
mov ecx, ebp
call fcn.1000ebe0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10017234
mov al, byte [ebp - 0x110]
test al, al
je 0x100171fd
lea eax, [ebp - 0xc]
call fcn.10002840
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.100034a0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.100066b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.100071e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x10017186
mov ecx, ebp
call fcn.1000ebe0
jmp 0x10017234
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x10030900
call fcn.10014430
mov edx, 0x100171fd
mov ecx, ebp
call fcn.1000ebe0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.10016cd0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.10017040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10023c40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x28]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
xor eax, eax
push fcn.10023c20
push ebp
push 0x1000ed20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.10005e30
xor eax, eax
push 0x10023d5e
push ebp
push 0x1000f0a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.10023bd0
cmp dword [ebp - 8], 0
je 0x10023cb4
push 0
mov edx, dword [ebp - 8]
lea eax, [ebp - 8]
mov ecx, 0x10032d30
call fcn.10005f30
jmp 0x10023cc1
lea eax, [ebp - 8]
mov edx, 0x10032d40
call fcn.10005e30
mov dword [ebp - 0xc], 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10023cea
mov eax, 0x10037310
push eax
call sub.kernel32.dll_GetVolumeInformationA
lea eax, [ebp - 0x24]
call fcn.10002840
lea eax, [ebp - 0x28]
call fcn.10002840
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x28]
mov eax, 8
call fcn.1000fc50
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call dword [0x100371dc]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
call fcn.1000fb00
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x10023d37
mov eax, dword [eax - 4]
cmp eax, 8
je 0x10023d48
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.10005e30
jmp 0x10023d53
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x10023d6d
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x10023d6d
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.10023c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10029e00
Capabilities:
Hash data with md5

Disassembly:
push ebx
push esi
mov esi, eax
mov ebx, edx
mov eax, esi
xor cl, cl
mov edx, 0x78
call fcn.100023d0
mov dword [esi], ebx
mov eax, ebx
test ebx, ebx
je 0x10029e88
sub eax, 1
jb 0x10029e98
sub eax, 1
ja 0x10029e98
mov esi, esi
cmp ebx, 1
jne 0x10029e3f
mov eax, 0x10029840
mov dword [esi + 4], eax
jmp 0x10029e47
mov eax, 0x100290c0
mov dword [esi + 4], eax
mov dword [esi + 8], 0x40
mov dword [esi + 0xc], 0x67452301
mov dword [esi + 0x10], 0xefcdab89
mov dword [esi + 0x14], 0x98badcfe
mov dword [esi + 0x18], 0x10325476
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
jmp 0x10029e98
mov dword [esi + 8], 0x10
mov eax, 0x10029740
mov dword [esi + 4], eax
nop
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push edi
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call sub.ntdll.dll_memset
xor eax, eax
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x1c
stosb byte es:[edi], al
pop eax
mov dword [ebp - 4], 1
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40105c
push 0x97
push 0x1b
mov edx, 0x40ade0
call fcn.00404340
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4010e4
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40107c
push 0x8003
lea ecx, [ebp - 0x14]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00402217
test eax, eax
je 0x4010e4
xor al, al
lea edi, [ebp - 0x118]
mov ecx, 0x104
rep stosb byte es:[edi], al
lea eax, [ebp - 0x118]
lea edi, [ebp - 0x14]
call fcn.004022ec
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x4010e4
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
test ax, ax
je 0x4010e4
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x11c]
pop edi
leave
ret

Function at 0x4010f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x207]
push ebx
push eax
mov byte [ebp - 0x208], bl
call sub.ntdll.dll_memset
add esp, 0x18
inc esi
push esi
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmp eax, ebx
je 0x401152
mov byte [eax - 1], bl
lea eax, [ebp - 0x104]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4011c1
lea eax, [ebp - 0x208]
push eax
lea ebx, [ebp - 0x104]
call fcn.00403ba9
test eax, eax
je 0x4011bf
mov edi, ebx
call fcn.00403c35
test eax, eax
je 0x4011bf
mov eax, ebx
push eax
call fcn.00403d24
test eax, eax
jne 0x4011a2
inc eax
mov dword [0x431984], eax
mov dword [0x43198c], eax
jmp 0x4011bf
push esi
lea eax, [ebp - 0x104]
push eax
push str.C:ProgramData42248jjbbd.exe
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [0x431984], 1
xor ebx, ebx
mov edi, str.C:ProgramData42248jjbbd.exe
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4011cb
sub eax, edx
cmp eax, ebx
jne 0x4011e1
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop edi
pop esi
pop ebx
leave
ret