joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472be9
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ac190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.004707e9
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x472c42
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.0046db39
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.0046db29
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00472299
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [fcn.004ae418]
push 0
lea ecx, [esp + 0x4c]
call fcn.004a8a23
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.00481aa9
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00470249
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x4ae0e4]
mov ecx, ebx
call fcn.0046daa9
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x472d0d
push edi
mov ecx, esi
call fcn.00470359
push eax
push ebp
mov ecx, esi
call fcn.00470519
cmp eax, dword [esp + 0x40]
jg 0x472d09
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x472ce7
mov eax, ebx
jmp 0x472d13
cmp edi, ebx
jl 0x472d11
mov eax, ebx
jmp 0x472d13
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x472d24
mov dword [esp + 0x30], eax
jmp 0x472d2f
cmp edi, ebx
jl 0x472d2a
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.0046da69
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x472d76
push edi
mov ecx, esi
call fcn.00470279
push eax
push ebx
mov ecx, esi
call fcn.00470649
cmp eax, dword [esp + 0x44]
jg 0x472d6e
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x472d48
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x472d80
cmp edi, ebp
jl 0x472d7a
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x472d80
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x472d89
mov ecx, eax
jmp 0x472d92
cmp edi, ebp
jl 0x472d8f
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00470269
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.004a8a95
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x478cc9
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ac648
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x478d02
inc eax
mov dword [esi + 0x10], eax
jmp 0x478e15
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x478d16
mov eax, 0xffffffc7
jmp 0x478e17
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x478d27
cmp dword [esi + 8], eax
jne 0x478d16
cmp dword [esi + 8], eax
jne 0x478d40
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x478d40
mov eax, 0xffffffc7
jmp 0x478e17
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x478d54
push eax
mov ecx, ebx
call fcn.004784f9
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00448289
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x478d85
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004482a9
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00477c69
test eax, eax
mov dword [esp + 0x38], eax
je 0x478db8
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c0270
call fcn.00448489
mov eax, dword [esp + 0x38]
jmp 0x478e17
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00478b29
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x478dfc
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00478b49
mov esi, eax
test esi, esi
jne 0x478e2c
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00478b29
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x478dce
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c0270
call fcn.00448489
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c0270
call fcn.00448489
mov eax, esi
jmp 0x478e17
Function at 0x482ac9
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4acd03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a3633
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4c4420
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x4c34d8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [fcn.004ae0ac]
push eax
mov ecx, edi
call fcn.004a8ccb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004aa1e7
test eax, eax
je 0x482be5
mov ecx, dword [esp + 0x3c]
call fcn.004a8cf8
mov ecx, dword [esi + 0x1c]
mov ebp, dword [fcn.004ae3f8]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x482ba9
push edi
mov ecx, esi
call fcn.004a635d
mov ecx, esi
call fcn.00482d49
cmp dword [esp + 0x38], 1
jne 0x482bde
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a6498
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x485609
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x48563c
push esi
call fcn.004886f9
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x485635
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4856c2
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4856ab
mov eax, dword [esi + 8]
test eax, eax
je 0x485660
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4856a7
cmp eax, 2
je 0x4856ab
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x485653
cmp eax, 3
je 0x485686
cmp eax, 1
jne 0x485653
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x485653
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x485653
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004856e9
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4856d1
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004856e9
add esp, 4
pop esi
ret
Function at 0x40f2c0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
xor eax, eax
push edi
mov edi, dword [esp + 0xc]
push edi
mov byte [esi + 0x68], al
mov byte [esi + 0x89], al
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.00419af0
add esp, 4
push eax
push edi
mov ecx, esi
call fcn.0040efc0
mov ecx, esi
call fcn.0040f080
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x404c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd0e1
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x67bc94]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
movzx ecx, byte [eax + 0x2b]
test ecx, ecx
je 0x404ca7
mov ecx, dword [ebp + 8]
call fcn.00403de0
push eax
call fcn.005ae4a5
add esp, 4
mov edx, dword [ebp - 0x50]
movzx eax, byte [edx + 0x2c]
test eax, eax
je 0x404d2f
push 0x600964
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.00403de0
push eax
call fcn.005ae447
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404d2f
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00405280
mov dword [ebp - 4], 0
push 0x600968
lea ecx, [ebp - 0x30]
call fcn.00403070
mov edx, dword [ebp - 0x10]
push edx
push 1
lea ecx, [ebp - 0x30]
call fcn.00405300
push eax
lea ecx, [ebp - 0x30]
call fcn.00403de0
push eax
call fcn.005ae311
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
call fcn.005ae146
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403d60
mov ecx, dword [ebp - 0x50]
movzx edx, byte [ecx + 0x2d]
test edx, edx
je 0x404d46
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.00405410
mov ecx, dword [ebp - 0x50]
movzx edx, byte [ecx + 0x2e]
test edx, edx
je 0x404d8f
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00405280
mov dword [ebp - 4], 1
push 0x60096c
lea ecx, [ebp - 0x4c]
call fcn.00403070
lea ecx, [ebp - 0x4c]
call fcn.00403de0
push eax
call dword [0x5ff594]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00403d60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005aa2c1
mov esp, ebp
pop ebp
ret 4
Function at 0x405d50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd298
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x67bc94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00403de0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403c50
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00405cf0
add esp, 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403d60
cmp dword [ebp - 0x50], 0
jne 0x405dc5
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406ec0
add esp, 4
jmp 0x405f19
mov edx, dword [ebp - 0x50]
add edx, 2
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.004131d1
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00407a90
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00407ae0
mov byte [eax], 0
push 0x6009cc
mov ecx, dword [ebp + 8]
call fcn.00403de0
push eax
call fcn.005ae447
add esp, 8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x405e35
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00407ab0
mov al, byte [ebp - 0x61]
jmp 0x405f19
mov edx, dword [ebp - 0x54]
push edx
push 1
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00407b00
push eax
call fcn.005af022
add esp, 0x10
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
je 0x405e82
push 0x6009d0
lea ecx, [ebp - 0x48]
call fcn.00403c50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
push ecx
call fcn.004050f0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403d60
mov edx, dword [ebp - 0x54]
push edx
call fcn.005ae146
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.00407b00
mov ecx, dword [ebp - 0x50]
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x5c]
call fcn.00407b00
mov edx, dword [ebp - 0x50]
mov byte [eax + edx + 1], 0
cmp dword [ebp - 0x4c], 1
je 0x405ecb
mov byte [ebp - 0x62], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00407ab0
mov al, byte [ebp - 0x62]
jmp 0x405f19
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00407b00
push eax
call fcn.00406110
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x405f03
mov byte [ebp - 0x63], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00407ab0
mov al, byte [ebp - 0x63]
jmp 0x405f19
mov byte [ebp - 0x64], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00407ab0
mov al, byte [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aa2c1
mov esp, ebp
pop ebp
ret
Function at 0x406290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd347
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x67bc94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x600a54
mov ecx, dword [ebp + 8]
call fcn.00403de0
push eax
call fcn.005ae447
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4062db
xor al, al
jmp 0x406351
mov eax, dword [ebp - 0x34]
push eax
push 1
mov ecx, dword [ebp + 0xc]
call fcn.00405300
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403de0
push eax
call fcn.005ae311
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.005ae146
add esp, 4
cmp dword [ebp - 0x30], 1
je 0x40634f
mov ecx, dword [ebp + 0xc]
call fcn.00405300
test eax, eax
je 0x40634f
push 0x600aa0
lea ecx, [ebp - 0x2c]
call fcn.00403c50
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
push edx
call fcn.004050b0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403d60
xor al, al
jmp 0x406351
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aa2c1
mov esp, ebp
pop ebp
ret
Function at 0x406c00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd571
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x67bc94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x48]
call fcn.00403be0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.00403be0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406760
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0x600b9c
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00403640
add esp, 0xc
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb0]
push ecx
lea edx, [ebp - 0x74]
push edx
call fcn.00403700
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00403d60
push 0x600ba0
mov ecx, dword [ebp + 8]
call fcn.00403de0
push eax
call fcn.005ae447
add esp, 8
mov dword [ebp - 0x50], eax
push 0x600ba4
lea ecx, [ebp - 0x74]
call fcn.00403de0
push eax
call fcn.005ae447
add esp, 8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x50], 0
je 0x406cef
cmp dword [ebp - 0x54], 0
jne 0x406d2b
mov byte [ebp - 0x9d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00403d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.00403d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00403d60
mov al, byte [ebp - 0x9d]
jmp 0x406e3b
mov dword [ebp - 0x94], 0x10000
push 0x10000
call fcn.004131d1
add esp, 4
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x98]
call fcn.004054c0
mov byte [ebp - 0x49], 1
mov ecx, dword [ebp - 0x50]
push ecx
push 0x10000
push 1
lea ecx, [ebp - 0x98]
call fcn.00405510
push eax
call fcn.005af022
add esp, 0x10
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x406ddf
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x58]
push eax
push 1
lea ecx, [ebp - 0x98]
call fcn.00405510
push eax
call fcn.005ae311
add esp, 0x10
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0x58]
je 0x406dbb
mov byte [ebp - 0x49], 0
jmp 0x406ddf
mov edx, dword [ebp - 0x50]
push edx
push 0x10000
push 1
lea ecx, [ebp - 0x98]
call fcn.00405510
push eax
call fcn.005af022
add esp, 0x10
mov dword [ebp - 0x58], eax
jmp 0x406d80
mov eax, dword [ebp - 0x50]
push eax
call fcn.005ae146
add esp, 4
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.005ae146
add esp, 4
mov dl, byte [ebp - 0x49]
mov byte [ebp - 0xa5], dl
lea ecx, [ebp - 0x98]
call fcn.004054e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00403d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.00403d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00403d60
mov al, byte [ebp - 0xa5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aa2c1
mov esp, ebp
pop ebp
ret
Function at 0x55052b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00426586
call fcn.004155f7
cmp eax, esi
pop esi
jne 0x550547
mov ecx, 0x67f190
jmp fcn.004378c7
ret

Function at 0x5dc4a0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
lea eax, [ecx + 1]
ret
Function at 0x401210
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 4
mov eax, 0x42820d
call fcn.004106b2
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0xc
call fcn.0040ff0a
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
push edi
mov dword [esi], section..thnb
mov dword [esi + 4], edi
mov dword [esi + 8], str.YE_fm__
call dword [sym.imp.ole32.dll_OleInitialize]
or dword [ebp - 4], 0xffffffff
push 0x40
push 0x3000
push 0x5f0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov dword [esi + 4], eax
call fcn.004046a6
push 0x63000
push dword [esi]
call dword [esi + 4]
pop ecx
pop ecx
xor eax, eax
call fcn.0041067b
ret

Function at 0x401ab6
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
call fcn.0040fe70
mov edx, 0x4367a8
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
call fcn.004016fe
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401d8d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x43f070]
xor eax, esp
mov dword [esp + 0x194], eax
xor eax, eax
inc eax
lock xadd dword [0x4434c4], eax
inc eax
cmp eax, 1
jne 0x401dcb
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x4434c8
xchg dword [ecx], eax
mov ecx, dword [esp + 0x194]
mov eax, 0x442c79
xor ecx, esp
call fcn.0040fef9
mov esp, ebp
pop ebp
ret 4
Function at 0x40a6f0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
movaps xmm0, xmmword [eax]
lea edx, [esi - 1]
pxor xmm0, xmmword [edi]
movaps xmmword [eax], xmm0
cmp edx, 1
jbe 0x40a73d
add edx, 0xfffffffe
lea ecx, [edi + 0x10]
shr edx, 1
inc edx
nop dword [eax]
movaps xmm0, xmmword [eax]
lea ecx, [ecx + 0x20]
aesdec xmm0, xmmword [ecx - 0x20]
movaps xmmword [eax], xmm0
aesdec xmm0, xmmword [ecx - 0x10]
movaps xmmword [eax], xmm0
sub edx, 1
jne 0x40a720
movaps xmm0, xmmword [eax]
add esi, esi
aesdec xmm0, xmmword [edi + esi*8 - 0x10]
movaps xmmword [eax], xmm0
aesdeclast xmm0, xmmword [edi + esi*8]
pop edi
movaps xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a760
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x18]
sub esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movaps xmm1, xmmword [eax]
movaps xmm0, xmmword [ecx]
mov eax, dword [ebp + 0x14]
pxor xmm0, xmm1
movaps xmmword [ecx], xmm0
movaps xmm0, xmmword [edx]
push esi
mov esi, dword [ebp + 0x10]
pxor xmm0, xmm1
movaps xmmword [edx], xmm0
push edi
mov edi, dword [ebp + 0x1c]
movaps xmm0, xmmword [esi]
pxor xmm0, xmm1
movaps xmmword [esi], xmm0
movaps xmm0, xmmword [eax]
pxor xmm0, xmm1
movaps xmmword [eax], xmm0
cmp edi, 1
jbe 0x40a7fd
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
add edi, 0x10
dec ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
nop
sub dword [esp + 0xc], 1
lea edi, [edi + 0x10]
movaps xmm1, xmmword [edi - 0x10]
movaps xmm0, xmmword [ecx]
aesdec xmm0, xmm1
movaps xmmword [ecx], xmm0
movaps xmm0, xmmword [edx]
aesdec xmm0, xmm1
movaps xmmword [edx], xmm0
movaps xmm0, xmmword [esi]
aesdec xmm0, xmm1
movaps xmmword [esi], xmm0
movaps xmm0, xmmword [eax]
aesdec xmm0, xmm1
movaps xmmword [eax], xmm0
jne 0x40a7c0
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
add edi, edi
movaps xmm0, xmmword [ecx]
movaps xmm1, xmmword [eax + edi*8]
mov eax, dword [ebp + 0x14]
aesdeclast xmm0, xmm1
movaps xmmword [ecx], xmm0
movaps xmm0, xmmword [edx]
aesdeclast xmm0, xmm1
movaps xmmword [edx], xmm0
movaps xmm0, xmmword [esi]
aesdeclast xmm0, xmm1
movaps xmmword [esi], xmm0
movaps xmm0, xmmword [eax]
aesdeclast xmm0, xmm1
pop edi
movaps xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x422c8d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042294d
Function at 0x402bc3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40a58c], 0
push esi
jne 0x402bfa
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x402bd4
mov dword [ecx*4 + 0x40a588], eax
inc ecx
cmp ecx, 0x100
jl 0x402bcf
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x402c2b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40a588]
xor eax, esi
inc ecx
dec edx
jne 0x402c0d
pop edi
not eax
pop esi
ret 0xc