joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051bb
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.0040e337
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 0x4053ee
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 0x4053d9
lea eax, [ebp - 0x218]
push dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
cmp eax, 0
je 0x4053ce
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 0x4053c2
lea eax, [ebp - 0x114]
push 1
push 0
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
cmp eax, 0
je 0x4053c2
mov dword [ebp - 0x220], eax
xor eax, eax
test dword [ebx + 0x188], 2
jne 0x40538f
push dword [ebp - 4]
push dword [ebp - 0x220]
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, 0
jne 0x4053b6
mov dword [ebp - 0x21c], 3
lea eax, [ebp - 0x21c]
lea ecx, [ebx + 0x80]
push 0x20c
push eax
push ecx
call fcn.0040e2da
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 0x405295
add esp, 0x14
add esp, 0x28
add esp, 0x10
push dword [ebp - 0x234]
call dword [sym.imp.advapi32.dll_RegCloseKey]
leave
ret
Function at 0x4053f0
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 0x40555e
mov dword [ebp - 0x360], eax
push 0x7325
push 0x5c73656c
push 0x75646f6d
mov dword [ebp - 0xe], esp
cmp eax, 0
je 0x40555b
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 0x4054cd
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.0040bd98
add esp, 0x28
jmp 0x405543
mov dword [ebp - 0x35c], eax
push 1
push dword [ebp - 0x35c]
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, 0
je 0x405543
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.0040bd98
add esp, 0x2c
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 0x360]
call dword [sym.imp.kernel32.dll_FindNextFileA]
jmp 0x40543e
add esp, 0xc
add esp, 0x10
leave
ret

Function at 0x405e3e
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 0x405eec
mov esi, dword [ebx + 0xbc]
xor edi, edi
cmp edi, dword [ebx + 0xc4]
jae 0x405eec
push dword [ebp - 4]
push dword [esi + edi]
call dword [sym.imp.user32.dll_ShowWindow]
add edi, 0x94
jmp 0x405ed0
pop edi
pop esi
leave
ret 4
Function at 0x405f09
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 0x405f47
push 0
push 0x31202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406114
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 0x405f6a
cmp byte [ecx + eax], 0
je 0x405f6a
inc eax
jmp 0x405f5a
cmp eax, 0x100
jae 0x405f72
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 0x405fde
push 0
push 0x32202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406114
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.0040b7a5
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 0x406080
push 0
push 0x33202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406114
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 0x406118
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
leave
ret 8
Function at 0x40b109
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 0x40b151
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 0x40b151
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40b211
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + 3], 8
jne 0x40b208
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 0x40b1ff
pushal
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 3
jae 0x40b1fe
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
add edi, esi
cmp esi, edi
jae 0x40b1f9
cmp dword [ebp - 0x18], 0
jne 0x40b1b2
mov ebx, dword [ebp + 8]
jmp 0x40b1c0
cmp dword [ebp - 0x18], 1
jne 0x40b1bd
mov ebx, dword [ebp + 0xc]
jmp 0x40b1c0
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
mov al, byte [ebx + ecx]
cmp ecx, 0x20
jae 0x40b1d7
cmp al, 0
je 0x40b1d7
cmp al, byte [esi + ecx + 4]
jne 0x40b1d7
inc ecx
jmp 0x40b1c2
cmp al, 0
jne 0x40b1e2
cmp byte [esi + ecx + 4], 0
je 0x40b1e6
add esi, dword [esi]
jmp 0x40b1a3
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 0x40b1fe
inc dword [ebp - 0x18]
jmp 0x40b195
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 0x40c19b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc89c
cmp dword [ebx + 0xcec], 0
je 0x40c218
lea edx, [ebp - 0xc898]
push edx
push dword [ebp + 8]
push 0
call fcn.0040ca35
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 0x410e83
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 0x410ebd
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 0x410ed7
dec eax
jmp 0x410f30
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 0x410efd
dec eax
jmp 0x410f25
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 0x410f1f
dec eax
jmp 0x410f25
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 0x410f6e
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, dword [ebx + 0x164]
cmp eax, 0xffffffff
jne 0x410f87
cmp dword [ebp + 0xc], 1
jne 0x410f87
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 0x410ff4
xor edx, edx
cmp edx, 7
ja 0x410fe1
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0xfffffffe
shr dword [ebp - 4], 1
and dword [ebp - 4], 0x7fffffff
and eax, 1
je 0x410fde
xor dword [ebp - 4], 0xedb88320
inc edx
jmp 0x410fbc
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 0x410fb5
add esp, 0x10
leave
ret 8
Function at 0x42c94a
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.0042cb2a
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x42c972
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.0042d726
mov esi, dword [esp + 0x20]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x42c99c
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.0042d726
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 0x42c9ff
mov eax, dword [esp + 0x20]
push ebx
mov dword [eax], 0
call fcn.0042da98
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 0x42cb05
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42cb01
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.004335b1
add esp, 0xc
test eax, eax
jne 0x42cae0
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 8
push ecx
call fcn.0042d726
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 0x42ca11
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov dword [ecx], ebp
call fcn.0042da98
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x42ec0b
Capabilities:
Check os version
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x122c
call fcn.0042dd7b
lea eax, [ebp - 0x98]
push ebx
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x42ec4e
cmp dword [ebp - 0x88], 2
jne 0x42ec4e
cmp dword [ebp - 0x94], 5
jb 0x42ec4e
push 1
pop eax
jmp 0x42ed50
lea eax, [ebp - 0x122c]
push 0x1090
push eax
push 0x433baf
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x42ed3d
xor ebx, ebx
lea ecx, [ebp - 0x122c]
cmp byte [ebp - 0x122c], bl
je 0x42ec90
mov al, byte [ecx]
cmp al, 0x61
jl 0x42ec8b
cmp al, 0x7a
jg 0x42ec8b
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x42ec7d
lea eax, [ebp - 0x122c]
push 0x16
push eax
push 0x433b97
call fcn.0042db8b
add esp, 0xc
test eax, eax
jne 0x42ecb2
lea eax, [ebp - 0x122c]
jmp 0x42ecfb
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 0x42ece6
mov al, byte [ecx]
cmp al, 0x61
jl 0x42ece1
cmp al, 0x7a
jg 0x42ece1
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x42ecd3
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x122c]
push eax
call fcn.00431df2
pop ecx
pop ecx
cmp eax, ebx
je 0x42ed3d
push 0x2c
push eax
call fcn.0042d87f
pop ecx
cmp eax, ebx
pop ecx
je 0x42ed3d
inc eax
mov ecx, eax
cmp byte [eax], bl
je 0x42ed22
cmp byte [ecx], 0x3b
jne 0x42ed1d
mov byte [ecx], bl
jmp 0x42ed1e
inc ecx
cmp byte [ecx], bl
jne 0x42ed14
push 0xa
push ebx
push eax
call fcn.00431bcc
add esp, 0xc
cmp eax, 2
je 0x42ed50
cmp eax, 3
je 0x42ed50
cmp eax, 1
je 0x42ed50
lea eax, [ebp - 4]
push eax
call fcn.0042ebde
cmp byte [ebp - 4], 6
pop ecx
sbb eax, eax
add eax, 3
pop ebx
leave
ret
Function at 0x43093c
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 0x43098a
call ebp
mov esi, eax
cmp esi, ebx
je 0x43096b
mov dword [0x4593a2], 1
jmp 0x430993
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
mov edi, eax
cmp edi, ebx
je 0x430a65
mov dword [0x4593a2], 2
jmp 0x430a19
cmp eax, 1
jne 0x430a14
cmp esi, ebx
jne 0x4309a3
call ebp
mov esi, eax
cmp esi, ebx
je 0x430a65
cmp word [esi], bx
mov eax, esi
je 0x4309b8
inc eax
inc eax
cmp word [eax], bx
jne 0x4309aa
inc eax
inc eax
cmp word [eax], bx
jne 0x4309aa
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 0x430a09
push ebp
call fcn.0042d726
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x430a09
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x430a05
push dword [esp + 0x10]
call fcn.0042da98
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 0x430a67
cmp eax, 2
jne 0x430a65
cmp edi, ebx
jne 0x430a29
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
mov edi, eax
cmp edi, ebx
je 0x430a65
cmp byte [edi], bl
mov eax, edi
je 0x430a39
inc eax
cmp byte [eax], bl
jne 0x430a2f
inc eax
cmp byte [eax], bl
jne 0x430a2f
sub eax, edi
inc eax
mov ebp, eax
push ebp
call fcn.0042d726
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x430a4f
xor esi, esi
jmp 0x430a5a
push ebp
push edi
push esi
call fcn.004322c3
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, esi
jmp 0x430a67
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x430aad
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 0x430acf
add eax, 8
inc ecx
cmp eax, 0x458a8e
jb 0x430ac0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4589fe]
jne 0x430bfd
mov eax, dword [0x4590f6]
cmp eax, 1
je 0x430bd7
test eax, eax
jne 0x430b00
cmp dword [0x4590fa], 1
je 0x430bd7
cmp edx, 0xfc
je 0x430bfd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x430b37
lea eax, [ebp - 0x1a4]
push 0x433e9f
push eax
call fcn.00430d8f
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042eb4a
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x430b7a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042eb4a
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x433e9b
push edi
call fcn.00430c8f
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x433e7f
push eax
call fcn.00430d8f
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00430d9b
lea eax, [ebp - 0xa0]
push 0x433e7b
push eax
call fcn.00430d9b
push dword [esi + 0x458a02]
lea eax, [ebp - 0xa0]
push eax
call fcn.00430d9b
push 0x12010
lea eax, [ebp - 0xa0]
push 0x433e53
push eax
call fcn.004325f8
add esp, 0x2c
pop edi
jmp 0x430bfd
lea eax, [ebp + 8]
lea esi, [esi + 0x458a02]
push 0
push eax
push dword [esi]
call fcn.0042eb4a
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
Function at 0x430fe1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x431001
xor eax, eax
jmp 0x431167
mov eax, dword [ebp + 8]
sar eax, 5
lea ebx, [eax*4 + 0x45a6ee]
mov eax, dword [ebp + 8]
and eax, 0x1f
lea esi, [eax + eax*8]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x431031
push 2
push edi
push dword [ebp + 8]
call fcn.0042e84d
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x431100
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x43113b
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x43108b
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov cl, byte [ecx]
cmp cl, 0xa
jne 0x431076
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
inc eax
mov ecx, eax
lea edx, [ebp - 0x414]
sub ecx, edx
cmp ecx, 0x400
jl 0x431057
mov edi, eax
lea eax, [ebp - 0x414]
sub edi, eax
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x414]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4310f5
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x4310c7
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x431051
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x431164
cmp dword [ebp + 8], edi
je 0x43113b
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x43112d
call fcn.0042e4e9
mov dword [eax], 9
call fcn.0042e4f2
mov dword [eax], esi
jmp 0x431136
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4310c7
lea ecx, [ebp - 0xc]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x431122
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x4310c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4310c9
push dword [ebp + 8]
call fcn.0042e476
pop ecx
or eax, 0xffffffff
jmp 0x431167
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x431150
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x430ffa
call fcn.0042e4e9
mov dword [eax], 0x1c
call fcn.0042e4f2
mov dword [eax], edi
jmp 0x431136
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret