joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427baa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x427be3
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040c3c7
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040530e
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x429104
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x459e4c
mov ecx, edi
call fcn.00401639
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x429157
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42916a
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040c3c7
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040530e
jmp 0x42916a
mov ecx, esi
call fcn.0042a537
test eax, eax
je 0x42916a
push edi
mov ecx, eax
call fcn.00427baa
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x429648
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42968b
call fcn.0042f798
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42968b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4296a6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00429202
test ebx, ebx
mov esi, eax
je 0x4296a4
test edi, edi
je 0x4296a4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x42a23d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x44eb2e
call fcn.0043b161
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0042f798
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x42a288
call fcn.0042f798
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x42a299
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x42a2a6
or eax, 0xffffffff
jmp 0x42a402
mov ecx, esi
call fcn.00429d84
mov dword [ebp - 0x14], eax
call fcn.00426c33
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x42a324
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42a324
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42a324
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00425819
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x42a324
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x42a324
mov ecx, ebx
call fcn.0042a710
test eax, eax
je 0x42a324
push 0
mov ecx, ebx
call fcn.0042a72b
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004284be
push dword [ebp - 0x14]
call fcn.00426b8b
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042a045
xor edi, edi
cmp eax, edi
je 0x42a381
test byte [esi + 0x3c], 0x10
je 0x42a36b
push 4
pop edi
mov ecx, esi
call fcn.0042a5f7
test ax, 0x100
je 0x42a361
push 5
pop edi
push edi
mov ecx, esi
call fcn.00426753
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x42a381
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042a792
or dword [ebp - 4], 0xffffffff
jmp 0x42a3ac
cmp dword [ebp - 0x28], edi
je 0x42a3ba
push 1
mov ecx, ebx
call fcn.0042a72b
cmp dword [ebp - 0x2c], edi
je 0x42a3ca
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42a3e3
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x42a3e3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00429dbe
cmp dword [esi + 0x58], edi
je 0x42a3ff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043b206
ret
Function at 0x42a46c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x42a48c
cmp dword [edi + 0x54], 0
jne 0x42a48c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042f798
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042a433
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x431117
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x46cd08]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x4311b5
push 0x4570fc
push 4
push eax
call fcn.00438a4a
push eax
call fcn.004015e5
add esp, 0x10
push ebx
push edi
call fcn.0043b4f6
mov edi, dword [eax]
call fcn.0043b4f6
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0043b49c
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043b4f6
cmp dword [eax], ebx
je 0x4311cc
call fcn.0043b4f6
push dword [eax]
call fcn.004176a0
pop ecx
jmp 0x4311d3
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x431166
jmp 0x431245
call fcn.0043b4f6
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x431241
cmp dword [ebp - 0x40], esi
jae 0x431241
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00436130
add esp, 0xc
push 0x456740
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x431233
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x431233
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x431233
push ebx
push ebx
push esi
jmp 0x431239
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x431243
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.004355b1
add ebp, 0x1f4
leave
ret
Function at 0x4355b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46cd08]
jne 0x4355bb
repz ret
jmp fcn.0043da13
Function at 0x43a47a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43a4b7
cmp dword [ebp + 0x14], edi
je 0x43a4b7
cmp ecx, edi
jne 0x43a4be
call fcn.0043b4f6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043df8b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43a4d2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43a4f3
cmp ebx, 0xffffffff
je 0x43a4e2
push ebx
push edi
push ecx
call fcn.00436130
add esp, 0xc
cmp esi, edi
je 0x43a49f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43a49f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43a50f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43a516
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43a607
test word [esi + 0xc], 0x10c
je 0x43a56a
mov eax, dword [esi + 4]
test eax, eax
je 0x43a56a
jl 0x43a668
cmp ebx, eax
mov edi, ebx
jb 0x43a53b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43a60f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00435bfb
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43a5ff
cmp ebx, dword [ebp - 0xc]
jb 0x43a5d7
cmp dword [ebp - 0xc], 0
je 0x43a594
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43a589
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43a590
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43a59f
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43a59f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43a63b
push eax
push dword [ebp - 8]
push esi
call fcn.0043ba1a
pop ecx
push eax
call fcn.00445fca
add esp, 0xc
test eax, eax
je 0x43a67a
cmp eax, 0xffffffff
je 0x43a668
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43a5ff
push esi
call fcn.00444157
cmp eax, 0xffffffff
pop ecx
je 0x43a66c
cmp dword [ebp - 4], 0
je 0x43a63b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43a51e
mov eax, dword [ebp + 0x14]
jmp 0x43a4b9
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43a626
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00436130
add esp, 0xc
call fcn.0043b4f6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43a4af
cmp dword [ebp + 0xc], 0xffffffff
je 0x43a651
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00436130
add esp, 0xc
call fcn.0043b4f6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43a4af
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43a4b9
or dword [esi + 0xc], 0x10
jmp 0x43a66c
Function at 0x43c787
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x46ce90]
je 0x43c7a2
inc edi
cmp edi, 0x17
jb 0x43c793
cmp edi, 0x17
jae 0x43c922
push ebp
push 3
call fcn.00448f3f
cmp eax, 1
pop ecx
je 0x43c8ee
push 3
call fcn.00448f3f
test eax, eax
pop ecx
jne 0x43c7d6
cmp dword [0x46c9dc], 1
je 0x43c8ee
cmp ebx, 0xfc
je 0x43c921
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x470d08
push ebp
call fcn.00448eda
add esp, 0xc
test eax, eax
je 0x43c80c
push esi
push esi
push esi
push esi
push esi
call fcn.0043de8f
add esp, 0x14
push 0x104
mov esi, 0x470d21
push esi
push 0
mov byte [0x470e25], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43c850
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00448eda
add esp, 0xc
test eax, eax
je 0x43c850
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043de8f
add esp, 0x14
push esi
call fcn.00438e90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43c895
push esi
call fcn.00438e90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47101c
push 0x458594
sub ecx, eax
push ecx
push eax
call fcn.00448e27
add esp, 0x14
test eax, eax
je 0x43c895
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043de8f
add esp, 0x14
jmp 0x43c897
xor esi, esi
push 0x458590
push ebx
push ebp
call fcn.00448db6
add esp, 0xc
test eax, eax
je 0x43c8b7
push esi
push esi
push esi
push esi
push esi
call fcn.0043de8f
add esp, 0x14
push dword [edi*8 + 0x46ce94]
push ebx
push ebp
call fcn.00448db6
add esp, 0xc
test eax, eax
je 0x43c8d9
push esi
push esi
push esi
push esi
push esi
call fcn.0043de8f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00448bf9
add esp, 0xc
jmp 0x43c921
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43c921
cmp ebp, 0xffffffff
je 0x43c921
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46ce94]
push dword [esi]
call fcn.00438e90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x448bf9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043d34b
xor ebx, ebx
cmp dword [0x47180c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x448ccf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x448daf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x448daf
push eax
call fcn.0043d2dd
mov dword [esp], 0x4589e8
push edi
mov dword [0x47180c], eax
call esi
push eax
call fcn.0043d2dd
mov dword [esp], 0x4589d4
push edi
mov dword [0x471810], eax
call esi
push eax
call fcn.0043d2dd
mov dword [0x471814], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043903e
test eax, eax
pop ecx
pop ecx
je 0x448c9d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043de8f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x448ccf
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043d2dd
cmp eax, ebx
pop ecx
mov dword [0x47181c], eax
je 0x448ccf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043d2dd
pop ecx
mov dword [0x471818], eax
mov eax, dword [0x471818]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x448d54
cmp dword [0x47181c], ecx
je 0x448d54
push eax
call fcn.0043d354
push dword [0x47181c]
mov esi, eax
call fcn.0043d354
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x448d54
cmp edi, ebx
je 0x448d54
call esi
cmp eax, ebx
je 0x448d21
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x448d21
test byte [ebp - 0x18], 1
jne 0x448d54
lea eax, [ebp - 0x10]
push eax
call fcn.00439075
test eax, eax
pop ecx
je 0x448d3c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043de8f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x448d4b
or dword [ebp + 0x10], 0x200000
jmp 0x448d8f
or dword [ebp + 0x10], 0x40000
jmp 0x448d8f
mov eax, dword [0x471810]
cmp eax, dword [ebp - 8]
je 0x448d8f
push eax
call fcn.0043d354
cmp eax, ebx
pop ecx
je 0x448d8f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x448d8f
mov eax, dword [0x471814]
cmp eax, dword [ebp - 8]
je 0x448d8f
push eax
call fcn.0043d354
cmp eax, ebx
pop ecx
je 0x448d8f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47180c]
call fcn.0043d354
cmp eax, ebx
pop ecx
je 0x448daf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x448db1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401465
Capabilities:
Encode data using xor

Disassembly:
jmp 0x418f56
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x419021
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.1110
mov ebp, 0x751288
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0xf5
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x85
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x60
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0xd7
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x4e
push ebx
push ebp
call fcn.004032a6
add esp, 0x44
push eax
call fcn.00406ff5
add byte [esi + edi], 0x59
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x6c
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x10
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0x6b
add esp, 0x28
inc esi
cmp esi, dword [esp + 0x18]
jb 0x418f74
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x403c7e
Capabilities:
Terminate process

Disassembly:
jmp 0x45aa49
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45aa5a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040665e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403e09
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a45a2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a45b3
pop esi
ret
push ebx
push edi
push esi
call fcn.004a4489
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040488b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a45db
push ebx
push esi
push edi
call fcn.004063fc
add esp, 0xc
push 0
call fcn.00407185
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4064d3
Capabilities:
Parse pe header

Disassembly:
jmp 0x44987f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4498be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4498be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4498be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4498be
cmp dword [ecx + 0x74], 0xe
jbe 0x4498be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x41966d
sub esp, 0x20
mov eax, dword [0x74d3a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4196e5
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040209f
test esi, esi
je 0x4196d2
cmp dword [esp + 0x38], 3
jbe 0x4196d2
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004031f2
pop ecx
pop ecx
test eax, eax
je 0x4196d2
cmp eax, dword [esp + 0x38]
je 0x4196fd
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402de7
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x41969e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004035df
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402de7
jmp 0x4196e7
Function at 0x49ae95
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040201d
mov eax, dword [0x74d3a0]
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.00406cd0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49aed7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49b033
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406e5b
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 + 0x7528c8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403855
mov ecx, dword [esi*4 + 0x7528c8]
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 0x49b02c
cmp eax, dword [edi + ecx + 0x24]
jne 0x49b02c
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 0x49b02c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403855
add esp, 0x14
test edx, edx
jl 0x49b02c
jg 0x49afa2
test eax, eax
jb 0x49b02c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49b02c
jl 0x49afbc
cmp dword [ebp - 0x1008], eax
ja 0x49b02c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49afda
test ebx, ebx
je 0x49b013
cmp ecx, edi
jae 0x49b013
mov al, byte [ecx]
cmp al, 0xd
jne 0x49aff4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49b000
cmp byte [ecx + 1], 0xa
jne 0x49b000
inc ecx
jmp 0x49b000
movzx eax, al
movsx eax, byte [eax + 0x74d6b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49afda
cmp edx, ebx
jne 0x49afda
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49b031
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004035df
leave
ret
Function at 0x49b238
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 + 0x7528c8]
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 0x49b278
cmp byte [ebx], 0xa
jne 0x49b278
or byte [eax + edi + 0x28], 4
jmp 0x49b27d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49b37b
mov al, byte [edx]
cmp al, 0x1a
je 0x49b35d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49b2ac
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49b2d1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49b2db
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 0x49b28e
jmp 0x49b37b
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 0x49b358
cmp dword [ebp - 0xc], 0
je 0x49b358
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x7528c8]
test byte [eax + edi + 0x28], 0x48
je 0x49b332
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49b31d
mov byte [esi], dl
jmp 0x49b32e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7528c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49b37b
cmp byte [ebp - 1], 0xa
jne 0x49b341
cmp esi, ebx
jne 0x49b341
mov byte [esi], 0xa
jmp 0x49b37a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401af5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49b37b
mov byte [esi], 0xd
jmp 0x49b37a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x7528c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49b377
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49b37b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret