joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42222c
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 0x4222c9
push ebx
push esi
call fcn.004221f5
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.00422189
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422276
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4222c8
push edi
push eax
call fcn.0041fcec
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x422296
call fcn.0041fcb2
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4222c7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00422189
add esp, 0x20
test eax, eax
jne 0x4222b5
push edi
call fcn.0041fcb2
jmp 0x4222bd
push ebx
call fcn.0041fcb2
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 0x428060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42808d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42808d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x402f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4207a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x42c6dc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x42c6dc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4030d4
cmp byte [ebx + 0x45], 0
je 0x4030d4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402fe0
xor al, al
jmp 0x4030d6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x403020
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403061
dec eax
je 0x403065
sub eax, 2
je 0x4030bb
xor bl, bl
jmp 0x4030bd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x40309c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.00409f33
add esp, 0x10
cmp esi, eax
jne 0x40305d
cmp byte [ebx + 0x45], 0
je 0x4030bb
test esi, esi
jne 0x403020
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00402bf0
jmp 0x403020
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4030d0
push dword [esp + 0x18]
call fcn.00409325
add esp, 4
mov al, bl
jmp 0x4030d6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004090af
mov esp, ebp
pop ebp
ret
Function at 0x4058c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5dc
mov eax, dword [0x42c6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push str.http:__
push edi
mov dword [ebp - 0x5d4], edx
call fcn.0040a810
mov esi, eax
add esp, 8
test esi, esi
je 0x4058f7
add esi, 7
jmp 0x4058f9
mov esi, edi
push 0x427ec0
push esi
call fcn.0040a810
add esp, 8
test eax, eax
je 0x4059c8
push 0x427ec0
push esi
call fcn.0040a810
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0040aaf8
push 0x427ec0
push esi
call fcn.0040a810
push eax
lea eax, [ebp - 0x1d0]
push 0x104
push eax
call fcn.004090be
add esp, 0x2c
lea eax, [ebp - 0x5d0]
push 0
push 1
push 0x400
push eax
lea edx, [ebp - 0x1d0]
lea ecx, [ebp - 0x48]
call fcn.00405220
add esp, 0x10
test al, al
je 0x4059c8
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x5d0]
call fcn.00405160
add esp, 8
test al, al
je 0x4059c8
lea eax, [ebp - 0xc8]
push eax
call fcn.0040ab9c
add esp, 4
mov ebx, eax
push ebx
call fcn.0040845b
add esp, 4
mov esi, eax
push 1
push 0
push ebx
push esi
lea edx, [ebp - 0x1d0]
lea ecx, [ebp - 0x48]
call fcn.00405220
add esp, 0x10
test al, al
jne 0x4059db
push esi
call fcn.00409b60
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004090af
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x5d4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4059bf
push 0
lea eax, [ebp - 0x5d8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00409b60
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
mov al, 1
pop ebx
call fcn.004090af
mov esp, ebp
pop ebp
ret
Function at 0x406ee0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x42c6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40
lea eax, [ebp - 0x154]
push 0
push eax
mov dword [ebp - 0x158], 0x44
call fcn.0040ddf0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x158]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
mov dword [ebp - 0x12c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407340
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x42c6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x42f1b0
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.004090be
push 0x428158
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.00409113
push 0x427f18
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.00409113
add esp, 0x24
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407447
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x407447
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [ebp - 0x31c], 0x2e
je 0x40742e
push 0x42f1b0
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.004090be
push 0x427f14
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.00409113
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.00409113
add esp, 0x24
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call ebx
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call esi
cmp eax, 0x12
jne 0x4073d1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004090af
mov esp, ebp
pop ebp
ret
Function at 0x407460
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x42c6dc]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x10
mov ebx, eax
call fcn.0040845b
push str.FirewallGUI.exe
mov edi, eax
push 0x10
push edi
call fcn.004090be
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x4075a1
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x4075a1
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
jmp 0x4074e0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4074e0
sub ecx, esi
je 0x407513
jmp 0x4074f0
mov al, byte [edx + edi]
cmp al, 0x41
jl 0x407500
cmp al, 0x5a
jg 0x407500
add al, 0x20
mov byte [edx + edi], al
mov eax, edi
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407506
sub eax, esi
cmp edx, eax
jb 0x4074f0
lea ecx, [esp + 0x34]
xor edx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407520
sub ecx, esi
je 0x40755d
jmp 0x407530
mov al, byte [esp + edx + 0x34]
cmp al, 0x41
jl 0x407542
cmp al, 0x5a
jg 0x407542
add al, 0x20
mov byte [esp + edx + 0x34], al
lea ecx, [esp + 0x34]
inc edx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407550
sub ecx, esi
cmp edx, ecx
jb 0x407530
mov ecx, edi
lea eax, [esp + 0x34]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407583
test dl, dl
je 0x40757f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407583
add eax, 2
add ecx, 2
test dl, dl
jne 0x407563
xor eax, eax
jmp 0x407588
sbb eax, eax
or eax, 1
test eax, eax
je 0x4075c8
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x4074d4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00409b60
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004090af
mov esp, ebp
pop ebp
ret
push edi
call fcn.00409b60
mov ecx, dword [esp + 0x140]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004090af
mov esp, ebp
pop ebp
ret
Function at 0x4183db
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c6dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040e09a
mov dword [ebp - 0x14], eax
cmp dword [0x42f050], edi
jne 0x4184cc
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x418459
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4185ac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4185ac
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4185ac
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x42f050], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42f054], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42f058], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42f060], eax
test eax, eax
je 0x4184c9
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42f05c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4184f1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4184e4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x418506
push 4
pop eax
jmp 0x4185ae
cmp dword [ebp - 0x14], edi
je 0x418506
push dword [0x42f050]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4184eb
mov eax, dword [0x42f05c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x418564
cmp dword [0x42f060], esi
je 0x418564
push eax
call ebx
push dword [0x42f060]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x418564
test eax, eax
je 0x418564
call ecx
test eax, eax
je 0x418559
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x418559
test byte [ebp - 8], 1
jne 0x418564
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x418594
mov eax, dword [0x42f054]
cmp eax, esi
je 0x418591
push eax
call ebx
test eax, eax
je 0x418591
call eax
mov edi, eax
test edi, edi
je 0x418591
mov eax, dword [0x42f058]
cmp eax, esi
je 0x418591
push eax
call ebx
test eax, eax
je 0x418591
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x42f050]
call ebx
test eax, eax
je 0x4185ac
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4185ae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004090af
leave
ret
Function at 0x41be93
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00412fa6
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41becb
xor eax, eax
jmp 0x41bef7
cmp esi, dword [ebp - 4]
je 0x41bef4
cmp dword [ebp + 0xc], 0
je 0x41bef4
push dword [edi + 0x9c]
call fcn.0041baa1
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040e444
pop ecx
pop ecx
cmp esi, eax
je 0x41bec7
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
push ebx
sub esp, 0x44
mov eax, 0x401023
mov ecx, 0
mov bl, byte [eax]
add bl, 0x63
mov byte [eax], bl
add eax, 1
add ecx, 1
cmp ecx, 0xd137
jne 0x40100e
push ebp
popfd
popfd
ficomp word [ebp - 0x626262aa]
popfd
daa
mov ch, 0x1d
pushal
test byte [0x9e5e20b5], ah
sbb eax, 0xb5258460
and byte [esi - 0x62], bl
and byte [ebp - 0x62], bl
push ds
xchg esi, eax
pushfd
les ebx, [ebp + 0x5588129d]
popfd
lodsd eax, dword [esi]
fstp qword [ebp + 0x60606058]
pushal
mov ch, 0x55
jb 0x4010c8
fstp qword [ebp + 0x209d5d20]
popal
loope 0x400ff6
insd dword es:[edi], dx
pushal
clc
pushal
test dword [edx - 0x79626263], esp
cmpsd dword [esi], dword es:[edi]
popfd
popfd
popfd
push esi
jne 0x40102f
ficomp word [ebp - 0x62adf77a]
popfd
add eax, 0x9dddad1b
test esp, ecx
popf
popfd
mul byte [eax + 0x56]
jne 0x401045
ficomp word [ebp - 0x62bd847a]
popfd
test dword [edx - 0x79626263], esp
cmpsd dword [esi], dword es:[edi]
popfd
popfd
popfd
push esi
movsd dword es:[edi], dword [esi]
invalid
lodsd eax, dword [esi]
fstp qword [ebp - 0x629a877b]
popfd
mul byte [eax + 0x56]
cmc
invalid
Function at 0x406ad8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d400]
jne 0x406ae2
repz ret
jmp fcn.00408a36

Function at 0x407263
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040529d
and dword [ebp - 0x14], 0
cmp dword [0x43bff4], 0
mov dword [ebp - 0x18], eax
jne 0x407316
push 0x4021a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4073be
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402194
push ebx
call edi
test eax, eax
je 0x4073be
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402184
push ebx
mov dword [0x43bff4], eax
call edi
push eax
call esi
push 0x402170
push ebx
mov dword [0x43bff8], eax
call edi
push eax
call esi
push 0x402154
push ebx
mov dword [0x43bffc], eax
call edi
push eax
call esi
mov dword [0x43c004], eax
test eax, eax
je 0x407316
push 0x40213c
push ebx
call edi
push eax
call esi
mov dword [0x43c000], eax
mov eax, dword [0x43c000]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40736f
cmp dword [0x43c004], ecx
je 0x40736f
push eax
call esi
push dword [0x43c004]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40736f
test ebx, ebx
je 0x40736f
call edi
test eax, eax
je 0x407366
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407366
test byte [ebp - 8], 1
jne 0x40736f
or dword [ebp + 0x10], 0x200000
jmp 0x4073a2
mov eax, dword [0x43bff8]
cmp eax, dword [ebp - 0x18]
je 0x4073a2
push eax
call esi
test eax, eax
je 0x4073a2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4073a2
mov eax, dword [0x43bffc]
cmp eax, dword [ebp - 0x18]
je 0x4073a2
push eax
call esi
test eax, eax
je 0x4073a2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43bff4]
call esi
test eax, eax
je 0x4073be
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4073c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ad8
leave
ret
Function at 0x409db0
Capabilities:
Copy file
Get uefi variable

Disassembly:
sub esp, 0xe3c
cmp dword [0x4b7b58], 0x37
jne 0x409e35
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
push 0x402a58
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push 0
lea ecx, [esp + 0x23c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea edx, [esp]
push edx
push 0
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
lea ecx, [esp + 0x63c]
push ecx
push 0x402a7c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov edx, dword [0x4b7b5c]
mov ecx, dword [0x4b723c]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0xe3c
ret

Function at 0x409ec0
Capabilities:
Decrypt data using tea

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
mov ecx, dword [0x43b1ac]
push ebx
mov ebx, dword [0x43b1a4]
push ebp
mov ebp, dword [0x43b1a8]
push esi
mov esi, dword [eax]
mov eax, dword [0x43b1a0]
push edi
mov edi, 0xc6ef3720
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0x20
lea esp, [esp]
mov eax, esi
shl eax, 4
mov ecx, esi
add eax, ebp
shr ecx, 5
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], eax
lea eax, [edi + esi]
push eax
lea ecx, [esp + 0x14]
mov dword [0x4b7240], 0xffcf03fc
call fcn.00409e60
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x10]
mov dword [0x4b7240], 0
sub edx, eax
mov ecx, edx
shl ecx, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x20]
add dword [esp + 0x10], eax
mov eax, edx
shr eax, 5
add eax, ebx
lea ecx, [edi + edx]
xor ecx, eax
mov eax, dword [esp + 0x10]
xor eax, ecx
sub esi, eax
cmp dword [0x4b7b58], 0x93
mov dword [0x4b7248], 0xff6b3619
mov dword [0x4b724c], 0xffffffff
je 0x409f96
add edi, 0x61c88647
dec dword [esp + 0x18]
jne 0x409f00
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 4], edx
pop ebx
add esp, 0x14
ret 4
Function at 0x40a310
Capabilities:
Copy file

Disassembly:
cmp dword [0x4b7b58], 0x422
jne 0x40a3a0
push 0
push 0
push 0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [0x4b7b58], 0x3a
jne 0x40a349
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
push 0
push 0
push 0
call fcn.00402d23
push 0x402b84
push 0
call fcn.00402d23
push 0
call fcn.00402cf3
push 0
push 0
call fcn.00402c80
push 0
call fcn.00402cf3
push 0x402b90
push 0x402b94
push 0x43c338
call fcn.00402d23
push 0
push 0
call fcn.00402cb3
push 0
push 0
call fcn.00402de0
add esp, 0x40
mov eax, dword [0x43b6a8]
mov ecx, dword [0x43b69c]
mov dword [0x4b7b58], eax
mov dword [0x4b7b5c], ecx
call fcn.00409ff0
xor eax, eax
ret 0x10
Function at 0x404c4a
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x404c91
cmp ebx, 0x20
je 0x404c91
cmp ebx, 0xffffffe0
je 0x404c91
jne 0x404c9a
add eax, 1
cmp esi, eax
je 0x404ca7
jne 0x404c76
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x404cab
jne 0x404c72
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x404cbf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x404d80
test ecx, ecx
je 0x404d80
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x404d80
test ebx, ebx
je 0x404d80
mov ebx, eax
add ebx, edx
je 0x404d80
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x404d80
cmp dword [edx + eax + 0x14], 0
je 0x404d80
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x404d80
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x404d70
test dl, dl
je 0x404d6c
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x404d70
add edi, 2
add esi, 2
test dl, dl
jne 0x404d50
xor eax, eax
jmp 0x404d75
sbb eax, eax
or eax, 1
test eax, eax
je 0x404d8c
inc ebp
cmp ebp, dword [esp + 4]
jb 0x404d3d
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8