joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10059bfe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10076068]
jne 0x10059c08
repz ret
jmp fcn.1005c04c

Function at 0x10061bc2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1005c1c4
and dword [ebp - 4], 0
cmp dword [0x10078214], 0
mov ebx, eax
jne 0x10061c73
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10061d24
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10061d24
push eax
call fcn.1005c152
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10078214], eax
call esi
push eax
call fcn.1005c152
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10078218], eax
call esi
push eax
call fcn.1005c152
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1007821c], eax
call esi
push eax
call fcn.1005c152
pop ecx
mov dword [0x10078224], eax
test eax, eax
je 0x10061c73
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1005c152
pop ecx
mov dword [0x10078220], eax
mov eax, dword [0x10078220]
cmp eax, ebx
je 0x10061ccb
cmp dword [0x10078224], ebx
je 0x10061ccb
push eax
call fcn.1005c1cd
push dword [0x10078224]
mov esi, eax
call fcn.1005c1cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10061ccb
test edi, edi
je 0x10061ccb
call esi
test eax, eax
je 0x10061cc2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10061cc2
test byte [ebp - 0xc], 1
jne 0x10061ccb
or dword [ebp + 0x10], 0x200000
jmp 0x10061d04
mov eax, dword [0x10078218]
cmp eax, ebx
je 0x10061d04
push eax
call fcn.1005c1cd
pop ecx
test eax, eax
je 0x10061d04
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10061d04
mov eax, dword [0x1007821c]
cmp eax, ebx
je 0x10061d04
push eax
call fcn.1005c1cd
pop ecx
test eax, eax
je 0x10061d04
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10078214]
call fcn.1005c1cd
pop ecx
test eax, eax
je 0x10061d24
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10061d26
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4072f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x40730a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407300
mov eax, 1
add ebx, ebx
jne 0x407323
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407318
jne 0x407334
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407318
xor ecx, ecx
sub eax, 3
jb 0x407348
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4073ba
mov ebp, eax
add ebx, ebx
jne 0x407353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407360
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x407384
inc ecx
add ebx, ebx
jne 0x407370
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407365
jne 0x407381
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407365
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4073a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x407395
jmp 0x407306
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4073a4
add edi, ecx
jmp 0x407306
pop esi
mov edi, esi
mov ecx, 0x23
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4073c2
cmp byte [edi], 2
jne 0x4073c2
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 0x4073c7
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x40743f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x78fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7938]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4073f4
mov ecx, edi
jns 0x407423
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7940]
or eax, eax
je 0x407439
mov dword [ebx], eax
add ebx, 4
jmp 0x407411
call dword [esi + 0x793c]
mov ebp, dword [esi + 0x7944]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x407473
sub esp, 0xffffff80
jmp 0x4012e4
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040bbb3
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040bbb3
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040bbb3
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040bbb3
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040bbb3
mov dword [0x41203c], eax
call fcn.0040bbb3
test eax, eax
jge 0x402550
push 8
call fcn.0040bbb3
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040bbb3
pop ecx
push 1
call fcn.0040bbb3
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040bbb3
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040bbb3
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040bbb3
jmp 0x402495

Function at 0x40bbb3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40bbc2
pop dword [ebp - 0x28]
mov eax, 0x40bbc2
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3d349
push 0
mov eax, 0x2afec0df
sub eax, 0x2abde007
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x56f9
mov edi, eax
mov edx, 0x413bc4
add edx, dword [ebp - 0x28]
mov esi, 0xf3141d71
add dword [ebp - 0x24], edx
mov ebx, dword [edx]
xor dword [ebp - 0x10], 0x8951faba
add ebx, esi
xor dword [ebp - 0x20], 0x30b984db
mov dword [edi], ebx
xor dword [ebp - 0x20], 0x4cc2e89b
add edi, 4
add edx, 0x87a471d6
sub edx, 0x87a471d2
loop 0x40bc0a
add eax, 0x14eb7
xor ebx, ebx
add ebx, eax
add eax, 0xe3b32f00
add eax, 0x1c4cd105
mov ecx, 0xb1c90be2
sub ecx, 0xb1890be2
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x6f4d3c60
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x6f4d3e24
pushal
mov esi, 0x6f4d1015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x6f4d3c8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6f4d3c91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6f4d3c80
mov eax, 1
add ebx, ebx
jne 0x6f4d3ca3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6f4d3c98
jne 0x6f4d3cb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6f4d3c98
xor ecx, ecx
sub eax, 3
jb 0x6f4d3cc8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6f4d3d3a
mov ebp, eax
add ebx, ebx
jne 0x6f4d3cd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x6f4d3ce0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x6f4d3d04
inc ecx
add ebx, ebx
jne 0x6f4d3cf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6f4d3ce5
jne 0x6f4d3d01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6f4d3ce5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6f4d3d24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6f4d3d15
jmp 0x6f4d3c86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6f4d3d24
add edi, ecx
jmp 0x6f4d3c86
pop esi
mov edi, esi
mov ecx, 0x2e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6f4d3d42
cmp byte [edi], 0
jne 0x6f4d3d42
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 0x6f4d3d47
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x6f4d3db6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6f4d3d74
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13054]
or eax, eax
je 0x6f4d3db0
mov dword [ebx], eax
add ebx, 4
jmp 0x6f4d3d91
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6f4d3de7
cmp al, 0xef
ja 0x6f4d3dda
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6f4d3dbc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6f4d3dc9
mov ebp, dword [esi + 0x13058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x6f4d3e1b
sub esp, 0xffffff80
jmp 0x6f4c14a0
Function at 0x50b580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x50b59a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b5a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b590
mov eax, 1
add ebx, ebx
jne 0x50b5b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b5a8
jne 0x50b5c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5a8
xor ecx, ecx
sub eax, 3
jb 0x50b5d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50b64a
mov ebp, eax
add ebx, ebx
jne 0x50b5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50b5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50b614
inc ecx
add ebx, ebx
jne 0x50b600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50b5f5
jne 0x50b611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50b634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50b625
jmp 0x50b596
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50b634
add edi, ecx
jmp 0x50b596
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50b652
cmp byte [edi], 6
jne 0x50b652
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 0x50b657
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50b6c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50b684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50b6c0
mov dword [ebx], eax
add ebx, 4
jmp 0x50b6a1
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
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 0x50b6fa
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x427eaa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4540d0]
jne 0x427eb4
repz ret
jmp fcn.00429e94
Function at 0x493880
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x49389e
mov ecx, dword [ebp - 8]
call fcn.00495210
jmp 0x4938b1
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x4938b1
mov ecx, dword [ebp - 8]
call fcn.00495090
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x495090
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x4950ab
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xe3
jge 0x495117
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x4950ef
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x4950f6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4950a2
jmp 0x495122
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26f
jge 0x49518e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
and edx, 1
je 0x495166
mov dword [ebp - 0x18], 0x9908b0df
jmp 0x49516d
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
shr eax, 1
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x495119
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 4]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x4951cc
mov dword [ebp - 0x20], 0x9908b0df
jmp 0x4951d3
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
shr eax, 1
xor eax, dword [ebp - 0x20]
mov ecx, 4
imul edx, ecx, 0x18c
mov ecx, dword [ebp - 8]
xor eax, dword [ecx + edx + 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4 + 4], eax
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
Function at 0x495210
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x49522b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jge 0x495297
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x49526f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x495276
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x495222
mov esp, ebp
pop ebp
ret
Function at 0x402000
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402055
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40204e
test esi, esi
je 0x40204e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402030
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402270
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4022a8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40229e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4022aa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402290
xor eax, eax
pop ebx
pop esi
ret

Function at 0x402a60
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
push ebx
mov esi, eax
sub esp, 0x2e4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
cmp eax, 0xffffffff
jne 0x402a90
add esp, 0x2e4
mov eax, 0xffffffff
pop ebx
pop esi
ret
lea eax, [esp + 0x14]
mov dword [esp], esi
mov dword [esp + 0x14], 0x10003
mov ebx, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
sub esp, 8
test eax, eax
cmovne ebx, dword [esp + 0xcc]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
add esp, 0x2e4
mov eax, ebx
pop ebx
pop esi
ret
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 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18