joyce8/EMBER2024-capa huggingface dataset:
Function at 0x732000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
cmp dword [0x735154], 0
jne 0x732087
push 0x14
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00732b28
add esp, 0xc
mov byte [ebp - 0x1c], 0x47
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x1b], 0x6c
mov byte [ebp - 0x16], 0x46
mov byte [ebp - 0x1a], 0x6f
mov byte [ebp - 0x15], 0x72
mov byte [ebp - 0x19], 0x62
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x13], 0x65
mov eax, dword [0x735158]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [fcn.0073514c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x732075
mov eax, dword [ebp - 0x20]
mov dword [0x735154], eax
push 0x14
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00732b28
add esp, 0xc
jmp 0x73208f
mov eax, dword [0x735154]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x7320a4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7320a9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x14
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00732b28
add esp, 0xc
mov byte [ebp - 0x18], 0x47
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x15], 0x43
mov byte [ebp - 0x14], 0x75
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x65
mov byte [ebp - 0x10], 0x6e
mov byte [ebp - 0xf], 0x74
mov byte [ebp - 0xe], 0x50
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x73
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x49
mov byte [ebp - 6], 0x64
mov byte [ebp - 5], 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x735158]
push eax
call dword [fcn.0073514c]
mov dword [ebp - 4], eax
push 0x14
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00732b28
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x732142
call dword [ebp - 4]
jmp 0x732149
mov eax, 1
jmp 0x732149
pop edi
pop esi
pop ebx
leave
ret

Function at 0x73226a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov byte [ebp - 0x14], 0x45
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xa], 0x73
mov byte [ebp - 0x13], 0x78
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 8], 0
mov byte [ebp - 0x12], 0x69
mov byte [ebp - 0xd], 0x63
mov byte [ebp - 9], 0
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0x10], 0x50
mov byte [ebp - 0xb], 0x73
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x735158]
push eax
call dword [fcn.0073514c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x7322c2
jmp 0x7322c9
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x732a1c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov byte [ebp - 0x14], 0x56
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xa], 0x6f
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0xe], 0x6c
mov byte [ebp - 9], 0x63
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0xd], 0x41
mov byte [ebp - 8], 0
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0x10], 0x75
mov byte [ebp - 0xb], 0x6c
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x735158]
push eax
call dword [fcn.0073514c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x732a76
xor eax, eax
jmp 0x732a8b
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x18]
jmp 0x732a8b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x732c01
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00732b58
add esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x732c30
mov eax, 0xea61
jmp 0x732cae
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x3c], 0
jne 0x732c40
mov eax, 0xea62
jmp 0x732cae
push 0xf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00732b58
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x732c6d
mov eax, 0xea62
jmp 0x732cae
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x14c
je 0x732c85
mov eax, 0xea65
jmp 0x732cae
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
test ch, 0x10
je 0x732c9a
mov eax, 0xea66
jmp 0x732cae
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x74], 0x10
jbe 0x732caa
mov eax, 0xea67
jmp 0x732cae
xor eax, eax
jmp 0x732cae
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401770
Capabilities:
Delete registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
je 0x4018dc
push 0x5c
push ebp
call fcn.00402280
mov edi, eax
add esp, 8
mov esi, str.HKEY_LOCAL_MACHINE
mov ecx, ebp
mov byte [edi], 0
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x4017bf
test dl, dl
je 0x4017bb
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x4017bf
add ecx, 2
add esi, 2
test dl, dl
jne 0x401797
xor ecx, ecx
jmp 0x4017c4
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x4017d2
mov ebx, 0x80000002
jmp 0x40188d
mov esi, str.HKEY_USERS
mov ecx, ebp
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x401801
test dl, dl
je 0x4017fd
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x401801
add ecx, 2
add esi, 2
test dl, dl
jne 0x4017d9
xor ecx, ecx
jmp 0x401806
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x401811
mov ebx, 0x80000003
jmp 0x40188d
mov esi, str.HKEY_CURRENT_USER
mov ecx, ebp
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x401840
test dl, dl
je 0x40183c
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x401840
add ecx, 2
add esi, 2
test dl, dl
jne 0x401818
xor ecx, ecx
jmp 0x401845
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x401850
mov ebx, 0x80000001
jmp 0x40188d
mov esi, str.HKEY_CLASSES_ROOT
mov ecx, ebp
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x40187f
test dl, dl
je 0x40187b
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x40187f
add ecx, 2
add esi, 2
test dl, dl
jne 0x401857
xor ecx, ecx
jmp 0x401884
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x4018dc
mov ebx, 0x80000000
mov byte [edi], 0x5c
inc edi
push 0x5c
push edi
call fcn.00402240
mov esi, eax
add esp, 8
test esi, esi
je 0x4018dc
lea ecx, [esp + 0x14]
mov byte [esi], 0
push ecx
push 0xf003f
push 0
push edi
push ebx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018dc
mov edx, dword [esp + 0x14]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x4018f0
Capabilities:
Delete registry key

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x401a39
push 0x5c
push edi
call fcn.00402280
mov ebp, eax
add esp, 8
mov esi, str.HKEY_LOCAL_MACHINE
mov ecx, edi
mov byte [ebp], 0x30
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x401940
test dl, dl
je 0x40193c
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x401940
add ecx, 2
add esi, 2
test dl, dl
jne 0x401918
xor ecx, ecx
jmp 0x401945
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x401953
mov edi, 0x80000002
jmp 0x401a0e
mov esi, str.HKEY_USERS
mov ecx, edi
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x401982
test dl, dl
je 0x40197e
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x401982
add ecx, 2
add esi, 2
test dl, dl
jne 0x40195a
xor ecx, ecx
jmp 0x401987
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x401992
mov edi, 0x80000003
jmp 0x401a0e
mov esi, str.HKEY_CURRENT_USER
mov ecx, edi
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x4019c1
test dl, dl
je 0x4019bd
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x4019c1
add ecx, 2
add esi, 2
test dl, dl
jne 0x401999
xor ecx, ecx
jmp 0x4019c6
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x4019d1
mov edi, 0x80000001
jmp 0x401a0e
mov esi, str.HKEY_CLASSES_ROOT
mov ecx, edi
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x401a00
test dl, dl
je 0x4019fc
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x401a00
add ecx, 2
add esi, 2
test dl, dl
jne 0x4019d8
xor ecx, ecx
jmp 0x401a05
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x401a39
mov edi, 0x80000000
lea esi, [ebp + 1]
push 0x5c
push esi
mov byte [ebp], 0x5c
call fcn.00402240
add esp, 8
test eax, eax
je 0x401a39
push esi
push edi
mov byte [eax], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
sete al
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x401d40
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
test esi, esi
push edi
jne 0x401d59
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401d6f
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebx, eax
shr ebx, 4
and bl, 1
test al, 1
je 0x401d85
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov al, byte [esp + 0x38]
test al, al
je 0x401e11
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea eax, [ebx + 2]
push eax
call fcn.00402390
lea ecx, [ebx + 1]
mov ebp, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov byte [ebp + ebx + 1], 0
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
mov word [esp + 0x24], 0x54
mov dword [esp + 0x2a], esi
mov dword [esp + 0x2e], esi
mov dword [esp + 0x26], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push ebp
mov edi, eax
call fcn.00402340
add esp, 4
cmp edi, esi
sete al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test bl, bl
jne 0x401e29
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 1
push esi
call fcn.00401a40
add esp, 8
and eax, 0xff
mov dword [esp + 0x38], eax
pop edi
pop esi
pop ebp
pop ebx
setne al
add esp, 0x20
ret

Function at 0x402170
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push 0
push ecx
push 0x401eb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
ret

Function at 0x4024b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4b3c98]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4024cf
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4b3c94], 1
mov byte [0x4b3c90], bl
jne 0x402529
mov ecx, dword [0x4b5070]
test ecx, ecx
je 0x402517
mov esi, dword [0x4b506c]
sub esi, 4
cmp esi, ecx
jb 0x402517
mov eax, dword [esi]
test eax, eax
je 0x402510
call eax
mov ecx, dword [0x4b5070]
sub esi, 4
cmp esi, ecx
jae 0x402502
push 0x40801c
push 0x408014
call fcn.00402560
add esp, 8
push 0x408024
push 0x408020
call fcn.00402560
add esp, 8
test ebx, ebx
jne 0x402550
push ebp
mov dword [0x4b3c98], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4025b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4047b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4b3c68], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4b3c64], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4b3c60], ecx
shr eax, 0x10
mov dword [0x4b3c5c], eax
call fcn.00403370
test eax, eax
jne 0x40261a
push 0x1c
call fcn.00402750
add esp, 4
mov dword [ebp - 4], 0
call fcn.004044c0
call fcn.004044b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4b5068], eax
call fcn.00404080
mov dword [0x4b3c9c], eax
test eax, eax
je 0x40264d
mov eax, dword [0x4b5068]
test eax, eax
jne 0x402657
push 0xffffffffffffffff
call fcn.00402470
add esp, 4
call fcn.00403dd0
call fcn.00403ce0
call fcn.00402440
mov esi, dword [0x4b5068]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x402736
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40269e
test al, al
je 0x40269e
and eax, 0xff
push eax
call fcn.00403c80
add esp, 4
test eax, eax
je 0x402678
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402678
cmp byte [esi], 0x22
jne 0x4026a7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4026b7
cmp al, 0x20
ja 0x4026b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4026a7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4026d8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4026dd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00402470
jmp 0x40271b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4026a7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402736
Function at 0x404080
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4b3dc0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4040c2
call edi
mov esi, eax
test esi, esi
je 0x4040ac
mov eax, 1
jmp 0x4040bd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4041cf
mov eax, 2
mov dword [0x4b3dc0], eax
cmp eax, 1
jne 0x404162
test esi, esi
jne 0x4040db
call edi
mov esi, eax
test esi, esi
je 0x4041cf
cmp word [esi], 0
mov eax, esi
je 0x4040f5
add eax, 2
cmp word [eax], 0
jne 0x4040e3
add eax, 2
cmp word [eax], 0
jne 0x4040e3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x404154
push edi
call fcn.00402390
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404154
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x404146
push ebx
call fcn.00402340
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4041cf
test ebx, ebx
jne 0x404173
call ebp
mov ebx, eax
test ebx, ebx
je 0x4041cf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40418b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40417b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40417b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402390
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4041ad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4048d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4b2958
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4048f4
add eax, 8
inc ebp
cmp eax, 0x4b29e8
jb 0x4048e5
cmp ecx, dword [ebp*8 + 0x4b2958]
jne 0x404a9b
mov eax, dword [0x4b3ca4]
cmp eax, 1
je 0x404a5d
test eax, eax
jne 0x404920
cmp dword [0x4b0784], 1
je 0x404a5d
cmp ecx, 0xfc
je 0x404a9b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40495b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4049a4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x407358
add ebx, ecx
push ebx
call fcn.00405100
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407338
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4b295c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405070
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4b4f60]
test eax, eax
je 0x404a6e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404a78
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4b295c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x404b70
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4b5060]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x404d1d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x4b4f60]
lea edi, [ecx*4 + 0x4b4f60]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x404d1d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x404bde
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x404bef
push 2
push ebp
push eax
call fcn.00404ab0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x404d4e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x404c99
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x404c4a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x404c37
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x404c1a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404d3f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x404c95
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x404c16
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x404d0e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404ce2
cmp eax, 5
jne 0x404ccb
mov dword [0x4b3c54], eax
mov dword [0x4b3c50], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00405200
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x404d02
cmp byte [ebp], 0x1a
jne 0x404d02
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4b3c50], 0x1c
jmp 0x404d27
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4b3c50], 9
pop edi
pop esi
pop ebp
mov dword [0x4b3c54], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404c95
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404d7f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x404c99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404c99