joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015e3
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x402028]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x402004]
lea eax, [ebp - 0x48]
push edi
lea edi, [ebp - 0x48]
push 0x402018
lea esi, [esi - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, section..data
xor esi, esi
push edi
push 0x4014d0
push eax
mov dword [0x402020], esi
mov dword [0x402024], esi
call dword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x401652
mov ecx, dword [0x402004]
movzx eax, word [ecx]
push eax
push ecx
push 2
push dword [0x40201c]
push dword [0x402018]
call dword [sym.imp.ADVAPI32.dll_EventSetInformation]
cmp dword [section..data], 5
jbe 0x4016ab
mov ecx, dword [0x40200c]
mov edx, 0x20000
and ecx, edx
mov eax, esi
or eax, ecx
je 0x4016ab
mov ecx, dword [0x402014]
mov eax, ecx
and eax, edx
cmp esi, dword [0x402010]
jne 0x4016ab
cmp eax, ecx
jne 0x4016ab
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], 0x401100
push eax
push 3
push esi
push esi
push 0x4011b9
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x12
mov dword [ebp - 0xc], esi
call fcn.0040154b
push 1
push esi
push esi
push 0x401114
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004016d0
leave
ret 0x10

Function at 0x401c04
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x401ef0
call fcn.00401e30
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401c64
cmp eax, 0xffffffff
je 0x401c64
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401c5d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401c5d
cmp edx, 0x10000000
jae 0x401c5d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401c5a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401cd0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401d0e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401d06
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401d10
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401cf6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401de0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401e11
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401e11
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401e11
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001290
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10004c90]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
mov dword [ebp - 0x10c], 0x100
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x14
mov ecx, 0x10005ab0
call fcn.100023f0
push eax
lea edx, [ebp - 0x108]
push edx
call section..text
add esp, 8
test eax, eax
jne 0x100012e9
mov byte [ebp - 1], 1
push 0xd
mov ecx, 0x10005ab0
call fcn.100023f0
push eax
lea eax, [ebp - 0x108]
push eax
call section..text
add esp, 8
test eax, eax
jne 0x1000130d
mov byte [ebp - 1], 1
push 0xe
mov ecx, 0x10005ab0
call fcn.100023f0
push eax
lea ecx, [ebp - 0x108]
push ecx
call section..text
add esp, 8
test eax, eax
jne 0x10001331
mov byte [ebp - 1], 1
push 0xf
mov ecx, 0x10005ab0
call fcn.100023f0
push eax
lea edx, [ebp - 0x108]
push edx
call section..text
add esp, 8
test eax, eax
jne 0x10001355
mov byte [ebp - 1], 1
push 0x10
mov ecx, 0x10005ab0
call fcn.100023f0
push eax
lea eax, [ebp - 0x108]
push eax
call section..text
add esp, 8
test eax, eax
jne 0x10001379
mov byte [ebp - 1], 1
push 0x11
mov ecx, 0x10005ab0
call fcn.100023f0
push eax
lea ecx, [ebp - 0x108]
push ecx
call section..text
add esp, 8
test eax, eax
jne 0x1000139d
mov byte [ebp - 1], 1
push 0x12
mov ecx, 0x10005ab0
call fcn.100023f0
push eax
lea edx, [ebp - 0x108]
push edx
call section..text
add esp, 8
test eax, eax
jne 0x100013c1
mov byte [ebp - 1], 1
push 0x13
mov ecx, 0x10005ab0
call fcn.100023f0
push eax
lea eax, [ebp - 0x108]
push eax
call section..text
add esp, 8
test eax, eax
jne 0x100013e5
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10002436
mov esp, ebp
pop ebp
ret
Function at 0x10001400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10004c90]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x190
mov byte [ebp - 0x46], 0x45
mov byte [ebp - 0x45], 0x78
mov byte [ebp - 0x48], 0x65
mov byte [ebp - 0x4c], 0x70
mov byte [ebp - 0x43], 0
mov byte [ebp - 0x4d], 0x4f
mov byte [ebp - 0x4e], 0x67
mov byte [ebp - 0x49], 0x4b
mov byte [ebp - 0x47], 0x79
mov byte [ebp - 0x4a], 0x6e
mov byte [ebp - 0x4f], 0x65
mov byte [ebp - 0x4b], 0x65
mov byte [ebp - 0x50], 0x52
mov byte [ebp - 0x44], 0x41
mov byte [ebp - 0x2a], 0x78
mov byte [ebp - 0x2c], 0x65
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x29], 0x41
mov byte [ebp - 0x37], 0x65
mov byte [ebp - 0x30], 0x56
mov byte [ebp - 0x36], 0x67
mov byte [ebp - 0x33], 0x65
mov byte [ebp - 0x2d], 0x75
mov byte [ebp - 0x2b], 0x45
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x35], 0x51
mov byte [ebp - 0x2e], 0x6c
mov byte [ebp - 0x38], 0x52
mov byte [ebp - 0x31], 0x79
mov byte [ebp - 0x34], 0x75
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x1c], 0x6c
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x1d], 0x43
mov byte [ebp - 0x20], 0x52
mov byte [ebp - 0x1e], 0x67
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x79
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x18], 0x4b
push 0x17
mov ecx, 0x10005ab0
call fcn.100023f0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x10001512
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push 0xf013f
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [ebp - 0x10]
test eax, eax
jne 0x10001554
mov dword [ebp - 0x54], 0x190
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0xc]
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [ebp - 4]
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10002436
mov esp, ebp
pop ebp
ret
Function at 0x10002436
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10004c90]
jne 0x10002440
repz ret
jmp fcn.100028c2

Function at 0x40bb80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40a015
lea edi, [esi - 0x9015]
push edi
or ebp, 0xffffffff
jmp 0x40bba2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40bba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40bb98
mov eax, 1
add ebx, ebx
jne 0x40bbbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40bbb0
jne 0x40bbcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bbb0
xor ecx, ecx
sub eax, 3
jb 0x40bbe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40bc52
mov ebp, eax
add ebx, ebx
jne 0x40bbeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40bbf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40bc1c
inc ecx
add ebx, ebx
jne 0x40bc08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40bbfd
jne 0x40bc19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bbfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40bc3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40bc2d
jmp 0x40bb9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40bc3c
add edi, ecx
jmp 0x40bb9e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40bc5a
cmp byte [edi], 0
jne 0x40bc5a
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 al, bl
loop 0x40bc5f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40bcce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc500]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc5a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40bc8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc5ac]
or eax, eax
je 0x40bcc8
mov dword [ebx], eax
add ebx, 4
jmp 0x40bca9
call dword [esi + 0xc5a8]
mov ebp, dword [esi + 0xc5b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40bd02
sub esp, 0xffffff80
jmp 0x401413
Function at 0x423630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
je 0x423646
xor eax, eax
jmp 0x4236b8
cmp dword [ebp + 0xc], 0xffffffff
jne 0x42367d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00423f7e
add esp, 8
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp dword [eax + 0x14], 0
sete cl
mov eax, ecx
jmp 0x4236b8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00423efc
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, dword [ebp + 0xc]
setne cl
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp dword [eax + 0x14], 0
sete cl
mov eax, ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x39112102
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x675e06fe
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40c030
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x40c04a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c040
mov eax, 1
add ebx, ebx
jne 0x40c063
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c058
jne 0x40c074
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c058
xor ecx, ecx
sub eax, 3
jb 0x40c088
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c0fa
mov ebp, eax
add ebx, ebx
jne 0x40c093
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c0a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c0c4
inc ecx
add ebx, ebx
jne 0x40c0b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c0a5
jne 0x40c0c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c0a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c0e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c0d5
jmp 0x40c046
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c0e4
add edi, ecx
jmp 0x40c046
pop esi
mov edi, esi
mov ecx, 0x202
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c102
cmp byte [edi], 2
jne 0x40c102
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 al, bl
loop 0x40c107
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c17f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcbfc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcc38]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c134
mov ecx, edi
jns 0x40c163
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 + 0xcc40]
or eax, eax
je 0x40c179
mov dword [ebx], eax
add ebx, 4
jmp 0x40c151
call dword [esi + 0xcc3c]
mov ebp, dword [esi + 0xcc44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40c1b3
sub esp, 0xffffff80
jmp 0x40172c
Function at 0x402399
Capabilities:
Hash data with md5

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x68
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
call fcn.004022f7
mov ecx, 8
lea eax, [ebp - 0x68]
lea edx, [ebp - 0x50]
call fcn.00401bf4
mov eax, dword [ebp - 0x50]
mov ecx, 0x38
shr eax, 3
and eax, 0x3f
cmp eax, 0x37
jbe 0x4023f9
mov ecx, 0x78
sub ecx, eax
mov edx, 0x404020
lea eax, [ebp - 0x60]
call fcn.004022f7
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x60]
mov ecx, 8
call fcn.004022f7
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x60]
mov ecx, 0x10
call fcn.00401bf4
leave
ret

Function at 0x40242c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push ebx
xor ebx, ebx
mov eax, dword [eax]
mov edx, dword [esi]
xor eax, dword [ecx + ebx*4]
mov esi, edx
inc ebx
mov edx, eax
shr eax, 0x10
movzx edi, al
mov eax, edx
shr eax, 0x18
mov eax, dword [ecx + eax*4 + 0x48]
add eax, dword [ecx + edi*4 + 0x448]
movzx edi, dh
xor eax, dword [ecx + edi*4 + 0x848]
movzx edi, dl
add eax, dword [ecx + edi*4 + 0xc48]
xor eax, esi
cmp ebx, 0x10
jne 0x402441
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, dword [ecx + 0x40]
xor edx, dword [ecx + 0x44]
mov dword [ebx], edx
mov dword [esi], eax
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40248f
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ecx, 0x400
xor edx, edx
mov ebp, esp
push edi
push esi
mov esi, 0x405100
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x48]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, 4
xor eax, eax
mov edi, dword [ebp + 0xc]
shl eax, 8
movzx edi, byte [edi + edx]
inc edx
or eax, edi
cmp edx, dword [ebp + 0x10]
jl 0x4024c9
xor edx, edx
dec esi
jne 0x4024b5
xor eax, dword [ecx*4 + 0x406100]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, 0x12
jne 0x4024ae
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
lea edx, [ebp - 0x20]
lea edi, [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [ebp - 0x2c], eax
call fcn.0040242c
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x1c]
mov dword [ebx + eax*4 + 4], edx
add eax, 2
cmp eax, 0x12
jne 0x4024e6
mov eax, esi
xor edx, edx
lea ecx, [ebp - 0x20]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
call fcn.0040242c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov dword [ebx + eax + 0x48], ecx
mov ecx, dword [ebp - 0x1c]
add edx, 2
mov dword [ebx + eax + 0x4c], ecx
add eax, 8
cmp edx, 0x100
jne 0x40251b
add esi, 0x400
cmp esi, 0x1000
jne 0x402517
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40259d
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], 0x408058
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
sub esp, 0x14
leave
ret
Function at 0x402c90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00403a20
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00403a20
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x408088]
test esi, esi
jle 0x402e10
mov eax, dword [0x40808c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x402d24
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402da7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402d10
mov dword [esp], ebx
call fcn.00403700
mov edi, eax
test eax, eax
je 0x402e37
mov eax, dword [0x40808c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00403840
mov edx, dword [0x40808c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402e17
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402da0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402db0
add dword [0x408088], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40808c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402da0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00402c90
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x402d2e
mov eax, dword [0x40808c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00402c90
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00402c90
lea esi, [esi]
nop
Function at 0x403350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4080a4
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ebx, dword [0x40809c]
sub esp, 4
test ebx, ebx
je 0x4033a5
mov ebp, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40339e
test esi, esi
je 0x40339e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403380
mov dword [esp], 0x4080a4
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4035d0
Capabilities:
Parse pe header
Terminate process

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_exit]
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__exit]
mov eax, dword [esp + 4]
xor edx, edx
cmp word [eax], 0x5a4d
jne 0x403608
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
je 0x403610
mov eax, edx
ret
xor edx, edx
cmp word [eax + 0x18], 0x10b
sete dl
mov eax, edx
ret

Function at 0x403700
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x403725
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x403730
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x403725
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 si, si
je 0x403778
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40376e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40377a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x403760
xor eax, eax
pop ebx
pop esi
ret