joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001efa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024040
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x1002b134]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x10], 0
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.10001460
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0
call fcn.10006850
movzx edx, al
test edx, edx
je 0x1001f050
push 0x100275cc
mov ecx, dword [ebp + 8]
call fcn.10006770
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x240]
or eax, 1
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100014a0
mov eax, dword [ebp + 8]
jmp 0x1001f11f
lea ecx, [ebp - 0x238]
call fcn.10002220
lea ecx, [ebp - 0x238]
sub eax, 1
push eax
call fcn.10006820
mov cx, word [eax]
mov word [ebp - 0x23c], cx
movzx edx, word [ebp - 0x23c]
cmp edx, 0x5c
je 0x1001f09c
movzx eax, word [ebp - 0x23c]
cmp eax, 0x2f
je 0x1001f09c
push 0x100275d0
lea ecx, [ebp - 0x238]
call fcn.100067d0
lea ecx, [ebp - 0x238]
call fcn.100014c0
push eax
call fcn.1001ee20
mov dword [ebp - 0x10], eax
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x1001f0ec
push 0x100275d4
mov ecx, dword [ebp + 8]
call fcn.10006770
lea ecx, [ebp - 0x238]
mov ebx, dword [ebp - 0x240]
or ebx, 1
mov dword [ebp - 0x240], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.100014a0
mov eax, dword [ebp + 8]
jmp 0x1001f11f
lea edx, [ebp - 0x238]
push edx
mov ecx, dword [ebp + 8]
call fcn.10006750
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x238]
or eax, 1
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100014a0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov dword fs:[0], ebx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000bda4
mov esp, ebp
pop ebp
ret
Function at 0x1001f740
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023efb
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x1002b134]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
lea eax, [ebp - 0x232]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x238], 0
mov word [ebp - 0x234], 0
push 0x208
push 0
push eax
call fcn.1000c060
lea ecx, [ebp - 0x1c]
add esp, 0xc
call fcn.100013c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0x20a
push ecx
push 0x20019
push 0
push str.SoftwareTencentQQPCMgr
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001f93a
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x234]
push eax
push ecx
push 0
push str.InstallDir
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001f930
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100034a0
push str.QQPCtray.exe
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x240]
push edx
push eax
call fcn.10005d30
add esp, 0xc
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x254], edx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x24c]
or edx, 1
mov dword [ebp - 0x24c], edx
mov ecx, dword [ebp - 0x254]
call fcn.100061c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or eax, eax
je 0x1001f8c4
push str.QQPCMgr.exe
lea ecx, [ebp - 0x244]
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.10005d30
mov dword [ebp - 0x258], eax
add esp, 0xc
mov edx, dword [ebp - 0x24c]
or edx, 2
mov dword [ebp - 0x24c], edx
mov ecx, dword [ebp - 0x258]
call fcn.100061c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001f8c4
mov dword [ebp - 0x25c], 1
jmp 0x1001f8ce
mov dword [ebp - 0x25c], 0
mov al, byte [ebp - 0x25c]
mov byte [ebp - 0x239], al
mov ecx, dword [ebp - 0x24c]
and ecx, 2
je 0x1001f8f7
lea ecx, [ebp - 0x244]
and dword [ebp - 0x24c], 0xfffffffd
call fcn.10005cb0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24c]
and edx, 1
je 0x1001f91b
and dword [ebp - 0x24c], 0xfffffffe
lea ecx, [ebp - 0x240]
call fcn.10005cb0
movzx eax, byte [ebp - 0x239]
test eax, eax
je 0x1001f930
mov dword [ebp - 0x238], 1
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x248], edx
mov dword [ebp - 4], 0xffffffff
call fcn.10005cb0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x248]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1000bda4
mov esp, ebp
pop ebp
ret
Function at 0x10020110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023e8e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x1002b134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0x104
lea ecx, [ebp - 0x228]
call fcn.100013c0
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 1
mov word [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.1000c060
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x100201c6
lea ecx, [ebp - 0x228]
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x238], edx
mov dword [ebp - 4], 0xffffffff
call fcn.10005cb0
mov eax, dword [ebp - 0x238]
jmp 0x1002023b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.100014c0
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.100039f0
sub esp, 0xfffffff4
lea ecx, [ebp - 0x228]
call fcn.100061c0
lea ecx, [ebp - 0x224]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x224]
push edx
mov ecx, dword [ebp + 8]
call fcn.100034a0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x234], 1
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10005cb0
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000bda4
mov esp, ebp
pop ebp
ret
Function at 0x402780
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x428470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
lea eax, [ebp - 0x414]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.__service
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.Intergy_Installer
push str.Intergy_Installer
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov edi, eax
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], str.Runs_Intergy_setup_programs
push eax
push 1
push edi
call ebx
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x444]
push eax
push 2
push edi
mov dword [ebp - 0x428], 0xea60
mov dword [ebp - 0x424], 1
mov dword [ebp - 0x420], 0xea60
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x418], 0xea60
mov dword [ebp - 0x444], 0x15180
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 3
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x40289e
push edi
call ebx
test esi, esi
je 0x4028a5
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407988
mov esp, ebp
pop ebp
ret
Function at 0x402df0
Capabilities:
Query service status
Stop service

Disassembly:
push ebx
push esi
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x20
mov edi, eax
push str.Intergy_Installer
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x429a60
mov esi, eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [0x429a64], 1
je 0x402e51
jmp loc.00430838
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x402e5e
push esi
call ebx
test edi, edi
je 0x402e65
push edi
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x403030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41db88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x428470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x403155
cmp byte [ebx + 0x45], 0
je 0x403155
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x403084
xor al, al
jmp 0x403157
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4030ee
dec eax
je 0x4030f2
sub eax, 2
je 0x40313e
xor bl, bl
jmp 0x403140
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x403124
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00406ad6
add esp, 0x10
cmp esi, eax
jne 0x4030ea
cmp byte [ebx + 0x45], 0
je 0x40313e
test esi, esi
jne 0x4030b4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00403930
jmp 0x4030b4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x403151
push dword [ebp - 0x28]
call fcn.00405f92
add esp, 4
mov al, bl
jmp 0x403157
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407988
mov esp, ebp
pop ebp
ret
Function at 0x404770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dd08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x428470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x4047ac
xor eax, eax
jmp 0x40493c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x4047da
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x4047da
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x40493c
cmp dword [ebx + 0x50], 0
jne 0x4047e8
or eax, 0xffffffff
jmp 0x40493c
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [esi], eax
jne 0x404809
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [esi], ecx
sub edx, ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x40], 0
jne 0x40482e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.0040670c
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x40493c
mov byte [ebp - 0x2c], cl
lea eax, [ebp - 0x28]
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x30]
mov esi, dword [ebx + 0x40]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edi, dword [esi]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x48]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x404926
cmp eax, 1
jg 0x404906
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub esi, eax
je 0x4048d7
push dword [ebx + 0x50]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.00406ad6
add esp, 0x10
cmp esi, eax
jne 0x404926
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x404901
test esi, esi
jne 0x404861
cmp dword [ebp - 0x18], 0x20
jae 0x404926
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00403930
jmp 0x404861
mov ebx, dword [ebp + 8]
jmp 0x404929
cmp eax, 3
jne 0x404926
push dword [ebx + 0x50]
push dword [ebp - 0x2c]
call fcn.00401780
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x404929
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x40493a
push dword [ebp - 0x28]
call fcn.00405f92
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407988
mov esp, ebp
pop ebp
ret 4
Function at 0x416901
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428470]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040aa63
mov dword [ebp - 0x14], eax
cmp dword [0x42abac], esi
jne 0x4169f4
push 0x800
push esi
push 0x4237d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416981
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416ad4
push esi
push esi
push 0x4237d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x416ad4
push 0x4237ec
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416ad4
push eax
call ebx
push 0x4237f8
push edi
mov dword [0x42abac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42abb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42abb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42abbc], eax
test eax, eax
je 0x4169f1
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42abb8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416a19
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416a0c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416a2e
push 4
pop eax
jmp 0x416ad6
cmp dword [ebp - 0x14], esi
je 0x416a2e
push dword [0x42abac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416a13
mov eax, dword [0x42abb8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416a8c
cmp dword [0x42abbc], edi
je 0x416a8c
push eax
call ebx
push dword [0x42abbc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416a8c
test eax, eax
je 0x416a8c
call ecx
test eax, eax
je 0x416a81
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 0x416a81
test byte [ebp - 8], 1
jne 0x416a8c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416abc
mov eax, dword [0x42abb0]
cmp eax, edi
je 0x416ab9
push eax
call ebx
test eax, eax
je 0x416ab9
call eax
mov esi, eax
test esi, esi
je 0x416ab9
mov eax, dword [0x42abb4]
cmp eax, edi
je 0x416ab9
push eax
call ebx
test eax, eax
je 0x416ab9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42abac]
call ebx
test eax, eax
je 0x416ad4
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416ad6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407988
mov esp, ebp
pop ebp
ret
Function at 0x40ecc0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10054
call fcn.00432800
mov eax, dword [0x441004]
xor eax, esp
mov dword [esp + 0x10050], eax
xor eax, eax
push ecx
lea ecx, [esp + 4]
mov word [esp + 0x54], ax
mov word [esp + 4], ax
call fcn.0040efd0
add esp, 4
lea eax, [esp + 0x50]
push 0x10000
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40ed33
cmp eax, 0x10000
ja 0x40ed33
lea eax, [esp + 0x50]
push eax
call fcn.00426917
add esp, 4
mov ecx, dword [esp + 0x10050]
xor ecx, esp
call fcn.0041895d
add esp, 0x10054
ret
mov ecx, dword [esp + 0x10050]
xor eax, eax
xor ecx, esp
call fcn.0041895d
add esp, 0x10054
ret

Function at 0x40ed50
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x441004]
xor eax, esp
mov dword [esp + 0x50], eax
xor eax, eax
push ecx
lea ecx, [esp + 4]
mov word [esp + 4], ax
call fcn.0040efd0
add esp, 4
lea eax, [esp]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0041895d
add esp, 0x54
ret
Function at 0x415e80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp byte [0x443cc9], 0
push ebp
push esi
mov ebp, edx
mov dword [esp + 8], ecx
jne 0x415ee0
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x443828], eax
mov esi, dword [eax]
add eax, 4
mov dword [0x443828], eax
mov ecx, dword [eax]
lea edx, [eax + 4]
push ecx
mov dword [0x443828], edx
call fcn.004147c0
add esp, 4
cmp eax, esi
jne 0x416041
mov byte [0x443cc9], 1
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, 0x4392b8
push edi
mov eax, ebx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415f10
test dl, dl
je 0x415f0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415f10
add eax, 2
add ecx, 2
test dl, dl
jne 0x415ef0
xor eax, eax
jmp 0x415f15
sbb eax, eax
or eax, 1
test eax, eax
je 0x415f8d
cmp byte [0x443cca], 1
je 0x415f8d
mov esi, dword [sym.imp.python36.dll_PyDict_New]
call esi
mov dword [0x443f34], eax
call esi
mov dword [0x443f88], eax
call esi
mov dword [0x443ccc], eax
call esi
mov dword [0x443c84], eax
call esi
mov dword [0x4441c0], eax
call esi
mov dword [0x443d10], eax
call esi
mov dword [0x444194], eax
call esi
mov edi, dword [sym.imp.python36.dll_PyLong_FromLong]
mov esi, 0xfffffffb
mov dword [0x4441a0], eax
nop dword [eax + eax]
push esi
call edi
mov dword [esi*4 + 0x444214], eax
add esp, 4
inc esi
cmp esi, 0x101
jl 0x415f70
mov byte [0x443cca], 1
mov esi, dword [0x443828]
mov eax, ebx
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415fb7
test dl, dl
je 0x415fb3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415fb7
add eax, 2
add ecx, 2
test dl, dl
jne 0x415f97
xor edx, edx
jmp 0x415fbc
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415fc1
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
je 0x416025
add esi, eax
mov ecx, ebx
mov eax, esi
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x416000
test dl, dl
je 0x415ffc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x416000
add ecx, 2
add eax, 2
test dl, dl
jne 0x415fe0
xor edx, edx
jmp 0x416005
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416010
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
jne 0x415fd6
movzx eax, word [esi]
mov edx, ebp
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esi + 2]
push eax
call fcn.004151c0
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
push str.Error__corrupted_constants_object
call fcn.00425510
add esp, 4
call fcn.0041be75
int3

Function at 0x419234
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x419273
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x419273
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419273
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x419273
cmp dword [ecx + 0x74], 0xe
jbe 0x419273
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x427324
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4354d0
push 0x4354c8
push str.FlsAlloc
push 0x1e
call fcn.004271e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427358
push dword [ebp + 8]
mov ecx, esi
call dword [0x433454]
call esi
jmp 0x42735e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4273a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4354e0
push 0x4354d8
push str.FlsGetValue
push 0x20
call fcn.004271e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4273d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x433454]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42aa6b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x441004]
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 0x42aab6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042ac0a
test al, al
jne 0x42aab0
sub edx, 2
cmp edx, edi
jne 0x42aa96
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42aad8
lea eax, [edi + 2]
cmp edx, eax
je 0x42aad8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042a9b7
add esp, 0x10
jmp 0x42abd2
push esi
lea ecx, [ebp - 0x255]
call fcn.0042ac0a
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 0x42ab1b
push dword [ebp - 0x25c]
jmp 0x42aac8
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 0x42ab58
cmp word [ebp - 0x226], 0
je 0x42ab79
cmp word [ebp - 0x226], ax
jne 0x42ab58
cmp word [ebp - 0x224], 0
je 0x42ab79
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042a9b7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42abc5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42ab32
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42abad
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42abd2
push 0x42a718
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004303d0
add esp, 0x10
jmp 0x42aba2
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.0041895d
leave
ret