joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ad50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e2d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x10], esi
push edi
movq qword [esi], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.004209b7
mov dword [eax], 1
mov dword [eax + 4], 2
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [esi + 8], eax
push 4
mov byte [ebp - 4], 1
call fcn.004209b7
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [eax], ecx
lea edi, [esi + 4]
mov byte [ebp - 4], 2
push edi
push 0
push eax
push 0x41c9c0
push 0
push 0
call fcn.0042dde7
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x41adf5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.00420593
int3

Function at 0x41ae10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e30f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x10], edi
movq qword [edi], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.004209b7
mov dword [eax], 1
mov dword [eax + 4], 2
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [edi + 8], eax
push 0x1c
mov byte [ebp - 4], 1
call fcn.004209b7
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00402010
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov dword [ebp + 0xc], esi
lea ebx, [edi + 4]
mov byte [ebp - 4], 3
push ebx
push 0
push esi
push 0x41ca10
push 0
push 0
call fcn.0042dde7
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x41aece
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [ebx], 0
call fcn.00420593
int3

Function at 0x41aee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e30f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x10], edi
movq qword [edi], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.004209b7
mov dword [eax], 1
mov dword [eax + 4], 2
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [edi + 8], eax
push 0x1c
mov byte [ebp - 4], 1
call fcn.004209b7
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00402010
mov dword [esi + 0x18], 0x417760
mov dword [ebp + 0xc], esi
lea ebx, [edi + 4]
mov byte [ebp - 4], 3
push ebx
push 0
push esi
push 0x41ca10
push 0
push 0
call fcn.0042dde7
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x41af9f
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [ebx], 0
call fcn.00420593
int3
Function at 0x41cb40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e415
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
lea eax, [ebx + 0xc]
mov dword [ebx], vtable.std::_Associated_state_unsigned_long_int_.0
push eax
mov dword [ebx + 4], 1
call fcn.0041fa6e
lea eax, [ebx + 0x14]
push 2
push eax
call fcn.0042082c
lea eax, [ebx + 0x44]
push eax
call fcn.0041f0e9
mov byte [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov word [ebx + 0x74], 0
mov byte [ebx + 0x76], 0
mov dword [ebx + 0x78], 0
mov dword [ebp - 4], 0
lea edi, [ebx + 0x80]
mov dword [ebx], vtable.std::_Packaged_state_unsigned_long_int____cdecl___void__.0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
push 0x50
mov byte [ebp - 4], 1
call fcn.004209b7
mov esi, dword [ebp + 8]
add esp, 0x14
mov dword [eax], 0x44932c
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov ecx, dword [esi + 0x28]
mov dword [eax + 0x30], ecx
mov ecx, dword [esi + 0x30]
mov dword [eax + 0x38], ecx
mov ecx, dword [esi + 0x38]
mov dword [eax + 0x40], ecx
mov cl, byte [esi + 0x40]
mov byte [eax + 0x48], cl
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x24], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41d8a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e576
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
xor edi, edi
mov dword [ebp - 0x10], edx
nop dword [eax + eax]
mov eax, 1
mov ecx, edi
shl eax, cl
test edx, eax
je 0x41da50
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0x4493a0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.00401e30
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
add word [eax], di
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x41d96f
cmp eax, 3
je 0x41d96f
cmp eax, 6
jne 0x41da13
mov ecx, dword [ebp - 0x20]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x41da6c
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push ecx
cmovae eax, dword [ebp - 0x30]
push eax
push 4
push str.__
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.004082c0
or dword [ebp - 0x14], 2
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x41d9e0
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41d9d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41da71
push ecx
push edx
call fcn.004209ec
add esp, 8
movups xmm0, xmmword [ebp - 0x48]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x30]
push ecx
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [ebp - 0x20], xmm0
cmp eax, dword [esi + 8]
je 0x41da0b
mov ecx, eax
call fcn.00402010
add dword [esi + 4], 0x18
jmp 0x41da13
push eax
mov ecx, esi
call fcn.0041eca0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x41da4d
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41da43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41da71
push ecx
push edx
call fcn.004209ec
add esp, 8
mov edx, dword [ebp - 0x10]
inc edi
cmp edi, 0x1a
jb 0x41d900
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00401660
call fcn.0042cebf
int3
Function at 0x41da80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e5be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x848
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x2c], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
xor esi, esi
mov dword [ebp - 0x10], edx
nop dword [eax + eax]
mov eax, 1
mov ecx, esi
shl eax, cl
test edx, eax
je 0x41dc64
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x4493a0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00401e30
mov dword [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
add word [eax], si
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x41dc27
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x854]
mov dword [ebp - 0x30], 0x404
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x41dc19
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x854]
movups xmmword [ebp - 0x48], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41db87
sub eax, edx
lea ecx, [ebp - 0x48]
sar eax, 1
push eax
lea eax, [ebp - 0x854]
push eax
call fcn.00401e30
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x41dbd4
movups xmm0, xmmword [ebp - 0x48]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edi + 4], 0x18
mov word [ebp - 0x48], ax
jmp 0x41dbe3
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, edi
call fcn.0040b970
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x41dc27
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41dc10
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dc80
push ecx
push edx
call fcn.004209ec
jmp 0x41dc24
push eax
push str.____WNetGetConnection_failed_0x_X_n
call fcn.00401d10
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41dc61
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41dc57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dc80
push ecx
push edx
call fcn.004209ec
add esp, 8
mov edx, dword [ebp - 0x10]
inc esi
cmp esi, 0x1a
jb 0x41dae0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0042cebf
int3
Function at 0x41e090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e5dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
push 0x65
push str.____Get_resource_with_id__i_and_type__s..._n
mov dword [ebp - 0x1c], ebx
call fcn.00401d10
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x41e202
push dword [ebp + 8]
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41e202
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41e202
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41e202
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 0x14], ecx
xor esi, esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x41e160
cmp eax, 0x7fffffff
ja 0x41e23f
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409240
mov esi, dword [ebp - 0x10]
push esi
push edi
mov edi, dword [ebp - 0x2c]
push edi
call fcn.00422520
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add esi, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], esi
sub esi, edi
mov dword [ebp - 4], 0
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
push edi
call fcn.00421fa0
mov byte [ebx], 1
add esp, 0xc
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
test esi, esi
je 0x41e1c2
cmp esi, 0x7fffffff
ja 0x41e244
push esi
lea ecx, [ebx + 4]
call fcn.00409240
push dword [ebp - 0x10]
mov esi, dword [ebx + 4]
push edi
push esi
call fcn.00421fa0
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov dword [ebx + 8], eax
test edi, edi
je 0x41e22c
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x41e1e5
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e249
push ecx
push edi
call fcn.004209ec
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push 0x65
push str.____Resource_with_id__i_and_type__s_not_found_n
call fcn.00401d10
mov byte [ebx], 0
add esp, 0xc
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004057e0
call fcn.004057e0
call fcn.0042cebf
int3
Function at 0x41e250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x70
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push str.____Run_sync_command:__s_n
call fcn.00401d10
push 0x40
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x44
push 0
push eax
call fcn.00422520
add esp, 0x14
lea ecx, [esp + 0x10]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
xorps xmm0, xmm0
cmovae eax, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x2c]
movaps xmmword [esp + 0x14], xmm0
push ecx
push 0
push 0
push 0x200
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41e2e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push eax
cmovae ecx, dword [ebp + 8]
push ecx
push str.____Failed_to_run_sync_command:__s__error_0x_X_n
call fcn.00401d10
add esp, 0xc
mov byte [esp + 0xf], 0
jmp 0x41e301
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xf], 1
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x41e337
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e32d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e33f
push ecx
push edx
call fcn.004209ec
add esp, 8
mov al, byte [esp + 0xf]
mov esp, ebp
pop ebp
ret
call fcn.0042cebf
int3
Function at 0x41e6a0
Capabilities:
Create process on windows
Create process suspended
Get explorer pid
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e53d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push str.____RunNonElevated:__s_n
call fcn.00401d10
add esp, 8
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x18]
push 0
push 0x80
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 1
push 0
call esi
push dword [ebp - 0x10]
call fcn.004209fa
add esp, 4
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 0
push 1
push edi
call esi
push 0
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push 0x20000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x2c], edi
push ecx
push 0
push 0
push 0x80010
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0x48
push 0
lea eax, [ebp + 8]
movlpd qword [ebp - 0x6c], xmm0
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
jne 0x41e7ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push eax
cmovae ecx, dword [ebp + 8]
push ecx
push str.____Failed_to_RunNonElevated:__s__error_0x_X_n
call fcn.00401d10
add esp, 0xc
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
push edi
call fcn.004209b2
add esp, 4
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp + 0x1c]
test ebx, ebx
setne bl
cmp ecx, 8
jb 0x41e823
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e819
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e836
push ecx
push edx
call fcn.004209ec
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0042cebf
int3

Function at 0x41efa7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0041ef83
pop esi
leave
ret 8
Function at 0x4215bc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4215fb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4215fb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4215fb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4215fb
cmp dword [ecx + 0x74], 0xe
jbe 0x4215fb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x431bb2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444074
push 0x44406c
push str.FlsAlloc
push 0x1f
call fcn.00431a31
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431be6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4402a8]
call esi
jmp 0x431bec
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x431c30
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444084
push 0x44407c
push str.FlsGetValue
push 0x21
call fcn.00431a31
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431c67
push dword [ebp + 8]
mov ecx, esi
call dword [0x4402a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x431c6f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44408c
push 0x444084
push str.FlsSetValue
push 0x22
call fcn.00431a31
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431ca9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4402a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x433a67
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4500e0]
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 0x433ab2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00433c02
test al, al
jne 0x433aac
sub edx, 2
cmp edx, edi
jne 0x433a92
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x433ad4
lea eax, [edi + 2]
cmp edx, eax
je 0x433ad4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004339b3
add esp, 0x10
jmp 0x433bce
push esi
lea ecx, [ebp - 0x255]
call fcn.00433c02
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 0x433b17
push dword [ebp - 0x25c]
jmp 0x433ac4
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 0x433b54
cmp word [ebp - 0x226], 0
je 0x433b75
cmp word [ebp - 0x226], ax
jne 0x433b54
cmp word [ebp - 0x224], 0
je 0x433b75
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004339b3
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x433bc1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x433b2e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x433ba9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x433bce
push 0x4337e3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00439ac0
add esp, 0x10
jmp 0x433b9e
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.00421092
leave
ret
Function at 0x434689
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 0x434726
push ebx
push esi
call fcn.00434652
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.004345e6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4346d3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434725
push edi
push eax
call fcn.0042fa2c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4346f3
call fcn.0042f9f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434724
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004345e6
add esp, 0x20
test eax, eax
jne 0x434712
push edi
call fcn.0042f9f2
jmp 0x43471a
push ebx
call fcn.0042f9f2
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 0x434729
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43473a
pop esi
ret
push ebx
push edi
push esi
call fcn.00434652
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042fa2c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x434762
push ebx
push esi
push edi
call fcn.00421fa0
add esp, 0xc
push 0
call fcn.0042f9f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x434ebc
Capabilities:
Set environment variable

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