joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4253a8
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4253a2
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4253c0
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42541e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
add byte [eax], al
and byte [ecx + 0x1065], al
invalid
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x425405
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x42540e
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x425418
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4253fa
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x425384
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x42546b
dec eax
je 0x425462
sub eax, 3
je 0x425459
mov dword [ebp - 4], 0x40
jmp 0x425488
mov dword [ebp - 4], 4
jmp 0x42546e
mov dword [ebp - 4], 0x20
jmp 0x42546e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4254ba
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x42543a
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00424ccb
cmc
lds ebx, [ecx - 1]
jne 0x4254c5
push 1
push esi
call edi
mov eax, esi
jmp 0x4254c6
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4253f0
Capabilities:
Inspect section memory permissions

Disassembly:
add byte [eax], al
and byte [ecx + 0x1065], al
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
Function at 0x425540
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00424cdb
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00424c90
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
invalid
dec dword [ecx]

Function at 0x4266bc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x426d71
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x426846
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
test dword [edx - 0x58000008], ecx
test dword [edx - 0x58000008], ecx
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
mov byte [ebp - 0x761], 0xdb
mov byte [ebp - 0x760], 0xbd
mov byte [ebp - 0x75f], 0x92
mov byte [ebp - 0x75e], 0x97
mov byte [ebp - 0x75d], 0x9e
mov byte [ebp - 0x75c], 0x88
mov byte [ebp - 0x75b], 0xa7
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
mov byte [ebp - 0x753], 0x88
mov byte [ebp - 0x752], 0x82
mov byte [ebp - 0x751], 0x96
mov byte [ebp - 0x750], 0x88
mov byte [ebp - 0x74f], 0x89
mov byte [ebp - 0x74e], 0x8d
mov byte [ebp - 0x74d], 0xd5
mov byte [ebp - 0x74c], 0x9f
mov byte [ebp - 0x74b], 0x97
mov byte [ebp - 0x74a], 0x97
mov byte [ebp - 0x749], 0xfb
lea eax, [ebp - 0x77c]
push eax
call fcn.00424cdb
pop ecx
mov al, byte [ebp - 0x12c]
mov byte [ebp - 0x778], al
push 0x30
lea eax, [ebp - 0x77c]
push eax
call fcn.00424cdb
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.00424c3c
add esp, 0xc
lea eax, [ebp - 0x504]
mov dword [ebp - 0x3a0], eax
jmp 0x426c43
cmp dword [ebp - 0x6fc], 1
jne 0x4268f7
and byte [ebp - 0x78c], 0
invalid
movsd dword es:[edi], dword [esi]
jne 0x426856
invalid
invalid
Function at 0x42f320
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403894
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42f381
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x42f381
cmp byte [ebp - 0x102], 0
je 0x42f381
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403ac0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43561c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4427d4
cmp dword [edi], 0
jne 0x435698
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4427d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44181c
mov ecx, 2
call fcn.004027b0
mov edx, 0x4355f4
lea eax, [esi + 5]
call fcn.00435614
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00435614
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43566d
mov dword [0x4427d0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4357bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43580c]
test si, 4
je 0x4357d0
or bl, 1
test si, 8
je 0x4357da
or bl, 4
test si, 1
je 0x4357e4
or bl, 8
test si, 2
je 0x4357ee
or bl, 0x10
test si, 0x10
je 0x4357f8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x435807
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x435810
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x435848]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x435829
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x435838
or bl, 4
test esi, 0x20000000
je 0x435843
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43beec
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43c091
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b9c4]
call fcn.00402cc4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403894
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43c067
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0042c2d8
test al, al
je 0x43c05a
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x43c0a0
lea eax, [ebp - 0x254]
call fcn.004080d8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43c05a
xor eax, eax
push ebp
push 0x43c053
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x43c0d8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43c03c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403ac0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43c03c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403ac0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c05a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43bf5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040e854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c098
lea eax, [ebp - 0x260]
call fcn.00403894
ret

Function at 0x43c834
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4427a4]
cmp byte [eax + 0x8d], 0
jne 0x43c8a5
cmp dword [0x4427e0], 0
jne 0x43c866
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43c7f0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4427e0], eax
cmp dword [0x4427dc], 0
jne 0x43c881
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4427dc], eax
cmp dword [0x4427e4], 0
jne 0x43c8a5
push esp
push 0
push 0
push 0x43c794
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4427e4], eax
pop edx
ret
Function at 0x43c99c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43c9b3
add esp, 0xfffffff0
call fcn.00402fe0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411698
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40b6c4]
call fcn.00402cc4
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40b6c4]
call fcn.00402cc4
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x413424]
call fcn.0041a338
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x43cb24
mov eax, dword [0x441af0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041a6dc
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x43e418
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x441af0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.004093a0
test eax, eax
je 0x43caa3
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407a60
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004093c8
test eax, eax
je 0x43cab7
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403ac0
mov eax, dword [0x441a08]
cmp byte [eax], 0
jne 0x43cae8
mov eax, ebx
call fcn.0043cc10
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43cb1a
call fcn.00403038
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43ce6c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4427a4]
cmp dword [eax + 0x24], 0
je 0x43cefc
cmp dword [ebx + 0x7c], 0
jne 0x43cef9
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43ce00
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x43cef9
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43cec8
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43cef9
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040cce8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43ced4
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x43d84c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x43d881
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403978
jmp 0x43d88b
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.0040392c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43e748
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x43e780
mov eax, esi
call fcn.004280a0
test al, al
je 0x43e780
mov eax, dword [ebx + 0x6c]
call fcn.00427c78
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43e780
push 0
mov eax, dword [ebx + 0x6c]
call fcn.00427c78
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x440a04
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403cc4
mov eax, dword [ebp - 8]
call fcn.00403cc4
mov eax, dword [ebp - 0xc]
call fcn.00403cc4
xor eax, eax
push ebp
push 0x440ad3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x440aec
call fcn.00403b18
lea eax, [ebp - 8]
mov edx, 0x440aec
call fcn.00403b18
lea eax, [ebp - 0xc]
mov edx, 0x440aec
call fcn.00403b18
mov bl, 1
push 1
lea eax, [ebp - 0xc]
call fcn.00403ce0
push eax
lea eax, [ebp - 8]
call fcn.00403ce0
push eax
lea eax, [ebp - 4]
call fcn.00403ce0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x440ab8
xor ebx, ebx
push 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x440af8
call fcn.00403b5c
mov eax, dword [ebp - 0x10]
mov cx, word [0x440b18]
mov dl, 1
call fcn.00440494
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440ada
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004038b8
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
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 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
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 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x417f85
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x417f94
pop dword [ebp - 0x2c]
mov eax, 0x417f94
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x2e98f7a7
sub dword [ebp - 0x3c], 0xe046b25c
mov dword [ebp - 0x38], 0x50c252a1
sub dword [ebp - 0x38], 0x1e8f065c
mov dword [ebp - 0x34], 0xf38857ff
sub dword [ebp - 0x34], 0xa73c13d1
mov dword [ebp - 0x30], 0x758e01f3
add dword [ebp - 0x30], 0x8a71fe0d
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x81a2a3df
add eax, 0x7e9f8c95
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x60eddde7
add dword [ebp - 0x3c], 0x13848b6f
mov dword [ebp - 0x38], 0xae2d8682
sub dword [ebp - 0x38], 0x6cc1250d
mov dword [ebp - 0x34], 0xaf2a5b9
add dword [ebp - 0x34], 0x587cc6b3
mov dword [ebp - 0x30], 0x26dd93ed
add dword [ebp - 0x30], 0xd9226c13
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x3591f8f1
sub eax, 0x354fc7cd
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e25e
push 0
call eax
mov ecx, 0x858e4b68
add ecx, 0x7a71fdf6
mov esi, eax
mov edx, 0x1ebd47f4
add edx, 0xe185fc0c
add edx, dword [ebp - 0x2c]
mov ebx, 0xe3008ecf
add ebx, 0x95af158a
add dword [ebp - 0x24], edi
mov edi, dword [edx]
mov dword [ebp - 0x20], 0x903e7259
add edi, ebx
xor dword [ebp - 4], 0x2b5d5e50
mov dword [esi], edi
sub dword [ebp - 0x28], 0x5870ca9c
add esi, 0xb57d2b05
sub esi, 0xb57d2b01
add edx, 0xba82f968
add edx, 0x457d069c
loop 0x4180b1
add eax, 0x1184b
xor ebx, ebx
add ebx, eax
add eax, 0xbd017755
add eax, 0x42fe88b0
mov ecx, 0xdd76c749
add ecx, 0x22c938b7
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x402f50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f7d
mov ecx, dword [0x4243b8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41710c], eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040307b
cmp eax, edi
jl 0x403074
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409024]
call ebx
test eax, eax
je 0x403071
cmp dword [ebp - 4], esi
jne 0x403071
push dword [ebp + 8]
add dword [0x41710c], esi
call fcn.0040307b
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403074
cmp dword [ebp + 0x10], edi
jne 0x403040
cmp dword [ebp + 8], edi
jle 0x40306c
mov esi, 0x4130c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402ff0
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409024]
call ebx
test eax, eax
je 0x403071
cmp edi, dword [ebp - 4]
jne 0x403071
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40303c
cmp dword [ebp + 0x14], edi
jne 0x40303c
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41710c], eax
cmp dword [ebp + 8], 0
jg 0x402fe3
jmp 0x40306c
push 0xfffffffffffffffe
jmp 0x403073
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40304b
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409024]
call ebx
test eax, eax
je 0x403071
mov eax, dword [ebp - 4]
add dword [0x41710c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403074
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40307b
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, dword [0x41710c]
mov edi, eax
sub esi, dword [0x40b03c]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403251
push dword [0x41f11c]
call fcn.0040328e
push ebp
push ebp
push dword [0x40b03c]
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [0x41f118], esi
mov dword [0x417108], ebp
mov eax, dword [0x417110]
mov ebx, 0x4000
sub eax, dword [0x41f11c]
cmp eax, ebx
jg 0x4030ee
mov ebx, eax
mov esi, 0x4130c8
push ebx
push esi
call fcn.0040325c
test eax, eax
je 0x40321c
add dword [0x41f11c], ebx
mov dword [0x40b058], esi
mov dword [0x40b05c], ebx
cmp dword [0x424368], ebp
je 0x40317f
cmp dword [0x424400], ebp
jne 0x40317f
cmp dword [esp + 0x10], ebp
je 0x40314c
mov eax, dword [0x41f118]
push ebp
sub eax, dword [0x41710c]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b03c]
mov dword [0x417108], eax
call fcn.00405e94
jmp 0x40317f
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, edi
jbe 0x40317f
mov eax, dword [0x424364]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402bab
push ebp
push 0x6f
push dword [0x424360]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40b040
mov dword [0x40b060], 0x40b0c8
mov dword [0x40b064], 0x8000
call fcn.00405f55
test eax, eax
jl 0x403225
mov esi, dword [0x40b060]
mov eax, 0x40b0c8
sub esi, eax
je 0x4031e6
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403221
cmp esi, dword [esp + 0x14]
jne 0x403221
add dword [0x40b03c], esi
cmp dword [0x40b05c], ebp
jne 0x403114
jmp 0x4031f2
cmp dword [0x40b05c], ebp
jne 0x403225
cmp ebx, ebp
je 0x403225
mov eax, dword [0x41710c]
mov ecx, eax
sub ecx, dword [0x40b03c]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030d8
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x40322a
or eax, 0xffffffff
jmp 0x403253
push 0xfffffffffffffffe
jmp 0x403227
push 0xfffffffffffffffd
pop eax
jmp 0x403253
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403251
mov eax, dword [0x41f118]
push ebp
push ebp
push 0x113
push esi
mov dword [0x417108], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4053eb
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422960], 0x44
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40540f
test al, 0x10
jne 0x405412
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422960
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x40543d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8