joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004712c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1004716b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004716b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004716b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1004716b
cmp dword [ecx + 0x74], 0xe
jbe 0x1004716b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1004b510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004b53d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004b53d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1004b860
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005bd30
push 0x1005bd28
push str.FlsAlloc
push 0x1f
call fcn.1004bb43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004b894
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1004b89a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004b8de
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005bd40
push 0x1005bd38
push str.FlsGetValue
push 0x21
call fcn.1004bb43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004b915
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004b91d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005bd48
push 0x1005bd40
push str.FlsSetValue
push 0x22
call fcn.1004bb43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004b957
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1004fd00
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1004fd9d
push ebx
push esi
call fcn.1004fda0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1004fc04
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004fd4a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004fd9c
push edi
push eax
call fcn.1004d832
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004fd6a
call fcn.1004cd0d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004fd9b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1004fc04
add esp, 0x20
test eax, eax
jne 0x1004fd89
push edi
call fcn.1004cd0d
jmp 0x1004fd91
push ebx
call fcn.1004cd0d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4148c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041473c

Function at 0x418e62
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004189b5

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

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x407ef8
mov ecx, 0x57722f20
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x3ea13eec
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x403875
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
push esi
push edi
jne 0x403921
cmp dword [ebp + 0x10], ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 1
mov dword [ebp - 8], 0x114
pop eax
mov byte [ebp - 0x11c], bl
mov dword [ebp + 0x14], eax
mov esi, 0x80000000
je 0x403903
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403903
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x11c]
push eax
call edi
test eax, eax
je 0x4038f3
cmp dword [ebp + 0x10], 1
mov dword [ebp + 0x14], ebx
je 0x4038fa
mov dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x14], ebx
je 0x403967
push dword [ebp + 0xc]
call edi
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jmp 0x403965
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40396c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40396c
cmp esi, ebx
jne 0x40396c
push 1
pop eax
jmp 0x40396e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403973
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov cl, 0x22
mov al, byte [esi]
cmp al, cl
jne 0x40399d
mov al, byte [esi + 1]
inc esi
cmp al, cl
je 0x403996
test al, al
jne 0x40398a
cmp byte [esi], cl
jne 0x4039a7
inc esi
jmp 0x4039a7
cmp al, 0x20
jle 0x4039a7
inc esi
cmp byte [esi], 0x20
jg 0x4039a1
mov al, byte [esi]
test al, al
je 0x4039b4
cmp al, 0x20
jg 0x4039b4
inc esi
jmp 0x4039a7
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x4039ce
movzx eax, word [ebp - 0x14]
jmp 0x4039d1
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403c0e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push 0xff
mov ebx, ecx
push eax
push 2
push edi
mov dword [ebp - 4], ebx
mov dword [ebx + 0x894], edi
call dword [sym.imp.USER32.dll_LoadStringA]
xor esi, esi
lea eax, [ebp - 0x214]
push esi
push edi
push esi
push esi
mov edi, 0x80000000
push esi
push edi
push esi
push edi
push 0xcf0000
push eax
push str.ShockwaveFlash
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x403c72
xor eax, eax
jmp 0x403df0
push 1
push eax
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
mov dword [ebx + 0x9ac], eax
call fcn.00404866
cmp dword [ebp + 0x10], esi
je 0x403cb1
push dword [ebp + 0x10]
call fcn.0041c00b
test eax, eax
pop ecx
jbe 0x403cb1
push dword [ebp + 0x10]
mov ecx, dword [0x41f3f0]
call fcn.00405044
jmp 0x403dc7
lea eax, [ebp - 0x114]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
lea eax, [ebp - 0x114]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x403dc7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push esi
lea eax, [edi - 8]
push eax
push dword [ebp + 0x10]
call ebx
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x10]
push 8
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 8
jne 0x403dbb
cmp dword [ebp - 0x10], 0xfa123456
jne 0x403dbb
sub edi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
push esi
push esi
sub edi, 8
mov dword [eax + 0x9b0], 1
push edi
push dword [ebp + 0x10]
call ebx
mov ecx, dword [ebp - 4]
push esi
call fcn.004133d0
mov ebx, eax
cmp ebx, esi
je 0x403da4
mov edi, dword [ebp - 0xc]
mov dword [ebp + 8], esi
mov eax, 0x400
cmp edi, eax
ja 0x403d6d
mov eax, edi
cmp eax, esi
je 0x403da4
lea ecx, [ebp + 8]
push esi
push ecx
push eax
lea eax, [ebp - 0x614]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403da4
push dword [ebp + 8]
sub edi, dword [ebp + 8]
lea eax, [ebp - 0x614]
mov ecx, ebx
push eax
call fcn.00412cdb
cmp dword [ebp + 8], esi
ja 0x403d62
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
add eax, 0x8a8
push eax
call fcn.0041bfed
pop ecx
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 4]
mov ecx, dword [0x41f3f0]
call fcn.004044a1
push dword [ebp + 0xc]
push dword [ebx + 0x9ac]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x9ac]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x404138
Capabilities:
Copy file
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
lea eax, [ebp - 0x11c]
push 0x104
xor edi, edi
push eax
mov ebx, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
lea eax, [ebp - 0x11c]
push dword [ebp + 8]
mov dword [ebp - 0x18], edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404258
push edi
push pe_nt_image_headers32
push 3
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 8], esi
je 0x404258
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
push edi
add eax, 0xfffffff8
push edi
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x14]
push 8
push eax
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 8
jne 0x404241
cmp dword [ebp - 0x14], 0xfa123456
jne 0x4041e6
push 0xfffffffffffffff8
pop eax
sub eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
lea esi, [ebx + 0x84]
push edi
push eax
push dword [esi]
push dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call ebx
mov esi, dword [esi]
cmp dword [ebp - 4], esi
jne 0x404241
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x14]
push 8
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], 0xfa123456
mov dword [ebp - 0x10], esi
call ebx
cmp dword [ebp - 4], 8
jne 0x404241
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0x18], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], edi
jne 0x404258
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4045ce
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push str.FSCommand:
push dword [ebp + 0xc]
call fcn.00412f56
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x404710
push str.quit
push esi
call fcn.00412f56
pop ecx
test eax, eax
pop ecx
je 0x404619
cmp byte [eax], 0
jne 0x404619
mov eax, dword [0x41f3f0]
push dword [eax + 0x898]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x404710
push str.fullscreen
push esi
call fcn.00412f56
pop ecx
test eax, eax
pop ecx
je 0x404649
cmp byte [eax], 0
jne 0x404649
push dword [ebp + 0x10]
call fcn.00404715
pop ecx
mov ecx, dword [0x41f3f0]
push eax
call fcn.0040425f
jmp 0x404710
push str.allowscale
push esi
call fcn.00412f56
pop ecx
test eax, eax
pop ecx
je 0x404686
cmp byte [eax], 0
jne 0x404686
push dword [ebp + 0x10]
call fcn.00404715
neg eax
sbb eax, eax
pop ecx
mov ecx, dword [ebp + 8]
and al, 0xfd
add eax, 3
push 2
mov dword [ecx + 0x848], eax
call fcn.0041376d
jmp 0x404710
push str.exec
push esi
call fcn.00412f56
pop ecx
test eax, eax
pop ecx
je 0x4046e8
cmp byte [eax], 0
jne 0x4046e8
push dword [ebp + 0x10]
call fcn.0041c00b
mov esi, eax
pop ecx
inc esi
push esi
call fcn.00403390
mov edi, eax
pop ecx
test edi, edi
je 0x404710
xor ebx, ebx
test esi, esi
jle 0x4046d6
mov edx, dword [ebp + 0x10]
sub edx, edi
mov cl, byte [edx + eax]
cmp cl, 0x20
mov byte [eax], cl
je 0x4046d2
inc ebx
inc eax
cmp ebx, esi
jl 0x4046c0
jmp 0x4046d6
and byte [ebx + edi], 0
push 5
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push edi
call fcn.0040339d
pop ecx
jmp 0x404710
push str.showmenu
push esi
call fcn.00412f56
pop ecx
test eax, eax
pop ecx
je 0x404710
cmp byte [eax], 0
jne 0x404710
push dword [ebp + 0x10]
call fcn.00404715
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x834], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405071
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
xor ebx, ebx
push esi
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
mov esi, ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
mov ecx, esi
jne 0x4050ad
call fcn.00413385
jmp 0x405111
call fcn.004133d0
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x405108
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp + 0xc]
push ebx
push eax
mov edi, 0x400
lea eax, [ebp - 0x404]
push edi
push eax
mov dword [ebp + 0xc], ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x405107
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call fcn.00412cdb
cmp dword [ebp + 0xc], ebx
jbe 0x405107
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x404]
push edi
push eax
push dword [ebp + 8]
jmp 0x4050d8
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret 8
Function at 0x415065
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xcc
je 0x415088
mov eax, dword [esi + 0x17c]
push esi
call dword [eax]
and dword [esi + 0x78], 0
pop ecx
mov dword [esi + 0x10], 0xcc
mov eax, dword [esi + 0x17c]
cmp byte [eax + 8], 0
je 0x4150a5
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x2d
mov eax, dword [esi]
call dword [eax]
pop ecx
jmp 0x415088
xor eax, eax
cmp byte [esi + 0x41], al
setne al
add eax, 0xcd
mov dword [esi + 0x10], eax
mov al, 1
pop esi
ret

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x4312494e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x355b43df
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401000
Capabilities:
Get file attributes
Get file size
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x1000
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
push 0
call sub.MSACM32.dll_acmFormatChooseW
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push 0
push 0x419628
push 0
push 0
push 0x419628
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, 0x80070057
jne 0x40114c
cmp dword [ebp - 0x20], 0
jne 0x40108b
mov ecx, 0x41b040
test ecx, ecx
jne 0x40108b
mov edx, 0x427910
test edx, edx
je 0x40114c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jbe 0x40109f
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
jmp 0x4010a9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [0x4bb748], ecx
mov ecx, 0x40
push ecx
push dword [ebp - 0x18]
mov eax, 0x1720
push eax
push 0
cmp dword [ebp - 0x20], 0x10a
je 0x401134
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x40110b
mov dword [ebp - 0x10], ebx
mov edx, 0xffffffff
push edx
pop ecx
call dword [ebp - 0x10]
mov dword [0x4bb748], eax
jmp 0x401119
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp + 8], 0xa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, 0x17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403715
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4bac70
cmp edx, dword [eax]
je 0x403737
add eax, 8
inc ecx
cmp eax, 0x4bad00
jl 0x403728
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4bac70]
jne 0x403865
mov eax, dword [0x4bb75c]
cmp eax, 1
je 0x40383f
test eax, eax
jne 0x403768
cmp dword [0x4ba8a8], 1
je 0x40383f
cmp edx, 0xfc
je 0x403865
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40379f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004055b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004039a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4037e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004039a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419a14
push edi
call fcn.00406f50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004055b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004055c0
lea eax, [ebp - 0xa0]
push 0x4199f4
push eax
call fcn.004055c0
push dword [esi + 0x4bac74]
lea eax, [ebp - 0xa0]
push eax
call fcn.004055c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406ec6
add esp, 0x2c
pop edi
jmp 0x403865
lea eax, [ebp + 8]
lea esi, [esi + 0x4bac74]
push 0
push eax
push dword [esi]
call fcn.004039a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x421f74
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x51ba28
cmp dword [edi], 0
jne 0x421ff0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x51ba24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5185cc
mov ecx, 2
call fcn.004029b0
mov edx, 0x421f4c
lea eax, [esi + 5]
call fcn.00421f6c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421f6c
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 0x421fc5
mov dword [0x51ba24], 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