joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403134
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.00402fd4
mov esi, eax
cmp dword [0x407eb4], 0xffffffff
je 0x403195
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x407eb0]
jne 0x403195
lea eax, [ebp - 0x1c]
push eax
push dword [0x407eb0]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x407ebc], eax
movsx eax, word [ebp - 0x16]
mov dword [0x407ec0], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4032ac
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x408a34
call fcn.00406628
mov esi, dword [eax]
push 0x408a34
call fcn.00406628
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.00405e90
call fcn.00405d0c
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.00405d98
call fcn.00404738
test eax, eax
jne 0x4033ed
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.00405e70
call fcn.00404738
test eax, eax
jne 0x403363
cmp word [ebp - 0x190], 0x5a4d
jne 0x403363
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405db4
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.00405e70
jmp 0x40336d
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405db4
call fcn.00404738
test eax, eax
jne 0x4033d1
cmp word [ebp - 0x190], 0x4550
jne 0x4033d1
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.00405e70
call fcn.00404738
test eax, eax
jne 0x4033d1
cmp dword [ebp - 0x288], 0x4550
jne 0x4033d1
cmp word [ebp - 0x22c], 3
jne 0x4033d1
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.00405de4
push 0x408a2c
call fcn.00406628
mov dword [eax], 0
push 0x408a34
call fcn.00406628
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403444
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call sub.kernel32.dll_CreateThread
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle
test esi, esi
setne al
movsx eax, al
push eax
call fcn.00402fd4
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4034e8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x407f54], 0
je 0x40350a
mov eax, dword [0x407f54]
mov dword [ebp - 4], eax
jmp 0x40359f
push 0x104
call fcn.0040480c
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.004042d4
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x40354f
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00403480
mov esi, eax
inc esi
push esi
call fcn.004042d4
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.0040486c
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x403580
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x40358d
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.0040526c
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x407f54], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40367c
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x24], 0x52414853
mov dword [ebp - 0x20], 0x454d4445
mov dword [ebp - 0x1c], 0x5356354d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call fcn.004051e0
xor eax, eax
mov bl, 0
cmp dword [0x407ef8], 0
jne 0x4036ca
push 0x407c48
push 1
call fcn.00402ee0
mov dword [0x407ef8], eax
cmp dword [0x407ef8], 0
jne 0x4036e3
push 0x8000
call fcn.0040480c
mov esi, eax
mov bl, 1
jmp 0x40371d
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x407ef8]
test eax, eax
jne 0x40370d
lea eax, [ebp - 0x24]
push eax
push 0x8000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x403746
push esi
push 0x8000
push 0xff
call fcn.004052c8
push esi
push 0x24
push 0
call fcn.004052c8
mov eax, esi
add eax, 0xc
push eax
call fcn.004048f4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403af4
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.00403a80
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x403b2c
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x403b12
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407eb0]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403ed4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403ef4
mov al, byte [ebp - 4]
jmp 0x403ef7
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406148
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x4082a8]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x406186
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x406181
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x406181
mov esi, edx
add edx, 0x10
jmp 0x40616a
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x40629a
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x40629a
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x406298
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x406298
mov cl, byte [edx]
sub cl, 0x3c
jne 0x4061ce
jmp 0x406298
sub cl, 3
jne 0x4061e8
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x406293
inc cl
jne 0x4061fc
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x406293
inc cl
jne 0x406210
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x406223
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x40622d
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x40628a
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x406240
cmp byte [ebp - 0x25], 0
jne 0x406288
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x406276
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x406251
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x40629a
jmp 0x406298
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x4061c0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406770
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.0040674c
call fcn.0040367c
mov dword [0x4082a8], eax
lea edx, [eax + 0x18]
mov dword [0x408308], edx
pop edx
call fcn.004065cc
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x4082d4], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4082e8], eax
mov dword [0x408310], eax
call fcn.004032ac
cmp eax, 3
setb byte [0x4082b1]
call fcn.004042cc
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x4069fc
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop ebp
ret

Function at 0x401cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x41f1a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41f1c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f1c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f1b8
mov eax, 1
add ebx, ebx
jne 0x41f1db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f1d0
jne 0x41f1ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f1d0
xor ecx, ecx
sub eax, 3
jb 0x41f200
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f272
mov ebp, eax
add ebx, ebx
jne 0x41f20b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f23c
inc ecx
add ebx, ebx
jne 0x41f228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f21d
jne 0x41f239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f21d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f25c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f24d
jmp 0x41f1be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f25c
add edi, ecx
jmp 0x41f1be
pop esi
mov edi, esi
mov ecx, 0x202
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f27a
cmp byte [edi], 6
jne 0x41f27a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41f27f
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f2f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ffc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20000]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f2ac
mov ecx, edi
jns 0x41f2db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20004]
or eax, eax
je 0x41f2f1
mov dword [ebx], eax
add ebx, 4
jmp 0x41f2c9
call dword [esi + 0x20008]
popal
jmp 0x40290c
Function at 0x10004ac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [0x10010020]
mov esi, dword [0x10010028]
test ebx, ebx
je 0x10004bf2
mov dword [ebp - 0x14], esi
mov eax, ebx
call sym._MSACM_GetRegistryKey
mov esi, eax
test eax, eax
je 0x10004bdd
lea eax, [ebp - 0x10]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x10004bc0
lea eax, [ebx + 0x24]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExA]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.cFormatTags
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x10004bc0
lea eax, [ebx + 0x20]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.cFilterTags
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x10004bc0
lea eax, [ebx + 0x28]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.fdwSupport
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
je 0x10004c18
lea esi, [esi]
mov eax, dword [0x10010018]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], ebx
call sym._MSACM_UnregisterDriver
mov ebx, eax
test eax, eax
jne 0x10004ae0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10004c0c
mov eax, esi
lea esi, cs:[esi]
mov dword [esp], eax
call sym._MSACM_UnRegisterNotificationWindow
test eax, eax
jne 0x10004c00
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x24]
shl eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], str.aFormatTagCache
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x10004bc0
Function at 0x402970
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402995
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4029a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402995
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4029e8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4029de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4029ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4029d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x52549b
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x73e438
jmp 0x7306b4
push edi
push edi
mov edi, 0x5f38d3d6
mov dword [esp + 4], edi
pop edi
mov dword [esp], edx
mov dword [esp], ebp
mov dword [esp], ecx
jmp 0x730766
jmp 0x790971
jmp 0x730b51
add esp, 4
jmp 0x730b68
push ecx
mov dword [esp], esi
push ebx
mov ebx, 0
mov dword [esp + 4], ebx
pop ebx
mov eax, dword [esp]
jmp 0x730af4
jmp 0x775c59
jmp 0x73e549
xchg dword [esp], eax
mov esp, dword [esp]
mov dword [esp], ebp
jmp 0x73e560
sub esp, 4
mov dword [esp], eax
push esp
pop eax
add eax, 4
sub eax, 4
jmp 0x73e53b
jmp 0x780fea
jmp 0x77343e
rdtsc
jmp 0x773445
jmp 0x80c9b3
cpuid
jmp 0x775d62
jmp 0x79853c
jmp 0x77676c
mov dword [esp], ebx
jmp 0x77688a
push esi
push 0x2199d1cd
mov dword [esp], ecx
mov ecx, 0x27436d02
mov dword [esp + 4], ecx
mov ecx, dword [esp]
add esp, 4
jmp 0x776764
jmp 0x73065f
jmp 0x7810af
pop esi
xchg dword [esp], edx
pop esp
jmp 0x781124
push esp
mov ebp, dword [esp]
push 0x1cfe9bd0
mov dword [esp], edx
mov edx, esp
add edx, 4
push esi
mov esi, 4
add edx, esi
jmp 0x781051
jmp 0x806c4f
jmp 0x790a21
push eax
push esi
mov esi, 0x1ede7dca
mov dword [esp + 4], esi
mov esi, dword [esp]
add esp, 4
jmp 0x790a8a
mov dword [esp], eax
mov dword [esp], edx
jmp 0x790a95
jmp 0x77331e
rdtsc
jmp 0x791150
jmp 0x7c75b5
cpuid
jmp 0x796c38
jmp 0x7ddc6a
jmp 0x7985e4
add ebx, 4
xchg dword [esp], ebx
pop esp
jmp 0x79865e
sub esp, 4
mov dword [esp], ebp
mov dword [esp], 0
mov eax, dword [esp]
push ebx
mov ebx, esp
add ebx, 4
jmp 0x7985d8
jmp 0x796b2c
jmp fcn.007c76b0
push esi
push edx
mov dword [esp], ebp
push 0
pop ebp
mov dword [esp + 4], ebp
pop ebp
pop eax
jmp 0x7c955d
jmp 0x806e9e
cpuid
jmp 0x7dcf52
jmp 0x79104c
push edi
push esp
pop edi
add edi, 4
sub edi, 4
xchg dword [esp], edi
pop esp
mov dword [esp], esi
mov dword [esp], 0
jmp 0x7ddd32
pop eax
jmp 0x7ddd83
jmp 0x7dce4f
push edx
mov edx, esp
push esi
mov esi, 0x7cbfe7af
inc esi
neg esi
jne 0x7f647b
jmp 0x7f647b
not esi
or esi, 0x7a9b7d4c
xor esi, 0x747ff8cb
sub esi, 0xac00720
jmp 0x7f64f2
add edx, esi
pop esi
sub edx, 4
xchg dword [esp], edx
pop esp
mov dword [esp], ecx
mov dword [esp], edx
pop dword [ebp - 0x10]
jmp 0x7f655c
jmp 0x7c9440
push 0x6264120d
mov dword [esp], ecx
push esp
pop ecx
add ecx, 4
push ebp
mov ebp, 0x14
sub ecx, ebp
pop ebp
xchg dword [esp], ecx
mov esp, dword [esp]
jmp 0x806d7d
jmp 0x77675f
jmp 0x806fae
cpuid
jmp 0x806fb5
jmp 0x730a36
push ebp
push esp
pop ebp
add ebp, 4
sub ebp, 4
jmp 0x80c9c7
xchg dword [esp], ebp
pop esp
mov dword [esp], edx
mov dword [esp], eax
pop dword [ebp - 0x14]
jmp 0x80cadd
jmp 0x7f6407
Function at 0x401d70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401dbb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401db4
test esi, esi
je 0x401db4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d90
mov dword [esp], 0x407044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401fa0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4020c8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40202e
cmp eax, 4
jne 0x402050
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40203e
cmp edx, 4
je 0x40203e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401fa0
Function at 0x403cae
Capabilities:
Encode data using xor

Disassembly:
std
fnstcw word [ebx + 0x18]
mov byte [edi - 0x74d4e807], bh
xchg dword [edi - 0x2ec04af0], ebp
pop ebp
sub eax, 0x544ab00f
pushfd
sub cl, byte [ebx]
scasd eax, dword es:[edi]
xor byte [edi + 0x4ba56089], ch
cmp dword [ecx - 0x34], eax
aaa
jmp dword [edi + 0x4a4e26e5]
dec ecx
stc
pop ebx
popfd
adc al, 0x22
and ah, dl
xchg edx, eax
rcr dword gs:[ebx - 0x55], 0x3e
mov al, 8
call 0x372d6910
push 0xb7074808
push 0xb7074808
std
sbb edi, dword [ecx - 0x29c5259b]
xor byte [edi - 0xa], cl
add ah, byte [edx]
mov byte [0x599ed732], al
loop 0x403ca9
mov eax, dword [0x75f374f5]
jmp 0x403d14
pop edx
aas
push 0x2621fe8e
enter 0xffffffffffffef7f, 0x2d
xor ch, ah
jle 0x403d7f
and eax, 0x5508fdc3
loope 0x403cbe
mov eax, dword [0xf4ce96f2]
invalid
xchg byte [ecx - 0x6e584e8], bh
push esp
push esi
xor eax, 0x58887dbb
add dword [edi - 0x68], esi
pop ebp
or byte [edx], cl
push cs
pop edi
invalid

Function at 0x403a91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408438
cmp edx, dword [eax]
je 0x403ab3
add eax, 8
inc ecx
cmp eax, 0x4084c8
jl 0x403aa4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408438]
jne 0x403be1
mov eax, dword [0x40ac34]
cmp eax, 1
je 0x403bbb
test eax, eax
jne 0x403ae4
cmp dword [0x408374], 1
je 0x403bbb
cmp edx, 0xfc
je 0x403be1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403b1b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004017c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401740
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403b5e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401740
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40746c
push edi
call fcn.00405f80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004017c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004017d0
lea eax, [ebp - 0xa0]
push 0x40744c
push eax
call fcn.004017d0
push dword [esi + 0x40843c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004017d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405ef4
add esp, 0x2c
pop edi
jmp 0x403be1
lea eax, [ebp + 8]
lea esi, [esi + 0x40843c]
push 0
push eax
push dword [esi]
call fcn.00401740
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