joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037b8
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x41a4a4
push ebx
mov ebx, 0x41555c
push esi
call fcn.0040f5c0
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x4037f2
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x4037f2
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040ed98
mov esi, eax
test esi, esi
je 0x4038a2
mov edx, 0x414108
mov eax, esi
call fcn.0040eddc
mov esi, eax
test eax, eax
je 0x403815
mov eax, ebx
mov edx, esi
call fcn.0040ee08
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x403892
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x40382c
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x403832
inc esi
test esi, 1
jne 0x403891
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x403853
test eax, eax
je 0x40385d
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x40385d
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x403891
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x40386d
cmp edx, 0x53
jne 0x403891
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x40387e
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x403891
mov dword [0x414058], 1
mov byte [0x41405c], 1
jmp 0x403899
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40381f
cmp byte [ebp - 1], 0
jne 0x4038a2
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x41a49c], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x41595c], eax
push 0x65
push dword [0x41a49c]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x415960], eax
lea eax, [ebp - 0xc]
call fcn.00405558
push 0x400
push 0x41515c
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x41515c
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x41515c
mov eax, 0x41a488
call fcn.00404b98
lea eax, [ebp - 0x24]
call fcn.00404100
lea eax, [ebp - 0x3c]
call fcn.00404100
push 0
push 0x401183
lea edx, [ebp - 0x24]
push 0
mov dword [0x415d64], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x415d68], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
mov dword [0x4148a8], eax
xor edx, edx
mov dword [0x415d68], edx
mov dword [0x415d64], edx
cmp dword [0x4148b0], 0
jne 0x403975
cmp dword [0x4148bc], 0
jne 0x403975
mov ecx, 4
mov edx, dword [0x414048]
xor eax, eax
call fcn.004018cb
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404124
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404124
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004055cc
cmp byte [0x414044], 0
je 0x4039aa
call fcn.004026e0
mov eax, 0x4150cc
mov ecx, 0x80
xor edx, edx
call fcn.0040ed08
cmp dword [0x414054], 0
jle 0x4039ce
mov eax, dword [0x414048]
call fcn.0040ec8c
push dword [0x41595c]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x415960]
test eax, eax
je 0x4039e8
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x41a47c], 0
jne 0x403a09
cmp dword [0x4148b0], 0
je 0x403a09
mov eax, 0x41a47c
mov edx, 0xff
call fcn.0040c3c0
mov dword [0x4148b0], 2
push dword [0x41a47c]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403a28
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov dword [0x4148c0], 1
mov ebx, dword [0x4148a8]
test ebx, ebx
je 0x403a50
mov eax, 0x7d
call fcn.00402928
push eax
push 1
push ebx
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x4148c4], edx
mov dword [0x4148c8], 1
mov eax, dword [0x4148a8]
test eax, eax
je 0x403aa9
push 1
push eax
call sub.USER32.DLL_ShowWindow
cmp dword [0x414054], 0
jne 0x403aa0
cmp byte [0x414019], 0
jne 0x403aa0
push 0
push 1
push 0x111
push dword [0x4148a8]
call sub.USER32.DLL_SendMessageA
jmp 0x403aa0
call fcn.004029c8
cmp dword [0x4148b0], 2
jne 0x403a9b
cmp byte [0x414044], 0
je 0x403ab7
call fcn.004026e0
pop ebx
ret

Function at 0x40414c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
push esi
push edi
cmp byte [ebx + 0x14], 0
mov edi, edx
mov esi, ecx
jne 0x404171
push 0
call sub.OLE32.DLL_OleInitialize
call sub.COMCTL32.DLL_InitCommonControls
mov byte [ebx + 0x14], 1
mov byte [ebx + 0x15], 0
push 0
push esi
call sub.USER32.DLL_ShowWindow
mov edx, edi
mov eax, ebx
call fcn.004042a8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebx + 0x10], ecx
push eax
push esi
call sub.USER32.DLL_GetWindowRect
push 2
lea edx, [ebp - 0x10]
push edx
push esi
call sub.USER32.DLL_GetParent
push eax
push 0
call sub.USER32.DLL_MapWindowPoints
mov eax, dword [ebx + 4]
test eax, eax
je 0x4041b7
push eax
call sub.USER32.DLL_DestroyWindow
push ebx
push dword [ebx]
push 0
push esi
call sub.USER32.DLL_GetParent
push eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
push ecx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call sub.USER32.DLL_CreateWindowExA
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
je 0x404208
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x404285
mov eax, dword [ebx + 4]
test eax, eax
je 0x404220
push eax
call sub.USER32.DLL_DestroyWindow
xor edx, edx
mov dword [ebx + 4], edx
push 5
push esi
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp + 8]
call fcn.0040ed88
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040ec78
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040ee08
mov edx, edi
mov eax, ebx
call fcn.004048e4
test al, al
jne 0x404261
mov edx, edi
mov eax, ebx
call fcn.0040491c
mov edx, edi
mov eax, ebx
call fcn.0040475c
mov ebx, eax
mov eax, edi
call fcn.0040ec8c
test ebx, ebx
je 0x404285
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040ec8c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405434
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x40547b
mov edx, edi
mov eax, ebx
call fcn.0040ee08
mov eax, ebx
call fcn.0040ed88
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040ee08
mov eax, ebx
call fcn.0040ed88
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402928
mov edx, eax
mov eax, ebx
call fcn.0040ee08
mov eax, ebx
call fcn.0040ed88
inc eax
add ebx, eax
mov edx, 0x41456c
mov eax, ebx
call fcn.0040ee08
mov eax, ebx
call fcn.0040ed88
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040ed08
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x41a49c]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.00405b4c
cmp esi, eax
jne 0x405514
lea edx, [ebp - 0x654]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x405544
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405544
mov byte [esi], 0
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4085b8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x416174
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x4085d2
call fcn.00408580
mov eax, ebp
jmp 0x4085ea
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x4085f2
test al, 7
jne 0x4085d6
cmp esi, 8
jb 0x40867b
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x4085fb
xor edx, edx
jmp 0x408695
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x40867f
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408ce8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x408cff
test esi, esi
jg 0x408d06
xor eax, eax
jmp 0x408db8
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x2c]
mov ecx, 0x10
call fcn.0040ed1c
test esi, esi
jns 0x408d20
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jle 0x408d9f
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00409074
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [eax]
xor dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
xor dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
xor dword [ebp - 0x14], ecx
mov eax, dword [eax + 0xc]
xor dword [ebp - 0x10], eax
mov eax, edx
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jg 0x408d32
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.0040ed1c
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408fdc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
add edx, dword [esp]
shl ebx, 2
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx edi, byte [edx + 1]
mov bl, byte [edx]
lea edi, [edi*4 + 0x418e36]
lea ebx, [ebx*4 + 0x418a36]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x419236]
lea edx, [edx*4 + 0x419636]
xor bl, byte [edi + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4 + 4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x408fee
inc eax
cmp eax, 4
jl 0x408fec
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.0040ed1c
inc esi
cmp esi, 0xa
jl 0x408fea
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x40a2e8
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret
Function at 0x40da14
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x15], 0
mov esi, ecx
je 0x40da37
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40da48
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40da57
or dword [ebp - 8], 2
call fcn.00405308
test eax, eax
je 0x40da83
test esi, esi
je 0x40da83
cmp word [esi], 0
je 0x40da83
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40da9c
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dab5
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40dab5
mov dword [ebx + 0xc18], 1
xor eax, eax
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne dl
mov dword [ebx + 0xc], eax
and edx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 9], dl
cmp byte [ebp - 9], 0
je 0x40db1f
mov dword [ebx + 4], edi
test esi, esi
je 0x40daea
lea eax, [ebx + 0x416]
mov edx, esi
call fcn.0040f4c8
jmp 0x40daf3
mov word [ebx + 0x416], 0
cmp dword [ebp - 4], 0
je 0x40db06
lea eax, [ebx + 0x16]
mov edx, dword [ebp - 4]
call fcn.0040ee08
jmp 0x40db15
lea edx, [ebx + 0x16]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040f434
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040dc04
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40dd10
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40ddf9
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40dd4b
dec eax
je 0x40dd35
dec eax
je 0x40dd41
jmp 0x40dd4b
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40dd4b
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40dd9d
xor ebp, ebp
cmp esi, ebp
jle 0x40ddb9
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40dd70
mov ecx, esi
sub ecx, ebp
jmp 0x40dd75
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40ddb9
add ebp, 0x4000
cmp esi, ebp
jg 0x40dd57
jmp 0x40ddb9
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40ddf5
cmp byte [edi + 0x14], 0
je 0x40ddf5
cmp dword [edi + 0xc], 0
jne 0x40ddf5
lea ebp, [edi + 0x16]
mov eax, 0x41a47c
mov edx, ebp
call fcn.0040c224
test al, al
jne 0x40dd4b
mov ecx, ebp
mov eax, 0x41a47c
xor edx, edx
call fcn.0040c20c
jmp 0x40ddf5
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40dee4
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40df0b
cmp esi, 0x4e20
jle 0x40df01
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40df5c
mov eax, ebx
call fcn.0040e224
test al, al
je 0x40df43
cmp esi, 0x4e20
jle 0x40df43
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040dee4
jmp 0x40df5f
cmp dword [ebx + 0xc], 1
jne 0x40df57
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40df57
xor eax, eax
jmp 0x40df5f
or eax, 0xffffffff
jmp 0x40df5f
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f3c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x414730], 0
jne 0x40f3dd
call fcn.0040efa4
mov dword [0x41472c], eax
inc byte [0x414730]
call fcn.0040efa4
sub eax, dword [0x41472c]
cmp eax, 0x64
jle 0x40f419
cmp dword [0x4148b0], 0
je 0x40f414
mov eax, 0x41a47c
mov edx, 0xff
call fcn.0040c3c0
mov eax, 0x41a47c
mov edx, 0xff
call fcn.0040c3b8
call fcn.004029c8
ret
Function at 0x4010b5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x468648]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x46864c]
xor esi, esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], esi
call fcn.00401053
mov eax, dword [0x468650]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [0x468654]
add ebx, 0x23f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a5920c], 0xc
mov dword [ebp - 4], eax
jne 0x4010df
push esi
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x1a5920c]
cmp eax, 0xfa9
jne 0x4010fb
mov dword [0x1a59208], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40110f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1a5915c], esi
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a59204], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 8], eax
sub edi, dword [ebp - 8]
cmp dword [0x1a5920c], 0xc
mov dword [ebp - 4], eax
jne 0x401170
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + edi]
mov dword [ebp - 0x18], eax
mov eax, edi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 4
Function at 0x4051cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4672a8]
jne 0x4051d5
repz ret
jmp fcn.0040b4d7

Function at 0x40bf4a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407cac
and dword [ebp - 4], 0
cmp dword [0x471a04], 0
mov ebx, eax
jne 0x40bffb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c0ac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c0ac
push eax
call fcn.00407c3a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x471a04], eax
call esi
push eax
call fcn.00407c3a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x471a08], eax
call esi
push eax
call fcn.00407c3a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x471a0c], eax
call esi
push eax
call fcn.00407c3a
pop ecx
mov dword [0x471a14], eax
test eax, eax
je 0x40bffb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407c3a
pop ecx
mov dword [0x471a10], eax
mov eax, dword [0x471a10]
cmp eax, ebx
je 0x40c053
cmp dword [0x471a14], ebx
je 0x40c053
push eax
call fcn.00407cb5
push dword [0x471a14]
mov esi, eax
call fcn.00407cb5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c053
test edi, edi
je 0x40c053
call esi
test eax, eax
je 0x40c04a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c04a
test byte [ebp - 0xc], 1
jne 0x40c053
or dword [ebp + 0x10], 0x200000
jmp 0x40c08c
mov eax, dword [0x471a08]
cmp eax, ebx
je 0x40c08c
push eax
call fcn.00407cb5
pop ecx
test eax, eax
je 0x40c08c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c08c
mov eax, dword [0x471a0c]
cmp eax, ebx
je 0x40c08c
push eax
call fcn.00407cb5
pop ecx
test eax, eax
je 0x40c08c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x471a04]
call fcn.00407cb5
pop ecx
test eax, eax
je 0x40c0ac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c0ae
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x62
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d