joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404fd7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0
push 0x5c302e30
push 0x312e305c
push 0x72656873
push 0x616c6620
push 0x434d4d5c
push 0x45524157
push 0x54464f53
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
add esp, 0x20
cmp eax, 0
jne 0x40518d
push 0x747369
push 0x4c73656c
push 0x75646f4d
mov dword [ebp - 0x18], esp
push 0
push 0x65676175
push 0x676e614c
mov dword [ebp - 0x14], esp
push 0x74
push 0x6c756166
push 0x65447942
push 0x6d75736b
push 0x63656843
mov dword [ebp - 0x10], esp
push 0x7265
push 0x74706164
push 0x41746c75
push 0x61666544
mov dword [ebp - 0xc], esp
push 0x65
push 0x6c75646f
push 0x4d746c75
push 0x61666544
mov dword [ebp - 8], esp
push 0
push 0x79726f74
push 0x63657269
push 0x44746c75
push 0x61666544
mov dword [ebp - 4], esp
mov dword [ebx + 0x180], 0
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp eax, 0
jne 0x4050df
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x184], eax
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp eax, 0
jne 0x405113
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x188], eax
or dword [ebx + 0x188], 1
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x190]
push eax
push ecx
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x294]
push eax
push ecx
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x398]
push eax
push ecx
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 0x28]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
add esp, 0x14
add esp, 0x10
add esp, 0x10
add esp, 0x14
add esp, 0xc
add esp, 0xc
jmp 0x4051c4
mov dword [ebx + 0x180], 0
call dword [sym.imp.kernel32.dll_GetSystemDefaultLCID]
cmp eax, 0x419
jne 0x4051b0
mov dword [ebx + 0x184], 1
jmp 0x4051ba
mov dword [ebx + 0x184], 0
mov dword [ebx + 0x188], 1
mov dword [ebx + 0x18c], 1
leave
ret
Function at 0x4051d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
lea eax, [ebx + 0x80]
push eax
call fcn.0040e186
push 0x3430
push 0x2e34302e
push 0x74726f70
push 0x70755375
push 0x72685473
push 0x7361505c
push 0x45524157
push 0x54464f53
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x234]
push eax
push 0x20019
push 0
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
add esp, 0x20
cmp eax, 0
jne 0x405403
push 0x797261
push 0x7262694c
push 0x6e6f6974
push 0x636e7546
mov dword [ebp - 0xc], esp
push 0x4d49
push 0x56206d61
push 0x65727473
push 0x68636554
push 0x20534954
push 0x202d204e
push 0x4f495441
push 0x524f5052
push 0x4f43204f
push 0x534e4544
mov dword [ebp - 8], esp
push 0x797261
push 0x7262694c
push 0x64616f4c
push 0x75726854
push 0x73736150
mov dword [ebp - 4], esp
mov dword [ebp - 0x22c], 0
lea eax, [ebp - 0x21c]
push 0x20c
push 0
push eax
call dword [sym.imp.ntdll.dll_memset]
add esp, 0xc
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x218]
push 0
push 0
push 0
push 0
push eax
push ecx
push dword [ebp - 0x22c]
push dword [ebp - 0x234]
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
cmp eax, 0
jne 0x4053ee
lea eax, [ebp - 0x218]
push dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
cmp eax, 0
je 0x4053d7
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x218]
push eax
push 0x20019
push 0
push ecx
push dword [ebp - 0x234]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x114]
lea edx, [ebp - 0x224]
push eax
push ecx
push edx
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x230]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp eax, 0
jne 0x4053d7
lea eax, [ebp - 0x114]
push 1
push 0
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
cmp eax, 0
je 0x4053d7
mov dword [ebp - 0x220], eax
xor eax, eax
test dword [ebx + 0x188], 2
jne 0x4053a4
push dword [ebp - 4]
push dword [ebp - 0x220]
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, 0
jne 0x4053cb
mov dword [ebp - 0x21c], 3
lea eax, [ebp - 0x21c]
lea ecx, [ebx + 0x80]
push 0x20c
push eax
push ecx
call fcn.0040e129
push dword [ebp - 0x220]
call dword [sym.imp.kernel32.dll_FreeLibrary]
push dword [ebp - 0x230]
call dword [sym.imp.advapi32.dll_RegCloseKey]
inc dword [ebp - 0x22c]
jmp 0x4052aa
add esp, 0x14
add esp, 0x28
add esp, 0x10
push dword [ebp - 0x234]
call dword [sym.imp.advapi32.dll_RegCloseKey]
leave
ret
Function at 0x405405
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push 0x6c
push 0x6c642e2a
push 0x5c73656c
push 0x75646f6d
mov dword [ebp - 0x12], esp
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 0x12]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x405573
mov dword [ebp - 0x360], eax
push 0x7325
push 0x5c73656c
push 0x75646f6d
mov dword [ebp - 0xe], esp
cmp eax, 0
je 0x405570
lea eax, [ebp - 0x32c]
lea ecx, [ebp - 0x21a]
push eax
push dword [ebp - 0xe]
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x21a]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
cmp eax, 0
jne 0x4054e2
push 0
push 0xa0d2273
push 0x25222024
push 0x454c5544
push 0x4f4d5f47
push 0x4e494441
push 0x4f4c5f52
push 0x4f525245
push 0x24202445
push 0x4d495424
mov dword [ebp - 0xa], esp
lea eax, [ebp - 0x32c]
lea ecx, [ebp - 0x116]
push eax
push dword [ebp - 0xa]
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
lea eax, [ebp - 0x116]
push eax
call fcn.0040bbe7
add esp, 0x28
jmp 0x405558
mov dword [ebp - 0x35c], eax
push 1
push dword [ebp - 0x35c]
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, 0
je 0x405558
push 0
push 0xa0d2273
push 0x25222024
push 0x454c5544
push 0x4f4d5f4e
push 0x4f495352
push 0x45565f44
push 0x4c4f5f52
push 0x4f525245
push 0x24202445
push 0x4d495424
mov dword [ebp - 6], esp
lea eax, [ebp - 0x32c]
lea ecx, [ebp - 0x116]
push eax
push dword [ebp - 6]
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
lea eax, [ebp - 0x116]
push eax
call fcn.0040bbe7
add esp, 0x2c
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 0x360]
call dword [sym.imp.kernel32.dll_FindNextFileA]
jmp 0x405453
add esp, 0xc
add esp, 0x10
leave
ret

Function at 0x405e53
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x158], eax
mov dword [ebp - 4], eax
xor dword [ebp - 4], 1
push dword [ebp - 4]
push dword [ebx + 0x8bc]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp - 4]
push dword [ebx + 0x8c0]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp - 4]
push dword [ebx + 0x8c4]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp - 4]
push dword [ebx + 0x8d8]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp - 4]
push dword [ebx + 0x8dc]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp - 4]
push dword [ebx + 0x8e0]
call dword [sym.imp.user32.dll_EnableWindow]
push dword [ebp + 8]
push dword [ebx + 0x8ec]
call dword [sym.imp.user32.dll_ShowWindow]
cmp dword [ebx + 0xc0], 0
je 0x405f01
mov esi, dword [ebx + 0xbc]
xor edi, edi
cmp edi, dword [ebx + 0xc4]
jae 0x405f01
push dword [ebp - 4]
push dword [esi + edi]
call dword [sym.imp.user32.dll_ShowWindow]
add edi, 0x94
jmp 0x405ee5
pop edi
pop esi
leave
ret 4
Function at 0x405f1e
Capabilities:
Create thread
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [ebp + 8]
cmp byte [eax + 3], 8
je 0x405f5c
push 0
push 0x31202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406129
lea ecx, [eax - 4]
add ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [ebp - 0x328], ecx
lea ecx, [eax + 0xa]
xor eax, eax
cmp eax, 0x100
jae 0x405f7f
cmp byte [ecx + eax], 0
je 0x405f7f
inc eax
jmp 0x405f6f
cmp eax, 0x100
jae 0x405f87
inc eax
lea edx, [ebp - 0x310]
push eax
push ecx
push edx
call dword [sym.imp.ntdll.dll_memcpy]
add esp, 0xc
push dword [ebp - 0x328]
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x324], eax
push dword [ebp - 0x328]
push dword [ebp - 0x324]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebx + 0x4c]
cmp eax, 0
jne 0x405ff3
push 0
push 0x32202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406129
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
push 0
push 0x73255838
push 0x2e257325
mov dword [ebp - 4], esp
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.shlwapi.dll_PathFindExtensionA]
push eax
call fcn.0040b5f4
lea ecx, [ebp - 0x20c]
lea edx, [ebp - 0x108]
push eax
push ecx
push dword [ebp - 4]
push edx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x14
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x406095
push 0
push 0x33202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406129
mov dword [ebp - 0x320], eax
lea ecx, [ebp - 0x31c]
push 0
push ecx
push dword [ebp - 0x328]
push dword [ebp - 0x324]
push dword [ebp - 0x320]
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 0x320]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x324]
call dword [sym.imp.kernel32.dll_GlobalFree]
lea eax, [ebp - 0x108]
lea ecx, [ebx + 0xd90]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 0x13a0
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x318], eax
push 0x13a0
push ebx
push eax
call dword [sym.imp.ntdll.dll_memcpy]
add esp, 0xc
lea eax, [ebp - 0x314]
push eax
push 0
push dword [ebp - 0x318]
push 0x40612d
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
leave
ret 8
Function at 0x40af58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
dec eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 0xa
push 0x15
push 0x400000
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x40afa0
mov dword [ebp - 0x14], eax
push eax
push 0x400000
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
push 0x400000
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x40afa0
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40b060
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + 3], 8
jne 0x40b057
mov eax, dword [ebp - 0x10]
mov eax, dword [ecx + eax - 4]
mov dword [ebp - 8], eax
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
push dword [ebp - 8]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [ebx + 0x4c]
test eax, eax
je 0x40b04e
pushal
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 3
jae 0x40b04d
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
add edi, esi
cmp esi, edi
jae 0x40b048
cmp dword [ebp - 0x18], 0
jne 0x40b001
mov ebx, dword [ebp + 8]
jmp 0x40b00f
cmp dword [ebp - 0x18], 1
jne 0x40b00c
mov ebx, dword [ebp + 0xc]
jmp 0x40b00f
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
mov al, byte [ebx + ecx]
cmp ecx, 0x20
jae 0x40b026
cmp al, 0
je 0x40b026
cmp al, byte [esi + ecx + 4]
jne 0x40b026
inc ecx
jmp 0x40b011
cmp al, 0
jne 0x40b031
cmp byte [esi + ecx + 4], 0
je 0x40b035
add esi, dword [esi]
jmp 0x40aff2
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi]
rep movsb byte es:[edi], byte [esi]
jmp 0x40b04d
inc dword [ebp - 0x18]
jmp 0x40afe4
popal
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GlobalFree]
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_FreeResource]
leave
ret 0x14

Function at 0x40bfea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc89c
cmp dword [ebx + 0xcec], 0
je 0x40c067
lea edx, [ebp - 0xc898]
push edx
push dword [ebp + 8]
push 0
call fcn.0040c884
lea edx, [ebp - 0xc898]
push edx
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 0
push 0
push 0x42dd
lea edx, [ebp - 0x42de]
push edx
push eax
lea edx, [ebp - 0xc898]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea edx, [ebp - 0x42de]
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
push 0
lea edx, [ebp - 0xc89c]
push edx
push eax
lea edx, [ebp - 0x42de]
push edx
push dword [ebx + 0xcec]
call dword [sym.imp.kernel32.dll_WriteFile]
leave
ret 4
Function at 0x410cd2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_KillTimer]
push 0
push dword [ebx + 0xd80]
call dword [sym.imp.user32.dll_ShowWindow]
push 1
push dword [ebx + 0xd70]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [ebx + 0xd70]
call dword [sym.imp.user32.dll_SetFocus]
leave
ret 4

Function at 0x410d0c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea edx, [ebp - 0x10]
push edx
push dword [ebp + 8]
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
test eax, eax
jne 0x410d26
dec eax
jmp 0x410d7f
mov dword [ebp - 0xc], eax
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.version.dll_GetFileVersionInfoW]
test eax, eax
jne 0x410d4c
dec eax
jmp 0x410d74
push 0x5c
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 4]
push edx
lea edx, [esp + 8]
push edx
push dword [ebp - 8]
call dword [sym.imp.version.dll_VerQueryValueW]
add esp, 4
test eax, eax
jne 0x410d6e
dec eax
jmp 0x410d74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_GlobalFree]
pop eax
leave
ret 4

Function at 0x410dbd
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, dword [ebx + 0x164]
cmp eax, 0xffffffff
jne 0x410dd6
cmp dword [ebp + 0xc], 1
jne 0x410dd6
xor eax, eax
xor eax, 0xedb88320
mov dword [ebp - 4], eax
push 0x19
push 0
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_memset]
add esp, 0xc
xor ecx, ecx
push 0x46454443
push 0x42413938
push 0x37363534
push 0x33323130
cmp ecx, 0x18
jae 0x410e43
xor edx, edx
cmp edx, 7
ja 0x410e30
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0xfffffffe
shr dword [ebp - 4], 1
and dword [ebp - 4], 0x7fffffff
and eax, 1
je 0x410e2d
xor dword [ebp - 4], 0xedb88320
inc edx
jmp 0x410e0b
mov eax, dword [ebp - 4]
and eax, 0xf
movzx eax, byte [esp + eax]
mov edx, dword [ebp + 8]
mov byte [edx + ecx], al
inc ecx
jmp 0x410e04
add esp, 0x10
leave
ret 8
Function at 0x42c61f
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
xor ebp, ebp
call fcn.0042c7ff
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x42c647
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
lea eax, [edx*4 + 4]
push eax
call fcn.0042d3fb
mov esi, dword [esp + 0x20]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x42c671
pop edi
pop esi
mov dword [ebx], eax
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [ebx]
xor eax, eax
push 0x8000
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.0042d3fb
add esp, 4
mov ebx, eax
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
push 0x8000
push ebx
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
test eax, eax
jne 0x42c6d4
mov eax, dword [esp + 0x20]
push ebx
mov dword [eax], 0
call fcn.0042d76d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x8000]
cmp eax, ecx
jae 0x42c7da
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42c7d6
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call fcn.00433286
add esp, 0xc
test eax, eax
jne 0x42c7b5
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 8
push ecx
call fcn.0042d3fb
mov ecx, dword [esi]
mov edi, ebx
add esp, 4
mov dword [ecx + ebp*4], eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi]
repne scasb al, byte es:[edi]
mov edi, dword [edx + ebp*4]
not ecx
add ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi]
mov edi, ebx
not ecx
mov edx, dword [eax + ebp*4]
add ecx, 3
mov dword [edx], ecx
mov eax, dword [esi]
mov edx, dword [0x4563ba]
mov ecx, dword [eax + ebp*4]
add ecx, 4
mov dword [ecx], edx
mov al, byte [0x4563be]
mov byte [ecx + 4], al
mov ecx, dword [esi]
xor eax, eax
mov edx, dword [ecx + ebp*4]
or ecx, 0xffffffff
add edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
add eax, 0x8000
lea ebx, [ebx + ecx + 1]
cmp ebx, eax
jb 0x42c6e6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov dword [ecx], ebp
call fcn.0042d76d
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x42e8e0
Capabilities:
Check os version
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x122c
call fcn.0042da50
lea eax, [ebp - 0x98]
push ebx
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x42e923
cmp dword [ebp - 0x88], 2
jne 0x42e923
cmp dword [ebp - 0x94], 5
jb 0x42e923
push 1
pop eax
jmp 0x42ea25
lea eax, [ebp - 0x122c]
push 0x1090
push eax
push 0x433884
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x42ea12
xor ebx, ebx
lea ecx, [ebp - 0x122c]
cmp byte [ebp - 0x122c], bl
je 0x42e965
mov al, byte [ecx]
cmp al, 0x61
jl 0x42e960
cmp al, 0x7a
jg 0x42e960
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x42e952
lea eax, [ebp - 0x122c]
push 0x16
push eax
push 0x43386c
call fcn.0042d860
add esp, 0xc
test eax, eax
jne 0x42e987
lea eax, [ebp - 0x122c]
jmp 0x42e9d0
lea eax, [ebp - 0x19c]
push 0x104
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x19c], bl
lea ecx, [ebp - 0x19c]
je 0x42e9bb
mov al, byte [ecx]
cmp al, 0x61
jl 0x42e9b6
cmp al, 0x7a
jg 0x42e9b6
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x42e9a8
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x122c]
push eax
call fcn.00431ac7
pop ecx
pop ecx
cmp eax, ebx
je 0x42ea12
push 0x2c
push eax
call fcn.0042d554
pop ecx
cmp eax, ebx
pop ecx
je 0x42ea12
inc eax
mov ecx, eax
cmp byte [eax], bl
je 0x42e9f7
cmp byte [ecx], 0x3b
jne 0x42e9f2
mov byte [ecx], bl
jmp 0x42e9f3
inc ecx
cmp byte [ecx], bl
jne 0x42e9e9
push 0xa
push ebx
push eax
call fcn.004318a1
add esp, 0xc
cmp eax, 2
je 0x42ea25
cmp eax, 3
je 0x42ea25
cmp eax, 1
je 0x42ea25
lea eax, [ebp - 4]
push eax
call fcn.0042e8b3
cmp byte [ebp - 4], 6
pop ecx
sbb eax, eax
add eax, 3
pop ebx
leave
ret
Function at 0x430611
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4593a2]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x43065f
call ebp
mov esi, eax
cmp esi, ebx
je 0x430640
mov dword [0x4593a2], 1
jmp 0x430668
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
mov edi, eax
cmp edi, ebx
je 0x43073a
mov dword [0x4593a2], 2
jmp 0x4306ee
cmp eax, 1
jne 0x4306e9
cmp esi, ebx
jne 0x430678
call ebp
mov esi, eax
cmp esi, ebx
je 0x43073a
cmp word [esi], bx
mov eax, esi
je 0x43068d
inc eax
inc eax
cmp word [eax], bx
jne 0x43067f
inc eax
inc eax
cmp word [eax], bx
jne 0x43067f
sub eax, esi
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sar eax, 1
push ebx
push ebx
inc eax
push ebx
push ebx
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x4306de
push ebp
call fcn.0042d3fb
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4306de
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x4306da
push dword [esp + 0x10]
call fcn.0042d76d
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x43073c
cmp eax, 2
jne 0x43073a
cmp edi, ebx
jne 0x4306fe
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
mov edi, eax
cmp edi, ebx
je 0x43073a
cmp byte [edi], bl
mov eax, edi
je 0x43070e
inc eax
cmp byte [eax], bl
jne 0x430704
inc eax
cmp byte [eax], bl
jne 0x430704
sub eax, edi
inc eax
mov ebp, eax
push ebp
call fcn.0042d3fb
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x430724
xor esi, esi
jmp 0x43072f
push ebp
push edi
push esi
call fcn.00431f98
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, esi
jmp 0x43073c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x430782
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4589fe
cmp edx, dword [eax]
je 0x4307a4
add eax, 8
inc ecx
cmp eax, 0x458a8e
jb 0x430795
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4589fe]
jne 0x4308d2
mov eax, dword [0x4590f6]
cmp eax, 1
je 0x4308ac
test eax, eax
jne 0x4307d5
cmp dword [0x4590fa], 1
je 0x4308ac
cmp edx, 0xfc
je 0x4308d2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43080c
lea eax, [ebp - 0x1a4]
push 0x433b74
push eax
call fcn.00430a64
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042e81f
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43084f
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042e81f
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x433b70
push edi
call fcn.00430964
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x433b54
push eax
call fcn.00430a64
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00430a70
lea eax, [ebp - 0xa0]
push 0x433b50
push eax
call fcn.00430a70
push dword [esi + 0x458a02]
lea eax, [ebp - 0xa0]
push eax
call fcn.00430a70
push 0x12010
lea eax, [ebp - 0xa0]
push 0x433b28
push eax
call fcn.004322cd
add esp, 0x2c
pop edi
jmp 0x4308d2
lea eax, [ebp + 8]
lea esi, [esi + 0x458a02]
push 0
push eax
push dword [esi]
call fcn.0042e81f
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret