joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478ce8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x478ea4
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x478d49
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x478ec0
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x478dbb
xor eax, eax
push ebp
push 0x478db4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00478b40
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x478d9d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x478ee0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478dbb
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x478e9c
cmp byte [ebp - 0xd], 0
jne 0x478dfd
cmp byte [ebp - 0x12], 0
je 0x478e9c
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x478e16
dec ebx
cmp byte [ebx], 0x2e
je 0x478e25
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x478e15
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x478e9c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x478e52
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x478e9c
cmp byte [ebp - 0xd], 0
je 0x478e9c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x478e9c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479290
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x479378
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x4a6404], 1
jae 0x47936a
xor eax, eax
mov dword [0x4a6010], eax
xor eax, eax
mov dword [0x4a6018], eax
xor eax, eax
mov dword [0x4a601c], eax
mov byte [0x4a6022], 2
mov byte [0x4a6023], 2
mov byte [0x4a6024], 3
mov word [0x4a63cc], 0
mov word [0x4a63dc], 1
mov word [0x4a63ec], 0xa
mov dword [0x4a63f4], 0x80020004
mov dword [0x4a63c0], 0x478078
mov dword [0x4a63c4], 0x478070
mov dword [0x4a63c8], 0x478078
call fcn.00476560
test al, al
je 0x479329
call fcn.00476590
call fcn.00476654
mov eax, 0x4a6028
mov edx, 0x479384
call fcn.00473e06
mov eax, 0x4a61f4
mov edx, 0x479384
call fcn.00473e06
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4a6008], eax
call fcn.00474d84
mov dword [0x4a6004], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4a5ffc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47937f
ret
Function at 0x47b1c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0047c2dc
test byte [ebp + 0xd], 0xc0
jne 0x47b1e8
mov eax, dword [0x4a2b90]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x47b1f5
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x47b222
je 0x47b234
sub ecx, 0x100
je 0x47b242
sub ecx, 0x100
je 0x47b249
sub ecx, 0x100
je 0x47b23b
jmp 0x47b250
sub ecx, 0x600
je 0x47b249
sub ecx, 0x100
je 0x47b234
jmp 0x47b250
mov edi, 1
jmp 0x47b255
mov edi, 2
jmp 0x47b255
mov edi, 4
jmp 0x47b255
mov edi, 5
jmp 0x47b255
mov edi, 3
test byte [ebp + 0xd], 1
je 0x47b27c
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4a2608]
test al, 0x80
je 0x47b275
mov ebx, 0x80
jmp 0x47b28e
mov ebx, 1
jmp 0x47b28e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x47b28e
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x47b2a0
je 0x47b2a9
dec eax
je 0x47b2b2
jmp 0x47b2bb
mov dword [ebp - 4], 0x80000000
jmp 0x47b2ca
mov dword [ebp - 4], 0x40000000
jmp 0x47b2ca
mov dword [ebp - 4], 0xc0000000
jmp 0x47b2ca
push 1
call fcn.0047c6d4
pop ecx
mov ebx, eax
jmp 0x47b3ba
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x47b2e6
sub eax, 0x10
je 0x47b2ed
sub eax, 0x10
je 0x47b2f6
sub eax, 0x10
je 0x47b2ff
jmp 0x47b2ff
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x47b306
mov dword [ebp - 8], 1
jmp 0x47b306
mov dword [ebp - 8], 2
jmp 0x47b306
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x47b373
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x47b368
test byte [ebp + 0xd], 1
je 0x47b363
mov ebx, 0x50
jmp 0x47b368
mov ebx, 2
push ebx
call fcn.0047c6d4
pop ecx
mov ebx, eax
jmp 0x47b3ba
mov edi, esi
push edi
call fcn.0047b128
pop ecx
test eax, eax
je 0x47b387
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x47b393
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0047c3fc
add esp, 8
mov ebx, eax
inc eax
jne 0x47b3ba
push 4
call fcn.0047c6d4
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0047c310
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480998
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4809fa
call fcn.00480948
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00479e70
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00479e70
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x480a78
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4a3b30], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x480b52
cmp dword [0x4a3b2c], 0
jne 0x480b52
cmp dword [0x4a3d10], 0
je 0x480b0c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00480848
add esp, 8
mov ebx, eax
test eax, eax
jne 0x480af2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00480848
add esp, 8
mov ebx, eax
test eax, eax
jne 0x480af2
lea ebx, [ebp - 0x84]
jmp 0x480af3
inc ebx
call fcn.00480a34
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x480b8d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4a3b34
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00479e70
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4a3b37
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x480b8d
cmp dword [0x4a3b2c], 0
je 0x480b6c
cmp dword [0x4a3b2c], 0xffffffff
je 0x480b8d
push esi
call dword [0x4a3b2c]
pop ecx
mov eax, dword [0x4a3b30]
test eax, eax
je 0x480b8d
cmp dword [0x4a3b30], 0xffffffff
je 0x480b8d
cmp byte [eax], 0
je 0x480b8d
push esi
push eax
call fcn.00480998
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481324
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4a6d0c], 0
jne 0x4813a5
cmp dword [0x4a6d2c], 0
jne 0x481354
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4a6d2c], eax
test eax, eax
jne 0x481354
push str.GetEnvironmentStrings_failed
call fcn.00480ba4
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4a6d2c]
jmp 0x481368
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00479e70
pop ecx
mov edi, eax
test eax, eax
jne 0x481360
lea edi, [ebp + 1]
push edi
call fcn.004798b0
pop ecx
mov ebx, eax
mov dword [0x4a6d10], ebx
test ebx, ebx
jne 0x481392
xor eax, eax
jmp 0x481468
push edi
mov edx, dword [0x4a6d2c]
push edx
push ebx
call fcn.00479d20
add esp, 0xc
jmp 0x4813c5
xor esi, esi
mov ebx, dword [0x4a6d0c]
jmp 0x4813bf
push eax
call fcn.00479e70
pop ecx
test eax, eax
jne 0x4813bb
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4813af
lea ebx, [esi + 4]
push 4
mov dword [0x4a6d14], ebx
inc ebx
push ebx
call fcn.00479388
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4813e8
xor eax, eax
jmp 0x481468
cmp dword [0x4a6d0c], 0
jne 0x481419
xor esi, esi
mov ebx, dword [0x4a6d10]
mov eax, dword [esp]
mov ebp, eax
jmp 0x48140a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00479e70
pop ecx
mov edi, eax
test eax, eax
jne 0x481400
jmp 0x48144a
xor esi, esi
mov ebx, dword [0x4a6d0c]
mov eax, dword [esp]
mov edi, eax
jmp 0x481444
push eax
call fcn.00479e70
pop ecx
test eax, eax
je 0x481439
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x48143d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x481428
mov eax, dword [0x4a6d0c]
test eax, eax
je 0x48145a
push eax
call fcn.004798c0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4a6d0c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x419282
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x419291
pop dword [ebp - 0x40]
mov eax, 0xee89cb89
add eax, 0x11b7c708
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3ecd8
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xf925026d
sub ecx, 0xf924b63e
xor ebx, ebx
add ebx, eax
mov esi, 0x53ebb80f
sub esi, 0x53a8640f
add esi, dword [ebp - 0x40]
mov edx, 0xa1140d88
xor dword [ebp - 0x24], edi
mov edi, dword [esi]
add dword [ebp - 0x38], 0x8c397238
xor edi, edx
add dword [ebp - 0x24], 0x67486f4a
mov dword [ebx], edi
xor dword [ebp - 0x2c], 0x37a5cb6
add ebx, 0xa267258f
sub ebx, 0xa267258b
add esi, 4
loop 0x4192e7
add eax, 0x8798bb6a
add eax, 0x78686825
xor ebx, ebx
add ebx, eax
add eax, 0xc22cc4b3
sub eax, 0xc22cc4ae
mov ecx, 0x8d953454
sub ecx, 0x8d553454
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x5276cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x529168
sub eax, eax
test esi, esi
je 0x5277a4
sub eax, 1
test ecx, ecx
je 0x5277a2
test esi, 3
je 0x52770a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x5276ef
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x527789
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x527714
mov ecx, edx
test ecx, ecx
je 0x5277a2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x52778f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x5277ac
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0052782f
jae 0x5277ba
xor ecx, ecx
call fcn.0052782f
jae 0x5277e9
xor eax, eax
call fcn.0052782f
jae 0x5277f9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0052782f
adc al, al
jae 0x5277db
jne 0x527825
stosb byte es:[edi], al
jmp 0x5277bd
call fcn.0052783b
sub ecx, ebx
jne 0x527802
call fcn.00527839
jmp 0x527821
lodsb al, byte [esi]
shr eax, 1
je 0x52784b
adc ecx, ecx
jmp 0x52781e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00527839
cmp eax, 0x7d00
jae 0x52781e
cmp ah, 5
jae 0x52781f
cmp eax, 0x7f
ja 0x527820
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5277bd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x408570
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x408592
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408599
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408588
mov eax, 1
add ebx, ebx
jne 0x4085ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4085a0
jne 0x4085bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4085a0
xor ecx, ecx
sub eax, 3
jb 0x4085d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408642
mov ebp, eax
add ebx, ebx
jne 0x4085db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4085e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40860c
inc ecx
add ebx, ebx
jne 0x4085f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4085ed
jne 0x408609
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4085ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40862c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40861d
jmp 0x40858e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40862c
add edi, ecx
jmp 0x40858e
pop esi
mov edi, esi
mov ecx, 1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40864a
cmp byte [edi], 1
jne 0x40864a
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 0x40864f
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4086c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8e80]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ebc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40867c
mov ecx, edi
jns 0x4086ab
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 + 0x8ec0]
or eax, eax
je 0x4086c1
mov dword [ebx], eax
add ebx, 4
jmp 0x408699
call dword [esi + 0x8ed0]
mov ebp, dword [esi + 0x8ec4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x4086fb
sub esp, 0xffffff80
jmp 0x401100
Function at 0x4186b3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4186c2
pop dword [ebp - 0x34]
mov eax, 0xbfc00b1
add eax, 0xf4458611
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3ef37
push 0
mov eax, 0xd7d8cc02
add eax, 0x28690612
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xb7a6fabd
sub ecx, 0xb7a6ac82
xor esi, esi
add esi, eax
mov edi, 0x2e8b7206
sub edi, 0x2e481206
add edi, dword [ebp - 0x34]
mov ebx, 0x70299461
sub ebx, 0x6cd0b930
add dword [ebp - 0x24], 0x390cdeda
mov edx, dword [edi]
xor dword [ebp - 8], edi
xor edx, ebx
sub dword [ebp - 8], edx
mov dword [esi], edx
sub dword [ebp - 0x1c], 0xd9eb7dd7
add esi, 0xc79a2424
sub esi, 0xc79a2420
add edi, 4
loop 0x418723
add eax, 0x512e8a21
sub eax, 0x512d5e62
xor ebx, ebx
add ebx, eax
add eax, 0xb58e48ff
sub eax, 0xb58e48fa
mov ecx, 0xb97c1bb5
add ecx, 0x46c3e44b
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x67365954
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x276261d3
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4202aa
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x42035e
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0042023a
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x420337
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42036a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x420385
test ebp, ebp
je 0x420385
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x42038d
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x4203cd
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x420429
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x420424
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x42040f
test dl, dl
je 0x42040b
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x42040f
add ecx, 2
add eax, 2
test dl, dl
jne 0x4203ef
xor eax, eax
jmp 0x420414
sbb eax, eax
or eax, 1
test eax, eax
je 0x420433
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x4203dc
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x42044a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, edx
mov ebx, ecx
call fcn.004202aa
test eax, eax
jne 0x420462
pop edi
pop ebx
add esp, 0x10
ret
push esi
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0xc], 0x74726956
mov dword [esp + 0x10], 0x416c6175
mov dword [esp + 0x14], 0x636f6c6c
mov byte [esp + 0x18], 0
call fcn.0042036a
mov esi, eax
test esi, esi
jne 0x420498
pop esi
pop edi
pop ebx
add esp, 0x10
ret
push 0x40
push 0x3000
push edi
push ebx
call esi
test eax, eax
jne 0x4204b2
push 0x40
push 0x3000
push edi
push eax
call esi
pop esi
pop edi
pop ebx
add esp, 0x10
ret