joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b540
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x4b6
mov esi, ecx
call fcn.00409b20
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
push 1
add ecx, 2
mov dword [esi + 0x58], ecx
push 0x4b6
mov ecx, esi
call fcn.00409b50
push 1
push 0x4b7
mov ecx, esi
call fcn.00409b50
push 0x2b0
lea edx, [ebp - 0x2c0]
push 0
push edx
mov dword [ebp - 0x2c4], 0
call fcn.00421430
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ecx
push 0
lea edx, [ebp - 0x4d0]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push 0x40a200
push 0xfffffffffffffffc
push 0x4b7
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.00409700
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.0040b190
mov ecx, esi
mov edi, eax
call fcn.0040a990
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x434480], ecx
inc edx
cmp edx, 0x100
jb 0x40c482
cmp edx, 0x800
jae 0x40c559
lea esp, [esp]
mov eax, dword [edx*4 + 0x434080]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x434480]
inc edx
mov dword [edx*4 + 0x43447c], eax
cmp edx, 0x800
jb 0x40c530
mov eax, 0x427f10
mov dword [0x434464], eax
mov dword [0x436480], eax
mov dword [0x434460], 0x427e30
call fcn.00413c10
test eax, eax
jne 0x40c585
mov dword [0x436480], 0x427e30
ret

Function at 0x413f20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ecx]
push esi
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413f4c
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor edx, edx
add edx, esi
adc ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4140e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
call fcn.00414000
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [0x430604]
cmp eax, edx
jbe 0x414222
mov eax, edx
mov ecx, dword [ecx]
push 0
lea edx, [ebp + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.00414000
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [edx], ecx
pop ebp
ret 0xc

Function at 0x4142c0
Capabilities:
Clear file content

Disassembly:
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push eax
call fcn.00414000
add esp, 4
ret

Function at 0x417860
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
lea ebx, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
xor esi, esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp + 8], eax
test eax, eax
je 0x417895
mov edi, dword [edx]
mov dword [ecx + esi*4 + 0x10], edi
inc esi
add edx, 4
cmp esi, eax
jb 0x417887
cmp esi, ebx
jae 0x417982
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4 + 0x10]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov edi, dword [ecx + esi*4 + 0xc]
test edx, edx
jne 0x417911
movzx eax, byte [eax + 0x42b418]
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + str.cw]
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl edx, 8
or edx, ebx
mov ebx, edi
shr ebx, 0x10
shr edi, 8
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
and edi, 0xff
movzx edi, byte [edi + str.cw]
shl edx, 8
or edx, ebx
mov ebx, dword [ebp - 8]
shl edx, 8
xor edi, eax
or edi, edx
jmp 0x417968
cmp dword [ebp + 8], 6
jbe 0x417968
cmp edx, 4
jne 0x417968
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
or eax, edx
mov edx, edi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
and edi, 0xff
movzx edi, byte [edi + str.cw]
or eax, edx
shl eax, 8
or edi, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
xor edx, edi
mov dword [ecx + esi*4 + 0x10], edx
inc esi
add eax, 4
mov dword [ebp - 4], eax
cmp esi, ebx
jb 0x4178a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4185b0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
pop ebp
ret

Function at 0x418c90
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
jmp 0x418ca0
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x431558], al
inc eax
cmp eax, 0x100
jb 0x418ca0
push ebx
push esi
push edi
xor esi, esi
lea ebx, [ebx]
movzx ecx, byte [esi + str.cw]
mov edx, ecx
and dl, 0x80
movzx eax, dl
neg eax
sbb eax, eax
and eax, 0x1b
lea edx, [ecx + ecx]
xor eax, edx
and eax, 0xff
mov edi, eax
xor edi, ecx
mov edx, edi
shl edx, 8
or edx, ecx
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x432660], edx
mov edx, ecx
shl edx, 8
mov ebx, edx
or edx, eax
or ebx, ecx
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, edi
shl eax, 8
or eax, ecx
shl edx, 8
or edx, edi
shl eax, 8
or eax, ecx
shl ebx, 8
or ebx, edi
shl edx, 8
or edx, ecx
mov dword [esi*4 + 0x433260], eax
mov dword [esi*4 + 0x432a60], ebx
movzx ebx, byte [esi + 0x431558]
mov eax, ebx
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
mov dword [esi*4 + 0x432e60], edx
and eax, 0x1b
lea ecx, [ebx + ebx]
xor eax, ecx
and eax, 0xff
mov edx, eax
and dl, 0x80
movzx ecx, dl
neg ecx
sbb ecx, ecx
and ecx, 0x1b
lea edx, [eax + eax]
xor ecx, edx
and ecx, 0xff
mov edx, ecx
and dl, 0x80
movzx edx, dl
neg edx
sbb edx, edx
mov dword [ebp - 4], edi
and edx, 0x1b
lea edi, [ecx + ecx]
xor edx, edi
and edx, 0xff
mov edi, edx
xor edi, ebx
mov dword [ebp - 4], edi
mov edi, edx
xor edx, ecx
xor edi, eax
mov ecx, edx
xor edi, ebx
xor ecx, ebx
xor eax, edx
mov edx, dword [ebp - 4]
mov ebx, edi
shl ebx, 8
or ebx, ecx
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov dword [esi*4 + 0x431658], ebx
mov ebx, ecx
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, edi
mov dword [esi*4 + 0x431a58], ebx
mov ebx, edx
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, edi
shl ebx, 8
shl eax, 8
or ebx, edi
or eax, ecx
shl ebx, 8
shl eax, 8
or ebx, ecx
or eax, edx
mov dword [esi*4 + 0x431e58], ebx
mov dword [esi*4 + 0x432258], eax
inc esi
cmp esi, 0x100
jb 0x418cc0
mov dword [0x433660], 0x418430
mov dword [0x43265c], 0x418490
mov dword [0x432658], 0x418520
call fcn.00413d10
pop edi
pop esi
pop ebx
test eax, eax
je 0x418e60
mov dword [0x433660], 0x428140
mov dword [0x43265c], 0x427ff0
mov dword [0x432658], 0x4281b0
mov esp, ebp
pop ebp
ret
Function at 0x419960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
and esi, 7
cmp eax, 5
jae 0x419980
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
push ebx
mov ebx, dword [ebp + 8]
sub eax, 4
add ebx, eax
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 8]
add edx, edi
cmp edx, ebx
jae 0x4199ad
lea esp, [esp]
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4199ad
inc edx
cmp edx, ebx
jb 0x4199a0
mov eax, dword [ebp + 8]
mov ecx, edx
sub ecx, edi
mov edi, edx
sub ecx, eax
sub edi, eax
cmp edx, ebx
jae 0x419a85
cmp ecx, 2
jbe 0x419a04
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x419a22
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or eax, ecx
mov ecx, dword [ebp + 0x10]
add ecx, edi
add edi, 5
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0xc], ecx
je 0x419a2d
add eax, ecx
jmp 0x419a2f
shr esi, cl
test esi, esi
je 0x4199c9
cmp esi, 4
ja 0x419a22
cmp esi, 3
je 0x419a22
mov ecx, esi
shr ecx, 1
movzx eax, byte [ecx + edx + 1]
inc eax
test al, 0xfe
jne 0x4199c9
or esi, 8
shr esi, 1
inc edi
jmp 0x419990
sub eax, ecx
test esi, esi
je 0x419a63
and esi, 6
add esi, esi
add esi, esi
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x419a5e
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x419a5b
add eax, dword [ebp + 0xc]
jmp 0x419a5e
sub eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x419990
pop ebx
cmp ecx, 2
jbe 0x419a9a
mov edx, dword [ebp + 0x14]
xor esi, esi
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
shr esi, cl
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x425abd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431110]
jne 0x425ac7
repz ret
jmp fcn.00427aa8
Function at 0x42678b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431110]
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.00424305
and dword [ebp - 0x14], 0
cmp dword [0x4340dc], 0
mov dword [ebp - 0x18], eax
jne 0x42683e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4268e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4268e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4340dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4340e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4340e4], eax
call edi
push eax
call esi
mov dword [0x4340ec], eax
test eax, eax
je 0x42683e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4340e8], eax
mov eax, dword [0x4340e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x426897
cmp dword [0x4340ec], ecx
je 0x426897
push eax
call esi
push dword [0x4340ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x426897
test ebx, ebx
je 0x426897
call edi
test eax, eax
je 0x42688e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42688e
test byte [ebp - 8], 1
jne 0x426897
or dword [ebp + 0x10], 0x200000
jmp 0x4268ca
mov eax, dword [0x4340e0]
cmp eax, dword [ebp - 0x18]
je 0x4268ca
push eax
call esi
test eax, eax
je 0x4268ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4268ca
mov eax, dword [0x4340e4]
cmp eax, dword [ebp - 0x18]
je 0x4268ca
push eax
call esi
test eax, eax
je 0x4268ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4340dc]
call esi
test eax, eax
je 0x4268e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4268e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425abd
leave
ret
Function at 0x2119058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.021191a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x211907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x211906a
add dl, dl
jne 0x2119089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x21190dc
xor eax, eax
add dl, dl
jne 0x2119096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x211917d
add dl, dl
jne 0x21190a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21190b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21190bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21190c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x21190d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x2119075
mov eax, 1
add dl, dl
jne 0x21190ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21190f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x21190e1
sub eax, ebx
mov ebx, 1
jne 0x2119128
mov ecx, 1
add dl, dl
jne 0x211910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2119119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2119105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2119075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x211913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x211914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2119136
cmp eax, 0x7d00
jae 0x211916d
cmp eax, 0x500
jb 0x2119168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2119075
cmp eax, 0x7f
ja 0x2119170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2119075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x211919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x2119075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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
Function at 0x401d70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401dbb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
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 sym._LeaveCriticalSection_4
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 sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._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 sym._VirtualQuery_12
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 sym._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 sym._VirtualProtect_16
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 sym._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 sym._VirtualProtect_16
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 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
Function at 0x404390
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x56f324]
push esi
mov esi, ecx
test eax, eax
je 0x404420
cmp dword [eax], 0
je 0x404420
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x56f1f0]
cmp eax, dword [ecx + 4]
jle 0x4043f3
push 0x56f1f0
call fcn.0045bf5b
add esp, 4
cmp dword [0x56f1f0], 0xffffffff
jne 0x4043f3
mov eax, dword [0x56f324]
push 0x56f1f0
mov cl, byte [eax + 1]
sub cl, byte [eax + 3]
sub cl, byte [eax + 2]
add cl, byte [eax]
mov byte [0x56f1f4], cl
call fcn.0045bf1c
add esp, 4
cmp word [esi], 0
mov ecx, esi
mov edx, esi
je 0x404418
push ebx
mov bl, byte [0x56f1f4]
mov al, byte [ecx]
lea edx, [edx + 1]
add ecx, 2
xor al, bl
mov byte [edx - 1], al
cmp word [ecx], 0
jne 0x404404
pop ebx
sub ecx, esi
sar ecx, 1
mov eax, ecx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x404460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, ecx
push edi
mov edi, 1
mov eax, dword [esi]
test eax, eax
jne 0x404495
cmp dword [esi + 4], eax
lea ecx, [esi + 4]
jne 0x4044d9
mov eax, edi
lock xadd dword [ecx], eax
inc eax
cmp eax, edi
jne 0x4044d9
mov ecx, esi
call fcn.00405fd0
mov eax, dword [esi]
test eax, eax
je 0x4044d9
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4044ad
push eax
push ecx
push 1
push dword [ebp + 8]
call fcn.0047bc0c
add esp, 0x10
jmp 0x4044be
push dword [ebp + 8]
push 0x4b1554
push eax
call fcn.00404430
add esp, 0xc
lea ecx, [esi + 8]
lock xadd dword [ecx], edi
inc edi
cmp edi, 1
jne 0x4044d9
xor eax, eax
xchg dword [ecx], eax
push dword [esi]
call fcn.0047c0b6
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4046b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.0045ce80
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
lea esi, [ebp - 0x1044]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4b152c
lea eax, [ebp - 0x40]
push 0x38
push eax
call fcn.00402970
mov ax, word [ebp - 0x40]
add esp, 0x14
test ax, ax
je 0x404715
movzx ecx, ax
lea edx, [ebp - 0x40]
mov eax, esi
sub edx, eax
movzx eax, word [edx + esi + 2]
mov word [esi], cx
add esi, 2
mov ecx, eax
test ax, ax
jne 0x404703
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x404742
movzx ecx, word [edx]
test cx, cx
je 0x404742
sub edx, esi
nop word [eax + eax]
movzx eax, word [edx + esi + 2]
mov word [esi], cx
add esi, 2
mov ecx, eax
test ax, ax
jne 0x404730
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x404773
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
movzx ecx, word [eax]
test cx, cx
je 0x40476b
add eax, 2
mov word [esi], cx
mov dword [ebp + 0x10], eax
add esi, 2
movzx ecx, word [eax]
test cx, cx
jne 0x404757
mov dword [esi], 0xa
jmp 0x4047a1
lea ecx, [ebp + 0x14]
mov edx, 0x7ff
push ecx
push ecx
push eax
push ecx
lea ecx, [ebp - 0x1044]
mov eax, esi
sub eax, ecx
mov ecx, esi
sar eax, 1
sub edx, eax
call fcn.00404360
add esp, 0x10
mov dword [esi + eax*2], 0xa
lea eax, [esi + eax*2]
cmp dword [ebp + 8], 8
mov eax, dword [0x56f314]
mov ebx, dword [eax]
jne 0x4047b1
or ebx, 2
lea ecx, [ebp - 0x1044]
call fcn.00404390
mov esi, eax
test bl, 1
je 0x4047d0
lea eax, [ebp - 0x1044]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bl, 2
je 0x4047e8
mov ecx, dword [0x56f320]
lea eax, [ebp - 0x1044]
push esi
push eax
call fcn.00404460
test bl, 4
je 0x4047f9
lea eax, [ebp - 0x1044]
push eax
call fcn.004044f0
test bl, 8
je 0x40480a
lea eax, [ebp - 0x1044]
push eax
call fcn.00404610
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bdad
mov esp, ebp
pop ebp
ret
Function at 0x405c90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x56f324]
push esi
mov esi, ecx
test eax, eax
je 0x405d0c
cmp dword [eax], 0
je 0x405d0c
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x56f230]
cmp eax, dword [ecx + 4]
jle 0x405cef
push 0x56f230
call fcn.0045bf5b
add esp, 4
cmp dword [0x56f230], 0xffffffff
jne 0x405cef
mov eax, dword [0x56f324]
push 0x56f230
mov cl, byte [eax + 1]
sub cl, byte [eax + 3]
sub cl, byte [eax + 2]
add cl, byte [eax]
mov byte [0x56f234], cl
call fcn.0045bf1c
add esp, 4
cmp byte [esi], 0
mov eax, esi
je 0x405d08
mov cl, byte [0x56f234]
nop dword [eax]
xor byte [eax], cl
inc eax
cmp byte [eax], 0
jne 0x405d00
sub eax, esi
pop esi
ret
xor eax, eax
pop esi
ret