joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ff2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x4052b4
cmp dword [edi], ebx
je 0x402097
push str._mozilla.org_observer_service_1
mov edx, 0x405838
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.004013c5
mov eax, dword [ebp - 4]
test eax, eax
je 0x402077
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_qm
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_telemetry
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.0040135d
mov eax, dword [ebp - 4]
test eax, eax
je 0x402097
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4020ce
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x4020ce
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.00402f37
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.004036ee
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4020ea
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4020f7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x402103
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x402113
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402733
Capabilities:
Terminate process

Disassembly:
call section..text
push 0
push 0x405018
push 0x405014
call fcn.00402c58
push 0
push 0x405020
push 0x40501c
call fcn.00402c58
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4030f6
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405744]
test eax, eax
je 0x40310f
call eax
test eax, eax
jne 0x40310f
push 0xfffffffffffffffe
jmp 0x403129
push 1
push 0x405010
push 0x405008
call fcn.00402c58
add esp, 0xc
test eax, eax
je 0x40312f
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00402c58
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x403155
mov esi, 0x404561
mov cl, 0x20
jmp 0x40315e
cmp al, 0x20
ja 0x403168
inc esi
mov al, byte [esi]
test al, al
jne 0x403159
cmp al, 0x20
jbe 0x40317f
mov al, byte [esi]
cmp al, 0x22
jne 0x403171
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x40316a
jmp 0x40317f
cmp al, cl
ja 0x403185
inc esi
mov al, byte [esi]
test al, al
jne 0x40317a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x4031ae
movzx eax, word [ebp - 0x14]
jmp 0x4031b1
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00402733
pop ecx
pop esi
leave
ret

Function at 0x4031e8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40515c], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0xfffffc18
push 0xfffffc18
push 0xcf0000
push 0x4055a0
push 0x405608
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403232
xor eax, eax
jmp 0x403249
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4070bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d468
cmp edx, dword [eax]
je 0x4070df
add eax, 8
inc ecx
cmp eax, 0x40d4f8
jl 0x4070d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d468]
jne 0x40720d
mov eax, dword [0x40e498]
cmp eax, 1
je 0x4071e7
test eax, eax
jne 0x407110
cmp dword [0x40d39c], 1
je 0x4071e7
cmp edx, 0xfc
je 0x40720d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407147
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404190
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40718a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404190
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5ec
push edi
call fcn.00408c50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404350
lea eax, [ebp - 0xa0]
push 0x40b5cc
push eax
call fcn.00404350
push dword [esi + 0x40d46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404350
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408bc2
add esp, 0x2c
pop edi
jmp 0x40720d
lea eax, [ebp + 8]
lea esi, [esi + 0x40d46c]
push 0
push eax
push dword [esi]
call fcn.00404190
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 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x406000
Capabilities:
Check for peb beingdebugged flag
Encode data using xor

Disassembly:
je 0x40603d
rol byte [esp + ebp + 0x12e08a], 0
add byte [eax + eax], dh
add byte [eax], al
adc byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor eax, eax
xor ecx, ecx
xor ebx, ebx
xor edx, edx
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 8]
mov eax, ebx
add eax, dword ds:[edi + 0xe]
mov ecx, eax
add ecx, dword ds:[edi + 0xa]
mov edx, dword [edi + 6]
add edx, ebx
xor ebx, ebx
mov ebx, dword ds:[edi + 2]
xor dword ds:[eax], ebx
add eax, 4
cmp eax, ecx
jle 0x40606a
jmp edx
Function at 0x4010c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
call fcn.00402dc0
mov esi, eax
call fcn.00402dc0
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x14]
push eax
lea eax, [esp + 0x14]
push str.About__s____s
push eax
call fcn.0040bb40
mov esi, dword [esp + 0x120]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.00402dc0
mov edi, eax
call fcn.00402dc0
mov edx, dword [edi]
mov ecx, edi
mov ebx, eax
call dword [edx + 0x18]
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
push eax
lea ecx, [esp + 0x14]
push str._s____ID_s_
push ecx
call fcn.0040bb40
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push 0x3f5
push esi
call edi
push 0
call fcn.00402dc0
mov ecx, eax
call fcn.00402b00
test eax, eax
je 0x40119e
push str.Please_do_not_make_illegal_copies_of_this_software
push 0x3f6
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3f8
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x3f9
push esi
call edi
push eax
call ebx
push 0
push 2
push esi
call edi
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x403c80
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
call fcn.00403b70
mov eax, dword [esi + 0x104]
test eax, eax
je 0x403cb4
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x108]
lea ecx, [esp + 0x10]
push 4
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, esi
call fcn.00403bd0
pop esi
ret 0xc

Function at 0x403cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov esi, ecx
push eax
xor edi, edi
call fcn.00403b70
cmp dword [esi + 0x104], edi
je 0x403d40
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esi + 0x108]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403d40
mov edi, 1
mov ecx, esi
call fcn.00403bd0
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x403d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
jne 0x403da7
xor eax, eax
pop edi
pop esi
pop ebx
ret 0x10
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.00403b70
cmp dword [esi + 0x104], ebx
je 0x403df5
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x108]
lea edx, [esp + 0x14]
push edi
push edx
push ebx
push eax
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403df5
mov edx, dword [esp + 0x1c]
mov byte [edx + edi], bl
mov ebx, 1
mov ecx, esi
call fcn.00403bd0
pop edi
mov eax, ebx
pop esi
pop ebx
ret 0x10

Function at 0x40c790
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x41cb28]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40c7af
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 [0x41cb24], 1
mov byte [0x41cb20], bl
jne 0x40c809
mov ecx, dword [0x41df68]
test ecx, ecx
je 0x40c7f7
mov esi, dword [0x41df64]
sub esi, 4
cmp esi, ecx
jb 0x40c7f7
mov eax, dword [esi]
test eax, eax
je 0x40c7f0
call eax
mov ecx, dword [0x41df68]
sub esi, 4
cmp esi, ecx
jae 0x40c7e2
push 0x418020
push 0x418018
call fcn.0040c840
add esp, 8
push 0x41802c
push 0x418024
call fcn.0040c840
add esp, 8
test ebx, ebx
jne 0x40c830
push ebp
mov dword [0x41cb28], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x40ca60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416b48
push 0x411c18
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 [0x41caf8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x41caf4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x41caf0], ecx
shr eax, 0x10
mov dword [0x41caec], eax
call fcn.0040ecb0
test eax, eax
jne 0x40caca
push 0x1c
call fcn.0040cc00
add esp, 4
mov dword [ebp - 4], 0
call fcn.00410050
call fcn.00411c00
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41cf48], eax
call fcn.004117d0
mov dword [0x41cb30], eax
test eax, eax
je 0x40cafd
mov eax, dword [0x41cf48]
test eax, eax
jne 0x40cb07
push 0xffffffffffffffff
call fcn.0040c750
add esp, 4
call fcn.00411520
call fcn.00411430
call fcn.0040c720
mov esi, dword [0x41cf48]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40cbe6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40cb4e
test al, al
je 0x40cb4e
and eax, 0xff
push eax
call fcn.004113d0
add esp, 4
test eax, eax
je 0x40cb28
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40cb28
cmp byte [esi], 0x22
jne 0x40cb57
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40cb67
cmp al, 0x20
ja 0x40cb67
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40cb57
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40cb88
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40cb8d
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.0040c750
jmp 0x40cbcb
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 0x40cb57
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40cbe6
Function at 0x40ea90
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x41cf40]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40ec3d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x41ce40]
lea edi, [ecx*4 + 0x41ce40]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40ec3d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40eafe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40eb0f
push 2
push ebp
push eax
call fcn.0040f850
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40ec6e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40ebb9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40eb6a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40eb57
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 0x40eb3a
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 0x40ec5f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40ebb5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40eb36
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40ec2e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ec02
cmp eax, 5
jne 0x40ebeb
mov dword [0x41cae4], eax
mov dword [0x41cae0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004124d0
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 0x40ec22
cmp byte [ebp], 0x1a
jne 0x40ec22
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41cae0], 0x1c
jmp 0x40ec47
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41cae0], 9
pop edi
pop esi
pop ebp
mov dword [0x41cae4], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40ebb5
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 0x40ec9f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40ebb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40ebb9
Function at 0x4117d0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x41cca8]
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 0x411812
call edi
mov esi, eax
test esi, esi
je 0x4117fc
mov eax, 1
jmp 0x41180d
call ebp
mov ebx, eax
test ebx, ebx
je 0x41191f
mov eax, 2
mov dword [0x41cca8], eax
cmp eax, 1
jne 0x4118b2
test esi, esi
jne 0x41182b
call edi
mov esi, eax
test esi, esi
je 0x41191f
cmp word [esi], 0
mov eax, esi
je 0x411845
add eax, 2
cmp word [eax], 0
jne 0x411833
add eax, 2
cmp word [eax], 0
jne 0x411833
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 0x4118a4
push edi
call fcn.0040c490
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4118a4
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 0x411896
push ebx
call fcn.0040c440
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 0x41191f
test ebx, ebx
jne 0x4118c3
call ebp
mov ebx, eax
test ebx, ebx
je 0x41191f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4118db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4118cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4118cb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040c490
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4118fd
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 0x411d30
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x41c5c0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x411d54
add eax, 8
inc ebp
cmp eax, 0x41c650
jb 0x411d45
cmp ecx, dword [ebp*8 + 0x41c5c0]
jne 0x411efb
mov eax, dword [0x41cb38]
cmp eax, 1
je 0x411ebd
test eax, eax
jne 0x411d80
cmp dword [0x41a1a4], 1
je 0x411ebd
cmp ecx, 0xfc
je 0x411efb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411dbb
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 0x411e04
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 0x416f64
add ebx, ecx
push ebx
call fcn.00412c90
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, 0x416f44
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 + 0x41c5c4]
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.00413ef0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x41ce40]
test eax, eax
je 0x411ece
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x411ed8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41c5c4]
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