joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
cmp esi, dword [ebp + 0x10]
jge 0x401191
mov eax, dword [ebp - 0x10]
push 3
pop edx
cmp eax, edx
mov dword [ebp - 0xc], edx
jge 0x401032
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, 0x3d3d3d3d
lea edi, [ebp - 4]
stosw word es:[edi], ax
test ecx, ecx
stosb byte es:[edi], al
jle 0x401059
mov eax, dword [ebp + 8]
lea edi, [ebp - 4]
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, edx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp - 4]
mov al, cl
shr al, 2
test ebx, ebx
mov byte [ebp - 1], al
je 0x40108e
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x401096
mov eax, ebx
mov esi, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x401099
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
jmp 0x401099
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
jmp 0x401099
mov esi, dword [ebp + 0xc]
movzx eax, byte [ebp - 1]
mov edx, dword [str._f__Ll]
and cl, 3
shl cl, 4
mov al, byte [eax + edx]
mov byte [ebx + esi], al
mov al, byte [ebp - 3]
mov dl, al
inc ebx
shr dl, 4
add cl, dl
test ebx, ebx
je 0x4010df
test edi, edi
jle 0x4010df
mov eax, ebx
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x4010dc
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
mov al, byte [ebp - 3]
mov edx, dword [str._f__Ll]
and al, 0xf
movzx ecx, cl
shl al, 2
mov cl, byte [ecx + edx]
mov byte [ebx + esi], cl
mov cl, byte [ebp - 2]
mov dl, cl
inc ebx
shr dl, 6
add al, dl
test ebx, ebx
mov byte [ebp - 1], al
je 0x401123
test edi, edi
jle 0x401123
mov eax, ebx
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x401123
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
movzx eax, byte [ebp - 1]
mov edx, dword [str._f__Ll]
mov al, byte [eax + edx]
mov byte [ebx + esi], al
inc ebx
cmp dword [ebp - 0xc], 2
jg 0x40113f
mov byte [ebx + esi - 1], 0x3d
and cl, 0x3f
test ebx, ebx
je 0x401164
test edi, edi
jle 0x401164
mov eax, ebx
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x401164
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
movzx eax, cl
mov ecx, dword [str._f__Ll]
mov al, byte [eax + ecx]
mov byte [ebx + esi], al
inc ebx
cmp dword [ebp - 0xc], 1
jg 0x40117f
mov byte [ebx + esi - 1], 0x3d
mov esi, dword [ebp - 0x14]
add esi, 3
sub dword [ebp - 0x10], 3
mov dword [ebp - 0x14], esi
jmp 0x401019
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4013fa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push 0x40e0c0
call fcn.00407460
xor ebx, ebx
mov dword [esp], str._NN_On
push ebx
mov dword [ebp - 0x14], eax
call fcn.004052d3
push ebx
push 0x40fba1
call fcn.00403464
add esp, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x444]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 8]
mov dword [ebp - 0x340], 0x224
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x18], eax
push ecx
push eax
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4015ef
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407370
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.0040c540
add esp, 0x10
test eax, eax
je 0x4015ef
push dword [ebp - 0x338]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4015ef
push esi
mov esi, 0x80000
push edi
push esi
mov edi, 0x411970
push ebx
push edi
call fcn.00407310
mov eax, dword [ebp - 0x328]
add esp, 0xc
cmp eax, esi
jb 0x4014e1
mov eax, esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
jne 0x401506
lea ecx, [ebp - 8]
push ecx
push eax
push edi
push dword [ebp - 0x32c]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4015e1
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x4015e1
push dword [ebp + 8]
push 0x40fba1
call fcn.00403434
push eax
mov dword [ebp - 0x10], eax
call fcn.00407460
xor esi, esi
add esp, 0xc
cmp dword [ebp + 0xc], esi
mov ebx, eax
je 0x40153c
lea eax, [ebx + 0x6e]
mov dword [ebp - 8], eax
jmp 0x40153f
mov eax, dword [ebp - 8]
sub eax, ebx
sub eax, 0xa
je 0x4015d2
push dword [ebp - 0x14]
lea edi, [esi + 0x411970]
push edi
push 0x40e0c0
call fcn.0040c490
add esp, 0xc
test eax, eax
je 0x4015cb
cmp dword [ebp + 0xc], 0
jne 0x40158b
push ebx
push edi
push dword [ebp - 0x10]
call fcn.0040c490
add esp, 0xc
test eax, eax
je 0x40158b
mov eax, dword [ebp - 8]
inc esi
sub eax, ebx
sub eax, 0xa
cmp esi, eax
jb 0x40154a
jmp 0x4015d2
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0x40fdcc
call fcn.00403434
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
jne 0x4015cb
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp + 8], eax
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x401512
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
pop edi
pop esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x4053ac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.00404687
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491d84
call fcn.00407310
push esi
push edi
push 0x491c80
call fcn.00407310
push esi
push edi
push 0x491b7c
call fcn.00407310
push esi
push edi
push 0x491a78
call fcn.00407310
push esi
push edi
push 0x491974
call fcn.00407310
add esp, 0x40
push 0x40e0d0
push 0x1eac
push 0x40e0d4
call fcn.00403529
push 0x491e90
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491e98], edi
mov dword [0x491e88], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x40546c
cmp dword [ebp - 0x8c], ebx
jne 0x40546c
mov dword [0x491e98], ebx
call fcn.004048cb
mov esi, 0x7d000
push esi
call fcn.00407baf
cmp eax, edi
pop ecx
mov dword [0x491970], eax
jne 0x40548a
xor eax, eax
jmp 0x4054ae
push esi
push edi
push eax
call fcn.00407310
call fcn.0040556c
push ebx
push str._NN_On
call fcn.00403434
push eax
push edi
call fcn.004052d3
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40556c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x40fb6f
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x40fc6f
je 0x4055d1
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491ea0], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491e9c], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea4], eax
push 3
push 0x40fb6f
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x4055fb
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea8], eax
mov edi, 0x40fda4
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40561c
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491eac], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406a68
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21d4
call fcn.00407b80
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x406a9c
push dword [ebp + 8]
call fcn.004046f6
test eax, eax
pop ecx
jne 0x406bda
mov edi, str._N_O
push ebx
push edi
call fcn.00403464
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406ac0
push ebx
call fcn.00404687
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, 0x40f1dc
push ebx
push esi
call fcn.00403464
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406ae5
push ebx
call fcn.00404687
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403d8c
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x406bda
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1ec0
lea eax, [ebp - 0x21d4]
push 0x40e0c0
push eax
call fcn.00407820
lea eax, [ebp - 0x21d4]
mov byte [ebp - 0x11c0], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004054b3
push ebx
call fcn.00404687
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x13200
push edx
push eax
call fcn.00403f63
push dword [ebp - 4]
push edi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407370
push dword [ebp - 8]
push esi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407380
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.004050c1
lea eax, [ebp - 0x10c]
push eax
call fcn.00403dfa
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406d75
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
pop ebx
push 0x927c0
call edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x12]
test bl, al
je 0x406d87
cmp word [ebp - 0xe], 6
jne 0x406d87
and dword [0x491e94], 0
cmp ax, 7
mov dword [0x491e98], ebx
jne 0x406dc0
mov dword [0x491e94], ebx
cmp ax, bx
jne 0x406dcb
mov dword [0x491e94], ebx
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x406d1c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
inc esi
cmp esi, 0x1a
jl 0x406dcd
push 0x1b7740
call edi
call fcn.00406d5e
push 0xffffffffffffffff
call edi
jmp 0x406d87
Function at 0x405a10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x4342d0]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x78]
xor edx, edx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x78]
mov edi, dword [ebp + 8]
push ecx
push eax
push edx
mov ebx, 1
push edx
push 0x4000220
lea ecx, [ebp - 0x24]
push ebx
lea eax, [ebp - 0x24]
push ecx
push eax
push edx
mov dword [ebp - 4], edx
push edi
mov byte [ebp - 4], bl
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x48], bx
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x405ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea ecx, [ebp - 0x14]
push str._s_nCreateProcess_Error._Error_code:_d_n
push ecx
call fcn.00417f26
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov ecx, esi
push 0
push 0x438740
push edx
call fcn.0041b76f
xor ebx, ebx
jmp 0x405b00
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x34]
push ecx
call esi
jmp 0x405b00
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d604
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408ac0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x428ee6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push str.32770
mov dword [esp + 0x18], ecx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, dword [sym.imp.USER32.dll_FindWindowExA]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x408c2d
push 0
push str.32770
push 0
push edi
call ebx
mov ebp, eax
test ebp, ebp
je 0x408b44
mov ecx, dword [esp + 0x10]
push ebp
call fcn.00409430
test eax, eax
jne 0x408b55
mov ecx, dword [esp + 0x10]
push ebp
call fcn.00409510
test eax, eax
jne 0x408b55
push eax
push str.32770
mov dword [esp + 0x1c], eax
push ebp
jmp 0x408b12
push 0
push str.32770
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
jmp 0x408afd
test edi, edi
mov dword [esp + 0x14], 1
je 0x408c2d
lea ecx, [esp + 0x20]
call fcn.004255a2
mov eax, dword [0x4342d0]
mov dword [esp + 0xb0], 0
mov dword [esp + 0x1c], eax
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0xb4], 1
call fcn.0041a0db
mov ecx, dword [esp + 0x10]
push ebp
call fcn.00409430
test eax, eax
je 0x408ba6
push 3
jmp 0x408bc1
mov ecx, dword [esp + 0x10]
push ebp
call fcn.00409510
test eax, eax
je 0x408bca
lea ecx, [esp + 0x20]
call fcn.004259d5
sub eax, 2
push eax
lea ecx, [esp + 0x24]
call fcn.00425a1e
push 0
push str.32770
push 0
push edi
call ebx
mov ebp, eax
test ebp, ebp
je 0x408bfb
mov ecx, dword [esp + 0x10]
push ebp
call fcn.00408860
mov esi, eax
neg esi
sbb esi, esi
and esi, ebp
test eax, eax
jne 0x408bfb
push eax
push str.32770
push ebp
jmp 0x408bd3
lea ecx, [esp + 0x20]
call fcn.0041a114
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 0
call fcn.0041d604
lea ecx, [esp + 0x20]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00425664
test esi, esi
jne 0x408c3a
push 1
push str.rundll32.exe_shell32.dll_Control_RunDLL_desk.cpl__3
call dword [sym.imp.KERNEL32.dll_WinExec]
test esi, esi
mov dword [esp + 0x18], 0
jne 0x408cf2
cmp dword [esp + 0x18], 0x32
jg 0x408cda
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push str.32770
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call ebx
mov ebp, eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x408cc7
test ebp, ebp
je 0x408cc7
push 0
push str.32770
push 0
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x408cb2
mov ecx, dword [esp + 0x10]
push edi
call fcn.00408860
mov esi, eax
mov dword [esp + 0x14], eax
neg esi
sbb esi, esi
and esi, edi
test eax, eax
jne 0x408cc7
push eax
push str.32770
push edi
jmp 0x408c86
push 0
push str.32770
push ebp
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call ebx
mov ebp, eax
jmp 0x408c79
mov ecx, dword [esp + 0x18]
inc ecx
test esi, esi
mov dword [esp + 0x18], ecx
je 0x408c4a
jmp 0x408cf2
test esi, esi
jne 0x408cf2
mov ecx, dword [esp + 0x10]
push esi
push str.SiS_Utility
push str.ERROR:_Cannot_Find__Setting_Page_of_Property_Sheet
call fcn.0041b76f
mov ecx, dword [esp + 0xa8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x409300
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x428f6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
mov dword [esp + 8], ecx
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.004255a2
xor edi, edi
push 1
push str.rundll32.exe_shell32.dll_Control_RunDLL_desk.cpl__0
mov dword [esp + 0xb0], edi
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ebx, dword [sym.imp.USER32.dll_FindWindowExA]
mov ebp, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], edi
cmp dword [esp + 0x14], 0x32
jg 0x4093aa
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push str.32770
push 0
call ebp
push eax
call ebx
test edi, edi
mov esi, eax
jne 0x40939d
test esi, esi
je 0x40939d
mov ecx, dword [esp + 0x10]
push esi
call fcn.00409200
mov edi, eax
test edi, edi
jne 0x40939d
push eax
push str.32770
push esi
call ebp
push eax
call ebx
mov esi, eax
jmp 0x409379
mov ecx, dword [esp + 0x14]
inc ecx
test edi, edi
mov dword [esp + 0x14], ecx
je 0x409356
test esi, esi
jne 0x4093c2
mov ecx, dword [esp + 0x10]
push esi
push str.SiS_Utility
push str.ERROR:_Cannot_Find__Property_Sheet
call fcn.0041b76f
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4093e5
lea ecx, [esp + 0x18]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00425664
xor eax, eax
jmp 0x40940e
push 3
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00425664
mov eax, esi
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret
Function at 0x4123bb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [0x43ae20]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov al, byte [edi]
cmp al, 0x61
je 0x4123f4
cmp al, 0x72
je 0x4123ed
cmp al, 0x77
jne 0x412508
mov ecx, 0x301
jmp 0x4123f9
xor ecx, ecx
or esi, 1
jmp 0x4123fc
mov ecx, 0x109
or esi, 2
push 1
pop edx
mov al, byte [edi + 1]
inc edi
cmp al, bl
je 0x4124ee
cmp edx, ebx
je 0x4124ee
movsx eax, al
cmp eax, 0x54
jg 0x41248d
je 0x41247d
sub eax, 0x2b
je 0x412467
sub eax, 0x19
je 0x41245d
sub eax, 0xe
je 0x412448
dec eax
jne 0x4124df
cmp dword [ebp - 4], ebx
jne 0x4124df
mov dword [ebp - 4], 1
jmp 0x469450
cmp dword [ebp - 4], ebx
jne 0x4124df
mov dword [ebp - 4], 1
or ecx, 0x10
jmp 0x4123ff
test cl, 0x40
jne 0x4124df
or ecx, 0x40
jmp 0x4123ff
test cl, 2
jne 0x4124df
and ecx, 0xfffffffe
and esi, 0xfffffffc
or ecx, 2
or esi, 0x80
jmp 0x4123ff
mov eax, 0x1000
test eax, ecx
jne 0x4124df
or ecx, eax
jmp 0x4123ff
sub eax, 0x62
je 0x4124da
dec eax
je 0x4124c3
sub eax, 0xb
je 0x4124ac
sub eax, 6
jne 0x4124df
test ch, 0xc0
jne 0x4124df
or ch, 0x40
jmp 0x4123ff
cmp dword [ebp - 8], ebx
jne 0x4124df
mov dword [ebp - 8], 1
and esi, 0xffffbfff
jmp 0x4123ff
cmp dword [ebp - 8], ebx
jne 0x4124df
mov dword [ebp - 8], 1
or esi, 0x4000
jmp 0x4123ff
test ch, 0xc0
je 0x4124e6
xor edx, edx
jmp 0x4123ff
or ch, 0x80
jmp 0x4123ff
push 0x1a4
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
call fcn.00415c58
mov ecx, eax
add esp, 0x10
cmp ecx, ebx
jge 0x41250c
xor eax, eax
jmp 0x412526
mov eax, dword [ebp + 0x14]
inc dword [0x43ab4c]
mov dword [eax + 0xc], esi
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x10], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412fc2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4352d0
cmp edx, dword [eax]
je 0x412fe4
add eax, 8
inc ecx
cmp eax, 0x435360
jl 0x412fd5
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4352d0]
jne 0x413112
mov eax, dword [0x43aabc]
cmp eax, 1
je 0x4130ec
test eax, eax
jne 0x413015
cmp dword [0x434844], 1
je 0x4130ec
cmp edx, 0xfc
je 0x413112
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41304c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414f20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41308f
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d860
push edi
call fcn.0040eb10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414f20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414f30
lea eax, [ebp - 0xa0]
push 0x42d840
push eax
call fcn.00414f30
push dword [esi + 0x4352d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414f30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00416185
add esp, 0x2c
pop edi
jmp 0x413112
lea eax, [ebp + 8]
lea esi, [esi + 0x4352d4]
push 0
push eax
push dword [esi]
call fcn.0040f800
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 0x416d11
Capabilities:
Set thread local storage value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
lea ecx, [edx + esi]
cmp ecx, edx
jb 0x416d27
cmp ecx, esi
jae 0x416d2a
push 1
pop eax
jmp 0x468258
Function at 0x4196ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42957c
call fcn.0040ee4c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00427040
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41972d
call fcn.00427040
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41973b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x419749
or eax, 0xffffffff
jmp 0x419831
mov ecx, esi
call fcn.00419664
mov dword [ebp - 0x14], eax
call fcn.0041a594
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x419780
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x419780
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041a548
push dword [ebp - 0x14]
call fcn.0041a096
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004193fc
cmp eax, edi
je 0x4197f3
test byte [esi + 0x24], 0x10
je 0x4197c1
push 4
mov ecx, esi
pop ebx
call fcn.0041cb34
test ah, 1
je 0x4197b9
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041c567
cmp dword [esi + 0x1c], edi
je 0x4197f3
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041cbef
jmp 0x4197f3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x419807
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x419820
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x419820
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041969e
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41b5ce
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
test ecx, ecx
je 0x41b607
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x41b607
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
jmp loc.00469388
xor eax, eax
pop edi
pop esi
ret

Function at 0x41c310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41c352
call fcn.00427040
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41c352
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41c349
xor eax, eax
jmp 0x41c35a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041c360
pop edi
pop esi
pop ebx
ret 4