joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10008040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100024dc
cmp byte [esi + 0x3d], 0
je 0x100024dc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100024ca
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10002491
sub eax, 1
je 0x10002495
sub eax, 2
jne 0x100024ca
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003312
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100024b3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100024ca
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003312
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003312
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10003312
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x401132
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
mov eax, 0x1038
call fcn.00407360
mov eax, dword [0x412014]
xor eax, esp
mov dword [esp + 0x1034], eax
push ebx
push ebp
xor eax, eax
lea ecx, [esp + 0xc]
push esi
push edi
push 0x20019
push 0x409324
mov ebp, eax
mov dword [esp + 0x1c], eax
mov ebx, eax
mov dword [esp + 0x20], eax
mov edi, eax
mov dword [esp + 0x24], eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
call fcn.00402e16
mov esi, eax
test esi, esi
jne 0x4012d2
mov ebp, 0x20019
lea ecx, [esp + 0x38]
push ebp
push 0x409338
push dword [esp + 0x1c]
call fcn.00402e16
mov esi, eax
test esi, esi
jne 0x4012ce
push ebp
mov ebp, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
push 0x40934c
push ebp
call fcn.00402e16
mov esi, eax
test esi, esi
jne 0x4012c8
mov ebx, 0x800
push ebx
push eax
lea eax, [esp + 0x4c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x30]
push eax
push esi
jmp 0x40126d
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x44]
inc esi
mov ecx, str.11.381.2
mov dword [esp + 0x10], esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401245
test dx, dx
je 0x401241
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401245
add eax, 4
add ecx, 4
test dx, dx
jne 0x40121f
xor eax, eax
jmp 0x40124a
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [esp + 0x44]
je 0x40127c
push 0x800
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push 0x800
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
je 0x40120d
jmp 0x4012d2
push 0x2001f
push eax
push ebx
lea ecx, [esp + 0x2c]
call fcn.00402e16
mov edi, dword [esp + 0x20]
mov esi, eax
test esi, esi
jne 0x4012d2
mov eax, dword [esp + 0x104c]
push 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 4
push esi
push str.UseNewJavaPlugin
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x4012e1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
jmp 0x4012d2
mov ebx, dword [esp + 0x2c]
jmp 0x4012d2
mov ebp, dword [esp + 0x38]
test edi, edi
je 0x4012e1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x4012e7
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4012ee
push ebx
call edi
test ebp, ebp
je 0x4012f5
push ebp
call edi
cmp dword [esp + 0x14], 0
je 0x401302
push dword [esp + 0x14]
call edi
mov ecx, dword [esp + 0x1044]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040728f
add esp, 0x1038
ret
Function at 0x40d124
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
jmp 0x40d14c
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 4]
cmp edx, dword [ebp + 8]
jb 0x40d144
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret

Function at 0x445d6c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x445da5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0044a4ac
jmp 0x445dae
mov eax, ebx
mov edx, esi
call fcn.0044a410
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x445db8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x445dd9
mov al, byte [esp]
jmp 0x445ddb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x446460
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4462d8
mov eax, dword [0x46fe6c]
cmp byte [eax], 0
je 0x4464cd
mov eax, dword [0x46fe74]
call fcn.004495b8
call fcn.004494e0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00444e64
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x446514
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x446503
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46fd6c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46ffd0]
call fcn.0044abc4
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x446e94
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x446ef8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0044a600
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00444cc0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446eff
lea eax, [ebp - 0xc]
call fcn.0044a3bc
ret
Function at 0x449a14
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46d09c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x449aac
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x449a8c
xor eax, eax
push ebp
push 0x449a85
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x449ac8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449a8c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x46d09c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46d09c], ax
mov esp, ebp
pop ebp
ret

Function at 0x44a240
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x470030], 0
je 0x44a2a1
cmp word [0x470204], 0xd7b2
jne 0x44a269
cmp dword [0x47020c], 0
jbe 0x44a269
mov eax, 0x470200
call dword [0x47021c]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x44a2c8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x46d0a8], 0
jne 0x44a2bd
push 0
push 0x46d0fc
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x44adb8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x44afe8
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x44ae3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x44afe8
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x44ae3b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x44b004
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x44aec4
xor eax, eax
push ebp
push 0x44aebd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0044ac00
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x44aea2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x44b024
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x44aea2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44aec4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x44afde
cmp byte [ebp - 0xd], 0
jne 0x44af0b
cmp byte [ebp - 0x12], 0
je 0x44afde
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x44af24
dec ebx
cmp byte [ebx], 0x2e
je 0x44af33
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x44af23
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x44afde
inc ebx
cmp byte [ebp - 0x12], 0
je 0x44af70
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x44afde
cmp byte [ebp - 0xd], 0
je 0x44afde
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x44afde
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c27c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x44dbc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x44dbdc
call fcn.0044ec44
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x44dbf8
test bl, 1
je 0x44dbf8
call fcn.00452a7c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x44dd44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0044e7e0
test byte [ebp + 0xd], 0xc0
jne 0x44dd68
mov eax, dword [0x46de68]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x44dd75
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x44dda2
je 0x44ddb4
sub ecx, 0x100
je 0x44ddc2
sub ecx, 0x100
je 0x44ddc9
sub ecx, 0x100
je 0x44ddbb
jmp 0x44ddd0
sub ecx, 0x600
je 0x44ddc9
sub ecx, 0x100
je 0x44ddb4
jmp 0x44ddd0
mov edi, 1
jmp 0x44ddd5
mov edi, 2
jmp 0x44ddd5
mov edi, 4
jmp 0x44ddd5
mov edi, 5
jmp 0x44ddd5
mov edi, 3
test byte [ebp + 0xd], 1
je 0x44ddfc
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x46d8e0]
test al, 0x80
je 0x44ddf5
mov ebx, 0x80
jmp 0x44de0e
mov ebx, 1
jmp 0x44de0e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x44de0e
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x44de20
je 0x44de29
dec eax
je 0x44de32
jmp 0x44de3b
mov dword [ebp - 4], SysStringLen
jmp 0x44de4a
mov dword [ebp - 4], 0x40000000
jmp 0x44de4a
mov dword [ebp - 4], 0xc0000000
jmp 0x44de4a
push 1
call fcn.0044ebd8
pop ecx
mov ebx, eax
jmp 0x44df3a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x44de66
sub eax, 0x10
je 0x44de6d
sub eax, 0x10
je 0x44de76
sub eax, 0x10
je 0x44de7f
jmp 0x44de7f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x44de86
mov dword [ebp - 8], 1
jmp 0x44de86
mov dword [ebp - 8], 2
jmp 0x44de86
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x44def3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x44dee8
test byte [ebp + 0xd], 1
je 0x44dee3
mov ebx, 0x50
jmp 0x44dee8
mov ebx, 2
push ebx
call fcn.0044ebd8
pop ecx
mov ebx, eax
jmp 0x44df3a
mov edi, esi
push edi
call fcn.0044dca8
pop ecx
test eax, eax
je 0x44df07
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x44df13
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0044e900
add esp, 8
mov ebx, eax
inc eax
jne 0x44df3a
push 4
call fcn.0044ebd8
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0044e814
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452a14
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x452a76
call fcn.004529c4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0044caf0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0044caf0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x452af4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x46ee00], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x452bce
cmp dword [0x46edfc], 0
jne 0x452bce
cmp dword [0x46ef88], 0
je 0x452b88
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004528c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x452b6e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004528c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x452b6e
lea ebx, [ebp - 0x84]
jmp 0x452b6f
inc ebx
call fcn.00452ab0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x452c09
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x46ee04
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0044caf0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x46ee07
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x452c09
cmp dword [0x46edfc], 0
je 0x452be8
cmp dword [0x46edfc], 0xffffffff
je 0x452c09
push esi
call dword [0x46edfc]
pop ecx
mov eax, dword [0x46ee00]
test eax, eax
je 0x452c09
cmp dword [0x46ee00], 0xffffffff
je 0x452c09
cmp byte [eax], 0
je 0x452c09
push esi
push eax
call fcn.00452a14
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453298
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x470f40], 0
jne 0x453319
cmp dword [0x470f64], 0
jne 0x4532c8
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x470f64], eax
test eax, eax
jne 0x4532c8
push str.GetEnvironmentStrings_failed
call fcn.00452c20
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x470f64]
jmp 0x4532dc
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0044caf0
pop ecx
mov edi, eax
test eax, eax
jne 0x4532d4
lea edi, [ebp + 1]
push edi
call fcn.0044b7e8
pop ecx
mov ebx, eax
mov dword [0x470f44], ebx
test ebx, ebx
jne 0x453306
xor eax, eax
jmp 0x4533dc
push edi
mov edx, dword [0x470f64]
push edx
push ebx
call fcn.0044c970
add esp, 0xc
jmp 0x453339
xor esi, esi
mov ebx, dword [0x470f40]
jmp 0x453333
push eax
call fcn.0044caf0
pop ecx
test eax, eax
jne 0x45332f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x453323
lea ebx, [esi + 4]
push 4
mov dword [0x470f48], ebx
inc ebx
push ebx
call fcn.0044b34c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x45335c
xor eax, eax
jmp 0x4533dc
cmp dword [0x470f40], 0
jne 0x45338d
xor esi, esi
mov ebx, dword [0x470f44]
mov eax, dword [esp]
mov ebp, eax
jmp 0x45337e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0044caf0
pop ecx
mov edi, eax
test eax, eax
jne 0x453374
jmp 0x4533be
xor esi, esi
mov ebx, dword [0x470f40]
mov eax, dword [esp]
mov edi, eax
jmp 0x4533b8
push eax
call fcn.0044caf0
pop ecx
test eax, eax
je 0x4533ad
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4533b1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45339c
mov eax, dword [0x470f40]
test eax, eax
je 0x4533ce
push eax
call fcn.0044b7f8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x470f40], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x453944
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x4539ca
mov eax, dword [0x470f98]
inc dword [0x470f98]
test eax, eax
jne 0x4539ca
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x470f64], eax
mov edx, dword [ebp + 0x10]
mov dword [0x457087], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.0044e364
pop ecx
cmp dword [0x46ee64], 0
je 0x4539b5
call fcn.004537c8
mov ebx, eax
test eax, eax
je 0x4539b5
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x4539b5
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x4539ca
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x46ee64], eax
call fcn.004537d0
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.00453ad8
mov ebx, eax
test edi, edi
jne 0x453a39
test edi, edi
jne 0x453a0a
dec dword [0x470f98]
jne 0x453a0a
cmp dword [0x470f64], 0
je 0x453a0a
mov eax, dword [0x470f64]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x470f64], edx
cmp dword [0x470f98], 0
jne 0x453a39
cmp dword [0x46ee64], 0
jne 0x453a39
cmp dword [0x46ee54], 0
je 0x453a2b
call dword [0x46ee54]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.004537d0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x100013b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x1000e014]
test eax, eax
je 0x10001468
mov dword [esp], ebx
call eax
sub esp, 4
test eax, eax
mov dword [ebx + 8], eax
jns 0x100013f0
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x100013dc
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1000149d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov dword [0x1000e014], eax
test eax, eax
jne 0x100013cd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x100013de