joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030d0
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x10], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [0x451928]
cmp dword [eax + 0x3dc60], 1
jne 0x40310f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x40311f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, byte [esp + 0x34]
test al, al
jne 0x403158
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
mov edi, str.Standalone
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x84]
mov dl, byte [esp + 0x34]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov al, byte [esp + 0x35]
dec ecx
mov byte [esp + 0x85], dl
mov byte [esp + 0x86], al
mov cl, byte [esp + ecx + 0x33]
mov byte [esp + 0x84], cl
mov cl, byte [esp + 0x36]
mov byte [esp + 0x87], cl
mov eax, dword [esp + 0x84]
push eax
mov dword [0x454304], eax
call fcn.0040515d
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
xor ebx, ebx
mov edx, dword [0x45191c]
mov ecx, 0x14
xor eax, eax
mov edi, 0x451b74
rep stosd dword es:[edi], eax
mov cx, word [edx + 0x66]
lea eax, [edx + 0x66]
push eax
push str._sTUCFILELOCKTFNAME
push 0x451b74
mov word [0x451b74], cx
call fcn.00404a94
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push 0x451b74
call esi
cmp eax, 0xffffffff
jne 0x40329c
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
mov dword [0x454300], eax
cmp ebx, 0x12c
jg 0x4032a1
call fcn.00405167
mov edx, eax
mov ecx, 0x14
push edx
xor eax, eax
lea edi, [esp + 0x88]
lea edx, [esp + 0x88]
push 0x40f2a0
push edx
rep stosd dword es:[edi], eax
call fcn.00404a94
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x91]
push edx
stosw word es:[edi], ax
mov al, byte [esp + 0x94]
mov byte [esp + 0x25], cl
mov byte [esp + 0x24], al
mov byte [esp + 0x26], 0x30
call fcn.00404bfb
add esp, 0x10
mov dword [0x451b64], eax
push eax
call ebp
jmp 0x4031c3
mov dword [0x4542f4], eax
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc4
ret
Function at 0x4040f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp], eax
push esi
movsx edx, byte [ecx]
mov dword [esp + 8], eax
push edx
mov word [esp + 0x10], ax
lea eax, [esp + 8]
push str._C:_
push eax
call fcn.00404a94
add esp, 0xc
lea ecx, [esp + 4]
xor esi, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
mov eax, 1
je 0x404136
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x5cfc0ab8
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x321f4792
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4026d0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x402893
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
sub byte [esi + ebx], 0xf
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0x87
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 0x16
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 0xbb
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0x93
push str.Aristknc
push 0x42b058
call fcn.004011a0
add esp, 0x44
push eax
call fcn.004015a0
add byte [esi + ebx], 0x2e
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0x30
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0xb1
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0xad
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 0x78
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 0xee
add esp, 0x40
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 0x34
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0x34
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0x8c
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
add byte [esi + ebx], 0x88
push str.Aristknc
push 0x42b058
call fcn.004011a0
push eax
call fcn.004015a0
xor byte [esi + ebx], 0x74
add esp, 0x3c
inc esi
cmp esi, edi
jb 0x4026f0
pop ebx
pop edi
pop esi
ret
Function at 0x402d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x42a014]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x10], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x402e79
mov ebp, dword [esp + 0x44]
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x30], 0
mov eax, edx
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402e00
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.004014d0
test ebx, ebx
je 0x402e39
cmp ebp, 3
jbe 0x402e39
lea eax, [esp + 0x20]
push 0x14d
push eax
call fcn.00402fb0
add esp, 8
test eax, eax
je 0x402e39
cmp eax, ebp
je 0x402e92
mov ecx, dword [esp + 0x34]
add edi, 4
cmp ecx, 0x10
jb 0x402e6e
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402e64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ee1
push ecx
push edx
call fcn.004055b2
add esp, 8
inc esi
cmp esi, dword [esp + 0x18]
jb 0x402dd5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004055c0
add esp, 0x2c
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x402e79
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402ed5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ee1
push ecx
push edx
call fcn.004055b2
add esp, 8
jmp 0x402e79
call fcn.0040a032
int3
Function at 0x403550
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4f4800], eax
push 0xda4c2ca8
push dword [0x4f4800]
call fcn.00402d90
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
push 0
call dword [sym.imp.ole32.dll_OleRun]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4034c0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AddAce]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4061ea
Capabilities:
Parse pe header

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

Function at 0x4104ec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4204c8
push 0x4204c0
push str.FlsAlloc
push 0x1e
call fcn.004103b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410520
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d144]
call esi
jmp 0x410526
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41056a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4204d8
push 0x4204d0
push str.FlsGetValue
push 0x20
call fcn.004103b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4105a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412192
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411e34

Function at 0x41219d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411fc3
Function at 0x4139ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406350
mov eax, dword [0x42a014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411e0d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4139ee
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413b4a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c700
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42bb80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00413dd2
mov ecx, dword [esi*4 + 0x42bb80]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x413b43
cmp eax, dword [edi + ecx + 0x24]
jne 0x413b43
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413b43
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413dd2
add esp, 0x14
test edx, edx
jl 0x413b43
jg 0x413ab9
test eax, eax
jb 0x413b43
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413b43
jl 0x413ad3
cmp dword [ebp - 0x1008], eax
ja 0x413b43
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413af1
test ebx, ebx
je 0x413b2a
cmp ecx, edi
jae 0x413b2a
mov al, byte [ecx]
cmp al, 0xd
jne 0x413b0b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b17
cmp byte [ecx + 1], 0xa
jne 0x413b17
inc ecx
jmp 0x413b17
movzx eax, al
movsx eax, byte [eax + 0x42a970]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413af1
cmp edx, ebx
jne 0x413af1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413b48
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004055c0
leave
ret
Function at 0x4172c7
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 0x417364
push ebx
push esi
call fcn.00417290
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.00415e7b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x417311
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417363
push edi
push eax
call fcn.00410bd6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x417331
call fcn.004100db
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417362
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415e7b
add esp, 0x20
test eax, eax
jne 0x417350
push edi
call fcn.004100db
jmp 0x417358
push ebx
call fcn.004100db
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 0x41a293
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42bb80]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41a2d3
cmp byte [ebx], 0xa
jne 0x41a2d3
or byte [eax + edi + 0x28], 4
jmp 0x41a2d8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41a3d6
mov al, byte [edx]
cmp al, 0x1a
je 0x41a3b8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41a307
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41a32c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41a336
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41a2e9
jmp 0x41a3d6
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a3b3
cmp dword [ebp - 0xc], 0
je 0x41a3b3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42bb80]
test byte [eax + edi + 0x28], 0x48
je 0x41a38d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41a378
mov byte [esi], dl
jmp 0x41a389
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42bb80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41a3d6
cmp byte [ebp - 1], 0xa
jne 0x41a39c
cmp esi, ebx
jne 0x41a39c
mov byte [esi], 0xa
jmp 0x41a3d5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413df0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41a3d6
mov byte [esi], 0xd
jmp 0x41a3d5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42bb80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a3d2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a3d6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41a3df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42bb80]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41a422
cmp word [esi], dx
jne 0x41a422
or byte [edi + eax + 0x28], 4
jmp 0x41a427
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41a57a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41a55a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41a469
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41a49f
cmp eax, edx
jae 0x41a4ab
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41a441
jmp 0x41a57a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a556
cmp dword [ebp - 0x14], 0
je 0x41a556
mov eax, dword [ebx*4 + 0x42bb80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41a52e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41a4f7
mov word [esi], cx
jmp 0x41a52a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42bb80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42bb80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42bb80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41a57a
pop ebx
cmp word [ebp - 4], bx
jne 0x41a53f
cmp esi, dword [ebp + 0xc]
jne 0x41a53f
mov word [esi], bx
jmp 0x41a577
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00413df0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41a57a
push 0xd
jmp 0x41a573
mov ecx, dword [ebx*4 + 0x42bb80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a571
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a57a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c6c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c6ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c6ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4a96a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8a000]
push edi
or ebp, 0xffffffff
jmp 0x4a96c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a96c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a96b8
mov eax, 1
add ebx, ebx
jne 0x4a96db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a96ec
jne 0x4a970b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a970b
dec eax
add ebx, ebx
jne 0x4a96f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a96d0
add ebx, ebx
jne 0x4a9707
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a975d
xor ecx, ecx
sub eax, 3
jb 0x4a9723
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a9792
sar eax, 1
mov ebp, eax
jmp 0x4a972e
add ebx, ebx
jne 0x4a972e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a96fc
inc ecx
add ebx, ebx
jne 0x4a973c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a96fc
add ebx, ebx
jne 0x4a9749
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a973e
jne 0x4a975a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a973e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a977c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a976e
jmp 0x4a96be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a977c
add edi, ecx
jmp 0x4a96be
pop esi
mov edi, esi
mov ecx, 0x65f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a979a
cmp byte [edi], 9
jne 0x4a979a
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 0x4a979f
lea edi, [esi + 0xa7000]
mov eax, dword [edi]
or eax, eax
je 0x4a980e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10d6f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10d7c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a97cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10d7c8]
or eax, eax
je 0x4a9808
mov dword [ebx], eax
add ebx, 4
jmp 0x4a97e9
call dword [esi + 0x10d7c4]
mov ebp, dword [esi + 0x10d7cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x4a9842
sub esp, 0xffffff80
jmp 0x401ebc
Function at 0x74006953
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x7405c794]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x74006b24
xor ecx, ecx
lea eax, [ebp - 0x110]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x74006b18
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x74006b18
mov dword [esi], eax
shl eax, 5
push eax
push ebx
call sym.d3dim.dll_D3DMalloc
test eax, eax
je 0x740069ea
xor eax, eax
mov dword [ebx], eax
mov dword [esi], eax
mov dword [ebp - 0x110], eax
jmp 0x740069ec
mov eax, dword [esi]
push edi
shl eax, 5
push eax
push 0
push dword [ebx]
call sub.msvcrt.dll_memset
xor edi, edi
add esp, 0xc
cmp dword [ebp - 0x110], edi
jbe 0x74006b17
xor esi, esi
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x80
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x74006b07
and dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x74006b07
mov byte [ebp - 0x88], al
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x11c], 0x80
push eax
lea eax, [ebp - 0x120]
push eax
push 0
push 0x74002d7c
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x74006afb
mov ecx, dword [ebx]
lea eax, [ecx + 0x1c]
add eax, esi
push eax
lea eax, [ecx + 0x18]
add eax, esi
push eax
lea eax, [ecx + 0x14]
add eax, esi
push eax
lea eax, [ecx + 0x10]
add eax, esi
push eax
lea eax, [ecx + 0xc]
add eax, esi
push eax
lea eax, [ecx + 8]
add eax, esi
push eax
lea eax, [ecx + 4]
add eax, esi
push eax
lea eax, [ebp - 0x108]
push 0x74002d84
push eax
call dword [sym.imp.msvcrt.dll_sscanf_s]
add esp, 0x24
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
add esi, 0x20
cmp edi, dword [ebp - 0x110]
jb 0x74006a0d
pop edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.74045bf0
mov esp, ebp
pop ebp
ret