joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0x4000
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x40e650
push 0x69
push esi
call edi
push 0x64
push 0x40e5e8
push 0x67
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push esi
mov dword [ebp - 0x54], 0x30
mov dword [ebp - 0x4c], 0x4012c0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 3
call edi
push 0x7f00
push 0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x6c
push eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x30], 0x69
mov dword [ebp - 0x2c], str.Charge_Window_App
call edi
push str.riched32.dll
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Magnetick
push str.Charge_Window_App
push 0
mov dword [0x40b619], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x403dce
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call esi
test eax, eax
je 0x403dc3
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call esi
test eax, eax
jne 0x403da3
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403e76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b760
cmp edx, dword [eax]
je 0x403e98
add eax, 8
inc ecx
cmp eax, 0x40b7f0
jl 0x403e89
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b760]
jne 0x403fc6
mov eax, dword [0x40e6d8]
cmp eax, 1
je 0x403fa0
test eax, eax
jne 0x403ec9
cmp dword [0x40b694], 1
je 0x403fa0
cmp edx, 0xfc
je 0x403fc6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x403f00
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406370
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403f43
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4098b8
push edi
call fcn.00407c30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406370
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406380
lea eax, [ebp - 0xa0]
push 0x409898
push eax
call fcn.00406380
push dword [esi + 0x40b764]
lea eax, [ebp + 8]
lea esi, [esi + 0x40b764]
push 0
push eax
push dword [esi]
call fcn.00406460
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]
Function at 0x6b642e40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebx], 0
mov eax, dword [edx]
cmp eax, dword [0x6b64f8f0]
je 0x6b642e80
cmp eax, dword [0x6b64f8e0]
je 0x6b642f70
lea esp, [ebp - 0xc]
mov esi, 0x80004002
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc
mov esi, dword [0x6b64f8f4]
cmp dword [edx + 4], esi
jne 0x6b642e62
mov esi, dword [0x6b64f8f8]
cmp dword [edx + 8], esi
jne 0x6b642e62
mov esi, dword [0x6b64f8fc]
cmp dword [edx + 0xc], esi
jne 0x6b642e62
xor edx, edx
mov eax, 0x6b64d620
jmp 0x6b642ec2
add edx, 1
mov eax, dword [edx*8 + 0x6b6495c0]
test eax, eax
je 0x6b642fa0
mov edi, dword [ecx]
cmp dword [eax], edi
jne 0x6b642eb0
mov esi, dword [ecx + 4]
cmp dword [eax + 4], esi
jne 0x6b642eb0
mov esi, dword [ecx + 8]
cmp dword [eax + 8], esi
jne 0x6b642eb0
mov esi, dword [ecx + 0xc]
cmp dword [eax + 0xc], esi
jne 0x6b642eb0
mov dword [esp + 8], 0xc
mov edi, dword [edx*8 + 0x6b6495c4]
xor esi, esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov dword [eax], 0x6b649598
sub esp, 0xc
mov dword [eax + 4], 1
mov dword [eax + 8], edi
mov dword [ebx], eax
test byte [0x6b647038], 8
je 0x6b642f53
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Created_class_factory__p_n
mov dword [esp + 8], str.ClassFactory_Constructor
mov dword [esp + 4], 0x6b647038
mov dword [esp], 3
call fcn.6b642870
mov eax, 1
mov edx, 0x6b652004
lock xadd dword [edx], eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [0x6b64f8e4]
cmp dword [edx + 4], eax
jne 0x6b642e6e
mov eax, dword [0x6b64f8e8]
cmp dword [edx + 8], eax
jne 0x6b642e6e
mov eax, dword [0x6b64f8ec]
cmp dword [edx + 0xc], eax
jne 0x6b642e6e
jmp 0x6b642ea1
test byte [0x6b647038], 1
jne 0x6b642fc0
lea esp, [ebp - 0xc]
mov esi, 0x80040111
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc
mov eax, ecx
shr eax, 0x10
je 0x6b643066
movzx eax, byte [ecx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ecx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ecx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ecx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ecx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ecx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ecx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ecx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ecx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ecx + 4]
mov dword [esp + 8], eax
mov eax, dword [ecx]
mov dword [esp], 0x6b6493f0
mov dword [esp + 4], eax
call fcn.6b6425f0
mov dword [esp + 0x10], eax
mov esi, 0x80040111
mov dword [esp + 0xc], str.CLSID__s_not_supported_n
mov dword [esp + 8], str.DllGetClassObject
mov dword [esp + 4], 0x6b647038
mov dword [esp], 0
call fcn.6b642870
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
movzx ecx, cx
mov dword [esp], 0x6b6493e0
mov dword [esp + 4], ecx
call fcn.6b6425f0
jmp 0x6b64302d
Function at 0x6b643b80
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x208]
sub esp, 0x214
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.user32.dll_LoadStringW
sub esp, 0x10
cmp word [ebp - 0x208], 0
je 0x6b643c10
mov eax, ebx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x6b643bc0
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
xor edx, edx
sub esp, 0xc
lea esi, [esi]
movzx ecx, word [ebx + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x6b643bf8
mov ebx, dword [ebp - 4]
leave
ret
mov eax, 2
jmp 0x6b643bce

Function at 0x6b644b60
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
test byte [0x6b647058], 8
jne 0x6b644cc0
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x6b644b8a
lea edx, [ebx + 0x58]
lea eax, [ebx + 0x24]
call fcn.6b643da0
xor esi, esi
mov edi, dword fs:[0x18]
mov eax, dword [ebx + esi*4 + 0x30]
mov dword [esp + 4], 0
add esi, 1
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
cmp esi, 3
jne 0x6b644b93
mov eax, dword [ebx + 0x3c]
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebx + 0x40]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebx + 0x68]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebx + 0x6c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov edi, dword fs:[0x18]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
mov eax, dword [ebx + esi*4 + 0x70]
mov dword [esp + 4], 0
add esi, 1
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
cmp esi, 3
jne 0x6b644c45
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x18], 0
lea eax, [ebx + 0xc]
mov dword [esp], eax
call sub.kernel32.dll_DeleteCriticalSection
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov eax, 0xffffffff
mov edx, 0x6b652004
sub esp, 0xc
lock xadd dword [edx], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.destroying__p_n
mov dword [esp + 8], str.ProgressDialog_Destructor
mov dword [esp + 4], 0x6b647058
mov dword [esp], 3
call fcn.6b644390
jmp 0x6b644b78
Function at 0x100072ee
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000732d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000732d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000732d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000732d
cmp dword [ecx + 0x74], 0xe
jbe 0x1000732d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000b939
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000b8bb
Function at 0x1000d781
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000d81e
push ebx
push esi
call fcn.1000d74a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000d6de
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000d7cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d81d
push edi
push eax
call fcn.1000c39a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000d7eb
call fcn.1000c52a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d81c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000d6de
add esp, 0x20
test eax, eax
jne 0x1000d80a
push edi
call fcn.1000c52a
jmp 0x1000d812
push ebx
call fcn.1000c52a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000db3f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019ee8
push 0x10019ee0
push str.FlsAlloc
push 0x1f
call fcn.1000d9db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000db73
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018134]
call esi
jmp 0x1000db79
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000dbbd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019ef8
push 0x10019ef0
push str.FlsGetValue
push 0x21
call fcn.1000d9db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000dbf4
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000dbfc
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019f00
push 0x10019ef8
push str.FlsSetValue
push 0x22
call fcn.1000d9db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000dc36
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10016e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10016ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10016ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10009f64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10009f73
pop dword [ebp - 0x20]
mov eax, 0x87b653cc
add eax, 0x884a4ba7
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x68416ede
add dword [ebp - 0x30], 0xe610d66d
mov dword [ebp - 0x2c], 0xb1591dc6
add dword [ebp - 0x2c], 0x80da2e7f
mov dword [ebp - 0x28], 0x4a95eb9
sub dword [ebp - 0x28], 0xb85d1a8b
mov dword [ebp - 0x24], 0xf6da716e
sub dword [ebp - 0x24], 0xf6da716e
lea eax, [ebp - 0x30]
push eax
mov eax, 0xe9f02fe1
add eax, 0x26117027
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xa5228242
sub dword [ebp - 0x30], 0x30b018ec
mov dword [ebp - 0x2c], 0x3f0c6811
sub dword [ebp - 0x2c], 0xfda0069c
mov dword [ebp - 0x28], 0x25a6e871
sub dword [ebp - 0x28], 0xc2377c05
mov dword [ebp - 0x24], 0x99018e6d
add dword [ebp - 0x24], 0x66fe7193
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x4103c
push 0
call eax
mov ecx, 0x62e9
mov esi, eax
mov edi, 0x4fa88a6a
sub edi, 0x3fa6406a
add edi, dword [ebp - 0x20]
mov edx, 0xc2739c6b
add dword [ebp - 4], 0x7cbe0c36
mov ebx, dword [edi]
xor dword [ebp - 0x10], 0xb16e1b84
sub ebx, edx
mov dword [ebp - 8], 0x4f657fff
mov dword [esi], ebx
xor dword [ebp - 0x18], edx
add esi, 4
add edi, 0xe7f144af
add edi, 0x180ebb55
loop 0x1000a084
add eax, 0x17e77
mov ebx, eax
add eax, 5
mov ecx, 0xc115206d
sub ecx, 0xb115206d
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x406eb9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406ef8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406ef8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406ef8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406ef8
cmp dword [ecx + 0x74], 0xe
jbe 0x406ef8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x415c1a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4281e0
push 0x4281d8
push str.FlsAlloc
push 0x1e
call fcn.00415a87
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415c4e
push dword [ebp + 8]
mov ecx, esi
call dword [0x424138]
call esi
jmp 0x415c54
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415c98
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4281f0
push 0x4281e8
push str.FlsGetValue
push 0x20
call fcn.00415a87
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415ccf
push dword [ebp + 8]
mov ecx, esi
call dword [0x424138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41709f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416d41

Function at 0x4170aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416ed0
Function at 0x418715
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407020
mov eax, dword [0x42e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415466
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418757
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4188b3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422180
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42f950]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418b3b
mov ecx, dword [esi*4 + 0x42f950]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4188ac
cmp eax, dword [edi + ecx + 0x24]
jne 0x4188ac
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4188ac
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418b3b
add esp, 0x14
test edx, edx
jl 0x4188ac
jg 0x418822
test eax, eax
jb 0x4188ac
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4188ac
jl 0x41883c
cmp dword [ebp - 0x1008], eax
ja 0x4188ac
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41885a
test ebx, ebx
je 0x418893
cmp ecx, edi
jae 0x418893
mov al, byte [ecx]
cmp al, 0xd
jne 0x418874
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418880
cmp byte [ecx + 1], 0xa
jne 0x418880
inc ecx
jmp 0x418880
movzx eax, al
movsx eax, byte [eax + 0x42e9b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41885a
cmp edx, ebx
jne 0x41885a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4188b1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004062ac
leave
ret
Function at 0x41a361
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41a3fe
push ebx
push esi
call fcn.0041a32a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00418faf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41a3ab
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a3fd
push edi
push eax
call fcn.004145c0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41a3cb
call fcn.00414396
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a3fc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418faf
add esp, 0x20
test eax, eax
jne 0x41a3ea
push edi
call fcn.00414396
jmp 0x41a3f2
push ebx
call fcn.00414396
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41ef94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42f950]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41efd4
cmp byte [ebx], 0xa
jne 0x41efd4
or byte [eax + edi + 0x28], 4
jmp 0x41efd9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41f0d7
mov al, byte [edx]
cmp al, 0x1a
je 0x41f0b9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41f008
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41f02d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41f037
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41efea
jmp 0x41f0d7
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f0b4
cmp dword [ebp - 0xc], 0
je 0x41f0b4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42f950]
test byte [eax + edi + 0x28], 0x48
je 0x41f08e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f079
mov byte [esi], dl
jmp 0x41f08a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42f950]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f0d7
cmp byte [ebp - 1], 0xa
jne 0x41f09d
cmp esi, ebx
jne 0x41f09d
mov byte [esi], 0xa
jmp 0x41f0d6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418b59
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f0d7
mov byte [esi], 0xd
jmp 0x41f0d6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42f950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f0d3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f0d7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret