joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053ee
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 0x40555c
mov dword [ebp - 0x360], eax
push 0x7325
push 0x5c73656c
push 0x75646f6d
mov dword [ebp - 0xe], esp
cmp eax, 0
je 0x405559
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 0x4054cb
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.0040bd96
add esp, 0x28
jmp 0x405541
mov dword [ebp - 0x35c], eax
push 1
push dword [ebp - 0x35c]
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, 0
je 0x405541
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.0040bd96
add esp, 0x2c
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 0x360]
call dword [sym.imp.kernel32.dll_FindNextFileA]
jmp 0x40543c
add esp, 0xc
add esp, 0x10
leave
ret

Function at 0x405e3c
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 0x405eea
mov esi, dword [ebx + 0xbc]
xor edi, edi
cmp edi, dword [ebx + 0xc4]
jae 0x405eea
push dword [ebp - 4]
push dword [esi + edi]
call dword [sym.imp.user32.dll_ShowWindow]
add edi, 0x94
jmp 0x405ece
pop edi
pop esi
leave
ret 4
Function at 0x405f07
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 0x405f45
push 0
push 0x31202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406112
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 0x405f68
cmp byte [ecx + eax], 0
je 0x405f68
inc eax
jmp 0x405f58
cmp eax, 0x100
jae 0x405f70
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 0x405fdc
push 0
push 0x32202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406112
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.0040b7a3
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 0x40607e
push 0
push 0x33202452
push 0x4f525245
push 0x5f4c414e
push 0x5245544e
push 0x495f524f
push 0x52524524
push esp
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406112
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 0x406116
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
leave
ret 8
Function at 0x40b107
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 0x40b14f
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 0x40b14f
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40b20f
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + 3], 8
jne 0x40b206
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 0x40b1fd
pushal
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 3
jae 0x40b1fc
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
add edi, esi
cmp esi, edi
jae 0x40b1f7
cmp dword [ebp - 0x18], 0
jne 0x40b1b0
mov ebx, dword [ebp + 8]
jmp 0x40b1be
cmp dword [ebp - 0x18], 1
jne 0x40b1bb
mov ebx, dword [ebp + 0xc]
jmp 0x40b1be
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
mov al, byte [ebx + ecx]
cmp ecx, 0x20
jae 0x40b1d5
cmp al, 0
je 0x40b1d5
cmp al, byte [esi + ecx + 4]
jne 0x40b1d5
inc ecx
jmp 0x40b1c0
cmp al, 0
jne 0x40b1e0
cmp byte [esi + ecx + 4], 0
je 0x40b1e4
add esi, dword [esi]
jmp 0x40b1a1
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 0x40b1fc
inc dword [ebp - 0x18]
jmp 0x40b193
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 0x40c199
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc89c
cmp dword [ebx + 0xcec], 0
je 0x40c216
lea edx, [ebp - 0xc898]
push edx
push dword [ebp + 8]
push 0
call fcn.0040ca33
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 0x410e81
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 0x410ebb
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 0x410ed5
dec eax
jmp 0x410f2e
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 0x410efb
dec eax
jmp 0x410f23
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 0x410f1d
dec eax
jmp 0x410f23
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 0x410f6c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, dword [ebx + 0x164]
cmp eax, 0xffffffff
jne 0x410f85
cmp dword [ebp + 0xc], 1
jne 0x410f85
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 0x410ff2
xor edx, edx
cmp edx, 7
ja 0x410fdf
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0xfffffffe
shr dword [ebp - 4], 1
and dword [ebp - 4], 0x7fffffff
and eax, 1
je 0x410fdc
xor dword [ebp - 4], 0xedb88320
inc edx
jmp 0x410fba
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 0x410fb3
add esp, 0x10
leave
ret 8
Function at 0x42c948
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.0042cb28
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x42c970
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.0042d724
mov esi, dword [esp + 0x20]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x42c99a
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.0042d724
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 0x42c9fd
mov eax, dword [esp + 0x20]
push ebx
mov dword [eax], 0
call fcn.0042da96
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 0x42cb03
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42caff
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.004335af
add esp, 0xc
test eax, eax
jne 0x42cade
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 8
push ecx
call fcn.0042d724
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 0x42ca0f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov dword [ecx], ebp
call fcn.0042da96
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x42ec09
Capabilities:
Check os version
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x122c
call fcn.0042dd79
lea eax, [ebp - 0x98]
push ebx
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x42ec4c
cmp dword [ebp - 0x88], 2
jne 0x42ec4c
cmp dword [ebp - 0x94], 5
jb 0x42ec4c
push 1
pop eax
jmp 0x42ed4e
lea eax, [ebp - 0x122c]
push 0x1090
push eax
push 0x433bad
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x42ed3b
xor ebx, ebx
lea ecx, [ebp - 0x122c]
cmp byte [ebp - 0x122c], bl
je 0x42ec8e
mov al, byte [ecx]
cmp al, 0x61
jl 0x42ec89
cmp al, 0x7a
jg 0x42ec89
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x42ec7b
lea eax, [ebp - 0x122c]
push 0x16
push eax
push 0x433b95
call fcn.0042db89
add esp, 0xc
test eax, eax
jne 0x42ecb0
lea eax, [ebp - 0x122c]
jmp 0x42ecf9
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 0x42ece4
mov al, byte [ecx]
cmp al, 0x61
jl 0x42ecdf
cmp al, 0x7a
jg 0x42ecdf
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x42ecd1
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x122c]
push eax
call fcn.00431df0
pop ecx
pop ecx
cmp eax, ebx
je 0x42ed3b
push 0x2c
push eax
call fcn.0042d87d
pop ecx
cmp eax, ebx
pop ecx
je 0x42ed3b
inc eax
mov ecx, eax
cmp byte [eax], bl
je 0x42ed20
cmp byte [ecx], 0x3b
jne 0x42ed1b
mov byte [ecx], bl
jmp 0x42ed1c
inc ecx
cmp byte [ecx], bl
jne 0x42ed12
push 0xa
push ebx
push eax
call fcn.00431bca
add esp, 0xc
cmp eax, 2
je 0x42ed4e
cmp eax, 3
je 0x42ed4e
cmp eax, 1
je 0x42ed4e
lea eax, [ebp - 4]
push eax
call fcn.0042ebdc
cmp byte [ebp - 4], 6
pop ecx
sbb eax, eax
add eax, 3
pop ebx
leave
ret
Function at 0x43093a
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 0x430988
call ebp
mov esi, eax
cmp esi, ebx
je 0x430969
mov dword [0x4593a2], 1
jmp 0x430991
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
mov edi, eax
cmp edi, ebx
je 0x430a63
mov dword [0x4593a2], 2
jmp 0x430a17
cmp eax, 1
jne 0x430a12
cmp esi, ebx
jne 0x4309a1
call ebp
mov esi, eax
cmp esi, ebx
je 0x430a63
cmp word [esi], bx
mov eax, esi
je 0x4309b6
inc eax
inc eax
cmp word [eax], bx
jne 0x4309a8
inc eax
inc eax
cmp word [eax], bx
jne 0x4309a8
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 0x430a07
push ebp
call fcn.0042d724
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x430a07
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x430a03
push dword [esp + 0x10]
call fcn.0042da96
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 0x430a65
cmp eax, 2
jne 0x430a63
cmp edi, ebx
jne 0x430a27
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
mov edi, eax
cmp edi, ebx
je 0x430a63
cmp byte [edi], bl
mov eax, edi
je 0x430a37
inc eax
cmp byte [eax], bl
jne 0x430a2d
inc eax
cmp byte [eax], bl
jne 0x430a2d
sub eax, edi
inc eax
mov ebp, eax
push ebp
call fcn.0042d724
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x430a4d
xor esi, esi
jmp 0x430a58
push ebp
push edi
push esi
call fcn.004322c1
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, esi
jmp 0x430a65
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x430aab
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 0x430acd
add eax, 8
inc ecx
cmp eax, 0x458a8e
jb 0x430abe
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4589fe]
jne 0x430bfb
mov eax, dword [0x4590f6]
cmp eax, 1
je 0x430bd5
test eax, eax
jne 0x430afe
cmp dword [0x4590fa], 1
je 0x430bd5
cmp edx, 0xfc
je 0x430bfb
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x430b35
lea eax, [ebp - 0x1a4]
push 0x433e9d
push eax
call fcn.00430d8d
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042eb48
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x430b78
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042eb48
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x433e99
push edi
call fcn.00430c8d
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x433e7d
push eax
call fcn.00430d8d
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00430d99
lea eax, [ebp - 0xa0]
push 0x433e79
push eax
call fcn.00430d99
push dword [esi + 0x458a02]
lea eax, [ebp - 0xa0]
push eax
call fcn.00430d99
push 0x12010
lea eax, [ebp - 0xa0]
push 0x433e51
push eax
call fcn.004325f6
add esp, 0x2c
pop edi
jmp 0x430bfb
lea eax, [ebp + 8]
lea esi, [esi + 0x458a02]
push 0
push eax
push dword [esi]
call fcn.0042eb48
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 0x430fdf
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 0x430fff
xor eax, eax
jmp 0x431165
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 0x43102f
push 2
push edi
push dword [ebp + 8]
call fcn.0042e84b
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4310fe
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x431139
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x431089
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov cl, byte [ecx]
cmp cl, 0xa
jne 0x431074
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 0x431055
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 0x4310f3
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x4310c5
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x43104f
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x431162
cmp dword [ebp + 8], edi
je 0x431139
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x43112b
call fcn.0042e4e7
mov dword [eax], 9
call fcn.0042e4f0
mov dword [eax], esi
jmp 0x431134
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4310c5
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 0x431120
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x4310c7
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4310c7
push dword [ebp + 8]
call fcn.0042e474
pop ecx
or eax, 0xffffffff
jmp 0x431165
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43114e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x430ff8
call fcn.0042e4e7
mov dword [eax], 0x1c
call fcn.0042e4f0
mov dword [eax], edi
jmp 0x431134
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432bf1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x432c55
push 0x3d
push dword [ebp + 8]
call fcn.004331ad
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
mov dword [ebp - 8], esi
je 0x432c55
cmp dword [ebp + 8], esi
je 0x432c55
mov eax, dword [0x459202]
xor ebx, ebx
cmp byte [esi + 1], bl
sete bl
cmp eax, dword [0x459206]
jne 0x432c3b
push eax
call fcn.00432dd0
pop ecx
mov dword [0x459202], eax
cmp eax, edi
jne 0x432c93
cmp dword [ebp + 0xc], edi
je 0x432c5d
cmp dword [0x45920a], edi
je 0x432c5d
call fcn.004326be
test eax, eax
je 0x432c93
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp ebx, edi
jne 0x432d71
push 4
call fcn.0042d724
cmp eax, edi
pop ecx
mov dword [0x459202], eax
je 0x432c55
mov dword [eax], edi
cmp dword [0x45920a], edi
jne 0x432c93
push 4
call fcn.0042d724
cmp eax, edi
pop ecx
mov dword [0x45920a], eax
je 0x432c55
mov dword [eax], edi
sub esi, dword [ebp + 8]
mov edi, dword [0x459202]
mov dword [ebp - 4], edi
push esi
push dword [ebp + 8]
call fcn.00432d78
mov esi, eax
pop ecx
test esi, esi
pop ecx
jl 0x432cf3
cmp dword [edi], 0
je 0x432cf3
test ebx, ebx
je 0x432ceb
push dword [edi + esi*4]
lea edi, [edi + esi*4]
call fcn.0042da96
pop ecx
cmp dword [edi], 0
je 0x432cd5
mov eax, dword [edi + 4]
inc esi
mov dword [edi], eax
add edi, 4
jmp 0x432cc5
mov eax, esi
shl eax, 2
push eax
push dword [ebp - 4]
call fcn.00432e7e
pop ecx
test eax, eax
pop ecx
je 0x432d25
jmp 0x432d20
mov eax, dword [ebp + 8]
mov dword [edi + esi*4], eax
jmp 0x432d25
test ebx, ebx
jne 0x432d71
test esi, esi
jge 0x432cfd
neg esi
lea eax, [esi*4 + 8]
push eax
push edi
call fcn.00432e7e
pop ecx
test eax, eax
pop ecx
je 0x432c55
mov ecx, dword [ebp + 8]
mov dword [eax + esi*4], ecx
and dword [eax + esi*4 + 4], 0
mov dword [0x459202], eax
cmp dword [ebp + 0xc], 0
je 0x432d71
push dword [ebp + 8]
call fcn.0042eb48
inc eax
inc eax
push eax
call fcn.0042d724
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x432d71
push dword [ebp + 8]
push esi
call fcn.00430d8d
mov eax, esi
pop ecx
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 8]
and byte [eax], 0
inc eax
neg ebx
sbb ebx, ebx
not ebx
and ebx, eax
push ebx
push esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push esi
call fcn.0042da96
pop ecx
xor eax, eax
jmp 0x432c58