joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7734
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4a7762
mov eax, ebx
call fcn.004a81e8
cmp dword [ebx + 0x40], 0
je 0x4a775b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4a77d3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4a77c5
cmp dword [ebx + 8], 0
je 0x4a7784
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4a7796
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4a77c5
cmp dword [ebx + 8], 0
je 0x4a7777
cmp eax, 3
je 0x4a77a9
dec eax
jne 0x4a7777
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4a7777
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4a7777
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4a77f1
cmp dword [ebx + 0x14], 0xcc
je 0x4a77f1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004a77fc
pop ebx
ret

Function at 0x4be920
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41b96c]
call fcn.00405538
xor eax, eax
push ebp
push 0x4bea64
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x63fe4c], 0
jne 0x4be973
mov ecx, dword [0x64e4ec]
mov dl, 1
mov eax, dword [0x408708]
call fcn.0040dd38
call fcn.0040438c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004032b4
mov eax, ebx
call fcn.004052f0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4bea74
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406934
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405300
test eax, eax
jle 0x4bea0b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4bea04
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404c98
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404c80
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004095d8
test eax, eax
jne 0x4bea04
mov ebx, 0x15
jmp 0x4bea10
mov ebx, 0x10
jmp 0x4bea10
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x63fe4c]
call fcn.004be878
mov eax, dword [ebp - 8]
call fcn.004be878
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040694c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bea6b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404a34
lea eax, [ebp - 0x10]
mov edx, dword [0x41b96c]
call fcn.00405608
ret
Function at 0x4d9600
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4d9625
cmp dword [esp + 4], 5
jb 0x4d9625
mov al, 1
jmp 0x4d9627
xor eax, eax
add esp, 0x94
ret
Function at 0x4ed480
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ed6e0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4ed4e3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004ecf48
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040e680
cmp al, 1
jne 0x4ed4e3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004ed260
test al, al
je 0x4ed66f
cmp dword [ebp - 8], 0
jge 0x4ed501
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004ecf48
mov eax, dword [ebp - 0x210]
call fcn.00404cd0
cmp ebx, eax
jge 0x4ed54b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004ecf48
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x64f138]
and eax, 0xff
bt dword [edx], eax
jae 0x4ed54b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4ed55f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ed45c
cmp ebx, dword [ebp - 8]
je 0x4ed661
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4ed58b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403cf8
and eax, 0x7f
movzx eax, word [eax*2 + 0x6405e8]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4ed64e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403cf8
and eax, 0x7f
movzx eax, word [eax*2 + 0x6405e8]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0046dcf0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403cf8
and eax, 0x7f
movzx eax, word [eax*2 + 0x6405e8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0046dcf0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed655
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4ed6c2
cmp dword [ebp - 8], 0
jge 0x4ed67a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004ecf48
mov eax, dword [ebp - 0x218]
call fcn.00404cd0
cmp eax, dword [ebp - 8]
jg 0x4ed6b4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004ecf48
mov eax, dword [ebp - 0x21c]
call fcn.00404cd0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004ed45c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed6e7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404a34
ret
Function at 0x4fec4c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4fed06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405144
mov eax, dword [0x64e624]
cmp byte [eax], 0
je 0x4fecbb
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.004054d4
mov eax, dword [ebx]
call fcn.00405300
push eax
mov eax, dword [ebx]
call fcn.004052f0
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405300
mov edx, eax
dec edx
mov eax, ebx
call fcn.004054d4
jmp 0x4feced
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040a630
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004052e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fed0d
lea eax, [ebp - 0x3f0]
call fcn.00404a10
ret

Function at 0x4fed14
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.0040a630
add esp, 0x3ec
pop ebx
ret

Function at 0x4feed4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
cmp dword [esi + 0xc], 0
jne 0x4fef9a
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0047f7c4
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.004feb90
mov edi, eax
test edi, edi
je 0x4fef33
mov al, byte [0x4fefa8]
cmp al, bl
jne 0x4fef33
mov edx, edi
mov eax, ebp
call fcn.004feac8
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x4fef9a
cmp byte [ebp + 0x161], 2
jne 0x4fef5e
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x64ef88]
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov edx, 0xb006
call fcn.004684e0
test eax, eax
jne 0x4fef9a
jmp 0x4fef95
mov edx, dword [0x64ecd8]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
mov eax, dword [ebp + 0x128]
cmp edx, eax
je 0x4fef95
test byte [eax + 0x2f4], 8
jne 0x4fef95
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x64ecd8]
mov eax, edx
mov edx, 0xb006
call fcn.004684e0
xor eax, eax
mov dword [esi + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x50506c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x5050a0
cmp eax, dword [esp]
pop edx
pop eax
jae 0x5050dc
jmp 0x5050a4
pop edx
pop eax
jge 0x5050dc
mov eax, dword [0x64ef88]
mov eax, dword [eax]
mov dword [eax + 0x44], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004ffd7c
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x505101
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x505101
cmp dword [ebx + 0x11c], 0
je 0x505101
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0043e450
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x50be14
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x50bece
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405144
mov eax, dword [0x64e624]
cmp byte [eax], 0
je 0x50be83
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.004054d4
mov eax, dword [ebx]
call fcn.00405300
push eax
mov eax, dword [ebx]
call fcn.004052f0
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405300
mov edx, eax
dec edx
mov eax, ebx
call fcn.004054d4
jmp 0x50beb5
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040a630
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004052e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bed5
lea eax, [ebp - 0x3f0]
call fcn.00404a10
ret

Function at 0x50f28c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x50f2e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x50]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x4c]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.0050f2f0
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f2ed
ret
Function at 0x514c04
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x514c3a
jmp 0x514ce0
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x514c7e
mov edx, dword [ebx + 0x50]
cmp dword [edx + 0x170], 0
je 0x514c7e
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 0x170]
mov eax, dword [eax + 0x14]
jmp 0x514c8e
mov edx, dword [ebx + 0x50]
mov edx, dword [edx + 0x16c]
test edx, edx
je 0x514c8e
mov eax, dword [edx + 0x14]
test eax, eax
je 0x514ca7
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.00511578
jmp 0x514ce0
mov dl, 1
mov eax, dword [0x429f9c]
call fcn.0042c010
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.0042cbe4
mov eax, dword [ebx + 0x50]
mov edx, dword [eax + 0xc4]
mov eax, dword [esi + 0x10]
call fcn.0042bba0
mov edx, esp
mov eax, esi
call fcn.0042c75c
mov eax, esi
call fcn.00403afc
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x517658
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.0046dcf0
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.004671ec
pop ebx
ret
Function at 0x521bf4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x521d65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x521d4a
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.0040a630
mov dl, 1
mov eax, dword [0x4ea4dc]
call fcn.004ea534
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x41cdbc]
call fcn.00403acc
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.004ea5b0
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x521d47
mov dl, 1
mov eax, dword [0x4eb8ac]
call fcn.004eb914
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, 0x521d7c
call fcn.004eaa60
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404d1c
xor eax, eax
push ebp
push 0x521d40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.004ebc14
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00521d84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521d47
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.00403afc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00403afc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403afc
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521d6c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404a34
ret

Function at 0x524358
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov byte [ebp - 5], 0
push 0
mov eax, dword [ebx + 0x44]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x5243c7
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x5243a9
mov ecx, dword [edi]
mov edx, esi
mov eax, ebx
call fcn.005243d4
test al, al
je 0x5243c7
jmp 0x52436f
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x5243bb
mov byte [ebp - 5], 1
jmp 0x5243c7
cmp eax, 6
je 0x5243c7
mov eax, ebx
call fcn.0052464c
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x52479c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 8]
add eax, esi
push eax
mov eax, dword [edi + 0x40]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x524858
call sub.kernel32.dll_GetLastError
cmp eax, 6
je 0x52486a
cmp eax, 0x3e5
je 0x524800
mov eax, edi
call fcn.00524878
jmp 0x52486a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call sub.kernel32.dll_WaitForMultipleObjects
sub eax, 0xffffffff
je 0x524846
dec eax
je 0x52486a
dec eax
je 0x52481c
jmp 0x52484f
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [edi + 0x40]
push eax
call sub.kernel32.dll_GetOverlappedResult
test eax, eax
jne 0x524858
call sub.kernel32.dll_GetLastError
cmp eax, 6
je 0x52486a
mov eax, edi
call fcn.00524878
jmp 0x52486a
mov eax, edi
call fcn.00524878
jmp 0x52486a
mov eax, edi
call fcn.00524878
jmp 0x52486a
sub ebx, dword [ebp - 0x10]
add esi, dword [ebp - 0x10]
test ebx, ebx
ja 0x5247ca
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x532c00
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x532c51
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x532c38
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x532c28
jmp 0x532c51
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x532c39
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x543654
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ec0
xor eax, eax
push ebp
push 0x54371a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404cd0
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x3a
jne 0x54369d
lea eax, [ebp - 4]
mov edx, 0x543730
call fcn.00404cd8
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404ed0
push eax
call sub.kernel32.dll_GetVolumeInformationA
lea ecx, [ebp - 0x14]
movzx eax, word [ebp - 8]
mov edx, 4
call fcn.00409ae4
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.004080b8
movzx eax, ax
lea ecx, [ebp - 0x18]
mov edx, 4
call fcn.00409ae4
mov edx, dword [ebp - 0x18]
mov eax, ebx
pop ecx
call fcn.00404d1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x543721
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404a34
lea eax, [ebp - 4]
call fcn.00404a10
ret

Function at 0x543734
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
xor edx, edx
push ebp
push 0x5437b9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0xff
call fcn.00402860
mov dword [ebp - 4], eax
mov eax, 4
call fcn.00402860
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0xff
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetComputerNameA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x543793
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040a630
jmp 0x54379a
mov eax, ebx
call fcn.00404a10
mov eax, dword [ebp - 4]
call fcn.00402880
mov edx, 4
mov eax, dword [ebp - 8]
call fcn.00402880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5437d8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x5865a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x64dc1a
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x5865fb
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x64dc3b
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x5865f1
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
jmp 0x5865ff
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x5bb4ec
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
lea eax, [esp + 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x5bb530
lea eax, [esp + 0x111]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.0040a630
add esp, 0x20c
pop ebx
ret
Function at 0x636e84
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 4], eax
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x636f65
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.0063101c
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.0063103c
jmp 0x636f3b
lea eax, [ebp - 0x130]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404c80
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 4]
call fcn.0040a28c
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 4]
call fcn.004093f8
mov eax, dword [ebp - 0x134]
mov edx, 0x636f7c
call fcn.00404e1c
jne 0x636f32
mov esi, dword [edi + 8]
push 1
push esi
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
lea eax, [ebp - 4]
call fcn.00404a10
mov edx, edi
mov eax, ebx
call fcn.0063105c
test eax, eax
jne 0x636ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x636f6c
lea eax, [ebp - 0x134]
mov edx, 2
call fcn.00404a34
lea eax, [ebp - 4]
call fcn.00404a10
ret

Function at 0x882018
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
lea eax, [edx + 1]
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x4d
jne 0x88201f
cmp byte [eax + 1], 0x5a
jne 0x88201f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp ecx, edx
ja 0x88201f
cmp dword [ecx], 0x4550
jne 0x88201f
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x882049
mov dword [ecx], eax
ret

Function at 0x883598
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
jmp 0x8835a8
push ebx
push ebp
push esi
mov ebx, ecx
push edi
xor edi, edi
mov esi, ebx
push 8
push edi
mov ecx, ebx
call fcn.00883608
shl eax, 0x18
mov dword [esi], eax
mov edx, 8
mov ebp, eax
mov ecx, ebp
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
dec edx
mov ebp, eax
jne 0x8835c8
push 0x20
push eax
mov ecx, ebx
mov dword [esi], ebp
call fcn.00883608
mov dword [esi], eax
inc edi
add esi, 4
cmp edi, 0xff
jle 0x8835b2
pop edi
pop esi
pop ebp
pop ebx
ret