joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406de0
Capabilities:
Hash data using sha256

Disassembly:
mov edx, ecx
mov dword [edx + 8], 0x6a09e667
mov dword [edx + 0xc], 0xbb67ae85
mov dword [edx + 0x10], 0x3c6ef372
mov dword [edx + 0x14], 0xa54ff53a
mov dword [edx + 0x18], 0x510e527f
mov dword [edx + 0x1c], 0x9b05688c
mov dword [edx + 0x20], 0x1f83d9ab
mov dword [edx + 0x24], 0x5be0cd19
mov dword [edx + 4], 0
mov dword [edx], 0
xor eax, eax
push edi
lea edi, [edx + 0x28]
add edx, 0xa8
mov ecx, 0x20
rep stosd dword es:[edi], eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
pop edi
ret

Function at 0x407bd0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x412d18
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x10]
mov esi, ecx
mov ebp, dword [esi + 0x10]
cmp ebp, eax
mov ecx, dword [esi + 0xc]
jne 0x407c09
mov eax, dword [edi + 0xc]
push eax
call fcn.004077a0
jmp 0x407c6a
push ebx
mov ebx, dword [edi + 0xc]
push ebx
call fcn.00407680
test eax, eax
jl 0x407c1f
push ebx
call fcn.00407810
jmp 0x407c69
xor ebx, ebx
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ecx
call fcn.00407870
push edi
mov ecx, esi
mov dword [esp + 0x30], ebx
mov dword [esi + 0xc], esi
call fcn.00407870
mov edx, dword [edi + 0x10]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esi + 0x10], edx
call fcn.00407bd0
lea ecx, [esp + 0x10]
call fcn.00407b90
pop ebx
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x407c80
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x412d18
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x10]
mov esi, ecx
mov ebp, dword [esi + 0x10]
cmp ebp, eax
mov ecx, dword [esi + 0xc]
je 0x407cb9
mov eax, dword [edi + 0xc]
push eax
call fcn.004077a0
jmp 0x407d27
push ebx
mov ebx, dword [edi + 0xc]
push ebx
call fcn.00407680
test eax, eax
jl 0x407ccf
push ebx
call fcn.00407810
jmp 0x407d26
xor ebx, ebx
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ecx
call fcn.00407870
push edi
mov ecx, esi
mov dword [esp + 0x30], ebx
mov dword [esi + 0xc], esi
call fcn.00407870
mov edx, dword [edi + 0x10]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esi + 0x10], edx
call fcn.00407c80
mov eax, dword [esi + 0x10]
mov ecx, 1
sub ecx, eax
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00407b90
pop ebx
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x407d40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x412d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x10]
push esi
push edi
xor edi, edi
lea edx, [esp + 0xc]
mov dword [esp + 0x1c], ecx
push eax
mov ecx, edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
call fcn.00407870
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call fcn.00407bd0
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
mov dword [esi + 0x10], ecx
push edx
mov ecx, esi
mov dword [esi + 4], edi
mov dword [esi], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], esi
call fcn.00407870
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x407dcd
mov ecx, dword [esp + 0xc]
dec eax
mov dword [ecx + eax*4], edi
jne 0x407dc3
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407dde
push eax
call fcn.00409615
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x407e00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x412d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x10]
push esi
push edi
xor edi, edi
lea edx, [esp + 0xc]
mov dword [esp + 0x1c], ecx
push eax
mov ecx, edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
call fcn.00407870
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call fcn.00407c80
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
mov dword [esi + 0x10], ecx
push edx
mov ecx, esi
mov dword [esi + 4], edi
mov dword [esi], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], esi
call fcn.00407870
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x407e8d
mov ecx, dword [esp + 0xc]
dec eax
mov dword [ecx + eax*4], edi
jne 0x407e83
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407e9e
push eax
call fcn.00409615
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40afd7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x40aff4
call fcn.0040f299
mov dword [eax], 0x16
xor eax, eax
jmp 0x40b05e
push esi
push 0x8c
push 1
call fcn.0040f31e
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40b049
push esi
call fcn.0040d4cd
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x40b027
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40af42
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x40b05d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
call fcn.00409615
test ebx, ebx
pop ecx
je 0x40b05b
push ebx
call fcn.0040f2ab
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b195
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x414e90
call fcn.0040c0ec
mov edi, 0x94
mov eax, edi
call fcn.00409bb0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41c8f4], ecx
mov eax, dword [esi + 4]
mov dword [0x41c900], eax
mov edx, dword [esi + 8]
mov dword [0x41c904], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41c8f8], esi
cmp ecx, 2
je 0x40b1f5
or esi, 0x8000
mov dword [0x41c8f8], esi
shl eax, 8
add eax, edx
mov dword [0x41c8fc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40b230
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b230
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40b248
cmp eax, 0x20b
je 0x40b235
mov dword [ebp - 0x1c], esi
jmp 0x40b25c
cmp dword [ecx + 0x84], 0xe
jbe 0x40b230
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40b256
cmp dword [ecx + 0x74], 0xe
jbe 0x40b230
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040b576
pop ecx
test eax, eax
jne 0x40b270
push 0x1c
call fcn.0040b171
pop ecx
call fcn.0040d6c7
test eax, eax
jne 0x40b281
push 0x10
call fcn.0040b171
pop ecx
call fcn.0040ff97
mov dword [ebp - 4], esi
call fcn.0040fd99
test eax, eax
jge 0x40b29a
push 0x1b
call fcn.0040b14c
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x41df04], eax
call fcn.0040fc77
mov dword [0x41c68c], eax
call fcn.0040fbd5
test eax, eax
jge 0x40b2c0
push 8
call fcn.0040b14c
pop ecx
call fcn.0040f9a2
test eax, eax
jge 0x40b2d1
push 9
call fcn.0040b14c
pop ecx
push 1
call fcn.0040efc8
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40b2e7
push eax
call fcn.0040b14c
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0040f945
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40b308
movzx eax, word [ebp - 0x40]
jmp 0x40b30b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402cc0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40b329
push edi
call fcn.0040f0f5
call fcn.0040f117
jmp 0x40b35b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040c127
ret
Function at 0x40e67e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00409bb0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40e719
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41c8f4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40e719
cmp eax, 1
je 0x40e73a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40e719
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40e6e6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40e715
xor eax, eax
inc eax
jmp 0x40e759
cmp edi, eax
jae 0x40e71d
xor eax, eax
jmp 0x40e759
cmp eax, esi
jae 0x40e724
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x41c8f4]
jmp 0x40e73d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f032
Capabilities:
Terminate process

Disassembly:
push 8
push 0x415218
call fcn.0040c0ec
push 8
call fcn.0040b52b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41c934], esi
jne 0x40f066
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x41c930], esi
mov al, byte [ebp + 0x10]
mov byte [0x41c92c], al
cmp dword [ebp + 0xc], edi
jne 0x40f0b0
cmp dword [0x41dca8], edi
je 0x40f0a0
mov eax, dword [0x41dca4]
sub eax, 4
mov dword [0x41dca4], eax
cmp eax, dword [0x41dca8]
jb 0x40f0a0
mov eax, dword [eax]
cmp eax, edi
je 0x40f081
call eax
jmp 0x40f081
push 0x41804c
mov eax, 0x418044
call fcn.0040efb0
pop ecx
push 0x418058
mov eax, 0x418050
call fcn.0040efb0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f0e1
cmp dword [ebp + 0x10], edi
jne 0x40f0ef
mov dword [0x41c934], esi
push dword [ebp + 8]
call fcn.0040ef6e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f0ee
push 8
call fcn.0040b476
pop ecx
ret
call fcn.0040c127
ret
Function at 0x40f795
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4195b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x419b00]
je 0x40f7ca
inc eax
cmp eax, 0x13
jb 0x40f7bb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x419b00]
jne 0x40f8f0
mov eax, dword [0x41c694]
cmp eax, 1
je 0x40f8c8
cmp eax, edx
jne 0x40f7fa
cmp dword [0x419474], 1
je 0x40f8c8
cmp ecx, 0xfc
je 0x40f8f0
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40f830
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040daf0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040dbf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40f864
mov eax, edi
push eax
call fcn.0040dbf0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x415644
push edi
call fcn.0040ade0
add esp, 0x10
push edi
call fcn.0040dbf0
push dword [esi + 0x419b04]
mov ebx, eax
call fcn.0040dbf0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00409bb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040daf0
push edi
push ebx
call fcn.0040db00
push 0x41412c
push ebx
call fcn.0040db00
push dword [esi + 0x419b04]
push ebx
call fcn.0040db00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041150f
add esp, 0x2c
jmp 0x40f8f0
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x419b04]
push dword [esi]
call fcn.0040dbf0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00410902
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4100ba
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4100e8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4100ef
cmp ebx, dword [eax + 4]
jae 0x4100ef
xor eax, eax
jmp 0x4102df
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x410100
xor eax, eax
inc eax
jmp 0x4102de
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410116
cmp ecx, edx
jae 0x41025b
cmp dword [eax + 4], 0
je 0x41011f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410107
cmp dword [ebp + 8], 0
je 0x410141
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41025b
cmp eax, esi
jae 0x41025b
mov eax, dword [0x41ca50]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x410166
cmp dword [esi*4 + 0x41ca58], edi
je 0x41025f
inc esi
cmp esi, eax
jl 0x410154
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4102db
cmp dword [ebp - 8], 0x1000000
jne 0x4102db
test byte [ebp - 0xc], 0xcc
je 0x4101e4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4102db
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4102db
cmp word [eax + 0x18], 0x10b
jne 0x4102db
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4102db
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4101e4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4101e4
test byte [ecx + 0x27], 0x80
jne 0x41025b
push 1
push 0x41ca98
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x4100f8
mov ecx, dword [0x41ca50]
test ecx, ecx
mov edx, ecx
jle 0x410218
lea eax, [ecx*4 + 0x41ca54]
cmp dword [eax], edi
je 0x410218
dec edx
sub eax, 4
test edx, edx
jg 0x41020c
test edx, edx
jne 0x410249
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410225
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41023d
lea eax, [edx*4 + 0x41ca58]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41022b
cmp ecx, 0x10
jge 0x410249
inc ecx
mov dword [0x41ca50], ecx
push 0
push 0x41ca98
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x4100f8
xor eax, eax
jmp 0x4102de
test esi, esi
jle 0x4100f8
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x41ca98
call ebx
test eax, eax
jne 0x4100f8
cmp dword [esi*4 + 0x41ca58], edi
je 0x4102b5
mov eax, dword [0x41ca50]
lea esi, [eax - 1]
test esi, esi
jl 0x4102a3
cmp dword [esi*4 + 0x41ca58], edi
je 0x41029f
dec esi
jns 0x410293
test esi, esi
jge 0x4102b3
cmp eax, 0x10
jge 0x4102ae
inc eax
mov dword [0x41ca50], eax
lea esi, [eax - 1]
jmp 0x4102b5
je 0x4102cd
xor ecx, ecx
test esi, esi
jl 0x4102cd
lea eax, [ecx*4 + 0x41ca58]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4102bb
push 0
push 0x41ca98
call ebx
jmp 0x4100f8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410402
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4195b0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x410433
xor eax, eax
jmp 0x4105bc
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x41dba0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41046f
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004117ce
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41054a
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x410588
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4104d3
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4104c4
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4104a4
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x410513
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41051c
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x410495
jmp 0x41051e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4105b7
cmp dword [ebp - 0x6c], edi
je 0x410588
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41057d
call fcn.0040f299
mov dword [eax], 9
call fcn.0040f2a2
mov dword [eax], esi
jmp 0x4105b2
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x410572
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41051e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41051e
push dword [ebp - 0x6c]
call fcn.0040f2ab
pop ecx
jmp 0x4105b2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4105a0
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4105a0
xor eax, eax
jmp 0x4105ba
call fcn.0040f299
mov dword [eax], 0x1c
call fcn.0040f2a2
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4105ba
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00410902
add ebp, 0x3a0
leave
ret
Function at 0x41150f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41cb1c], ebx
push esi
push edi
jne 0x41158f
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4115ca
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x415c74
push edi
call esi
test eax, eax
mov dword [0x41cb1c], eax
je 0x4115ca
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41cb20], eax
call esi
cmp dword [0x41c8f4], 2
mov dword [0x41cb24], eax
jne 0x41158f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41cb2c], eax
je 0x41158f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41cb28], eax
mov eax, dword [0x41cb28]
test eax, eax
je 0x4115d4
call eax
test eax, eax
je 0x4115bb
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41cb2c]
test eax, eax
je 0x4115bb
test byte [ebp - 8], 1
jne 0x4115d4
cmp dword [0x41c900], 4
jb 0x4115ce
or byte [ebp + 0x12], 0x20
jmp 0x4115f3
xor eax, eax
jmp 0x411603
or byte [ebp + 0x12], 4
jmp 0x4115f3
mov eax, dword [0x41cb20]
test eax, eax
je 0x4115f3
call eax
mov ebx, eax
test ebx, ebx
je 0x4115f3
mov eax, dword [0x41cb24]
test eax, eax
je 0x4115f3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41cb1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4126bf
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4126d8
or eax, 0xffffffff
jmp 0x412739
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x412735
push 0x3d
push esi
call fcn.00412a08
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x412735
cmp esi, eax
je 0x412735
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x41c914]
sete cl
cmp eax, dword [0x41c918]
mov dword [ebp - 8], ecx
jne 0x41271b
mov edi, eax
call fcn.0041265e
mov dword [0x41c914], eax
cmp eax, ebx
jne 0x412774
cmp dword [ebp + 0xc], ebx
je 0x41273d
cmp dword [0x41c91c], ebx
je 0x41273d
call fcn.00411e01
test eax, eax
je 0x412774
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x412746
xor eax, eax
jmp 0x412738
push 4
call fcn.00409603
cmp eax, ebx
pop ecx
mov dword [0x41c914], eax
je 0x412735
mov dword [eax], ebx
cmp dword [0x41c91c], ebx
jne 0x412774
push 4
call fcn.00409603
cmp eax, ebx
pop ecx
mov dword [0x41c91c], eax
je 0x412735
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x41c914]
call fcn.00412611
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4127d5
cmp dword [esi], ebx
je 0x4127d5
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00409615
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4127b8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x412816
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4127af
mov eax, edi
shl eax, 2
push eax
push dword [0x41c914]
call fcn.00411e91
cmp eax, ebx
pop ecx
pop ecx
je 0x412816
jmp 0x412811
cmp dword [ebp - 8], ebx
jne 0x412881
cmp edi, ebx
jge 0x4127e4
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x41c914]
call fcn.00411e91
cmp eax, ebx
pop ecx
pop ecx
je 0x412735
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x41c914], eax
cmp dword [ebp + 0xc], ebx
je 0x41286b
push dword [ebp - 4]
call fcn.0040dbf0
inc eax
inc eax
push eax
call fcn.00409603
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41286b
push dword [ebp - 4]
push esi
call fcn.0040daf0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x412864
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00409615
pop ecx
cmp dword [ebp - 8], ebx
je 0x412879
push dword [ebp - 4]
call fcn.00409615
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x412738
push dword [ebp - 4]
call fcn.00409615
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x412742