joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bd8
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x41ee7e
call fcn.0040a646
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x408bfa
xor eax, eax
jmp 0x408d6d
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x408c28
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x408c28
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x408d6d
cmp dword [esi + 0x54], ebx
je 0x408d68
mov ecx, esi
call fcn.00407f96
cmp dword [esi + 0x44], ebx
jne 0x408c58
push dword [esi + 0x54]
push edi
call fcn.004081d5
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x408d6d
jmp 0x408d68
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040889f
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x408d15
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x408d5d
cmp eax, ebx
jg 0x408d1d
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x408cc7
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x408cec
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x408cda
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.0040d0ed
add esp, 0x10
cmp edi, eax
jne 0x408d5d
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x408d4c
test edi, edi
jne 0x408c79
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x408d62
push 8
call fcn.00405a40
jmp 0x408c79
mov edx, dword [ebp - 0x2c]
jmp 0x408c8b
cmp eax, 3
jne 0x408d5d
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.004081d5
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x408d3c
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403bc0
mov ax, si
jmp 0x408d6d
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403bc0
mov ax, word [ebp + 8]
jmp 0x408d6d
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00403bc0
mov eax, 0xffff
call fcn.0040a690
ret 4

Function at 0x4092f7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a560]
jne 0x409301
repz ret
jmp fcn.0040e431
Function at 0x418054
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a560]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040f1fc
and dword [ebp - 0x14], 0
cmp dword [0x42d120], 0
mov dword [ebp - 0x18], eax
jne 0x418107
push 0x425140
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4181af
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x425134
push ebx
call edi
test eax, eax
je 0x4181af
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x425124
push ebx
mov dword [0x42d120], eax
call edi
push eax
call esi
push 0x425110
push ebx
mov dword [0x42d124], eax
call edi
push eax
call esi
push 0x4250f4
push ebx
mov dword [0x42d128], eax
call edi
push eax
call esi
mov dword [0x42d130], eax
test eax, eax
je 0x418107
push 0x4250dc
push ebx
call edi
push eax
call esi
mov dword [0x42d12c], eax
mov eax, dword [0x42d12c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418160
cmp dword [0x42d130], ecx
je 0x418160
push eax
call esi
push dword [0x42d130]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418160
test ebx, ebx
je 0x418160
call edi
test eax, eax
je 0x418157
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x418157
test byte [ebp - 8], 1
jne 0x418160
or dword [ebp + 0x10], 0x200000
jmp 0x418193
mov eax, dword [0x42d124]
cmp eax, dword [ebp - 0x18]
je 0x418193
push eax
call esi
test eax, eax
je 0x418193
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x418193
mov eax, dword [0x42d128]
cmp eax, dword [ebp - 0x18]
je 0x418193
push eax
call esi
test eax, eax
je 0x418193
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42d120]
call esi
test eax, eax
je 0x4181af
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4181b1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004092f7
leave
ret
Function at 0x419470
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f070
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x42a560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0
push 0x425710
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp dword [ebx + 0x14], 8
jb 0x4194e4
mov eax, dword [ebx]
jmp 0x4194e6
mov eax, ebx
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push edi
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push ebx
call fcn.0040b4a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419580
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f12a
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x42a560]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x23c], eax
mov eax, 0x105
lea esi, [ebp - 0x230]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
call fcn.00403c50
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x230]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x244]
push ecx
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
lea edi, [ebp - 0x254]
mov esi, eax
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
call fcn.00403cd0
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x254]
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x230]
push edi
push esi
push edx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea ecx, [ebp - 0x25c]
push ecx
lea edx, [ebp - 0x240]
push edx
push 0x425740
push edi
call esi
mov eax, dword [ebp - 0x240]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push 0x425778
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00409cf0
add esp, 0x18
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x21c]
push eax
push edi
mov dword [ebp - 0x220], ebx
call esi
mov esi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x220]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
mov ecx, eax
lea edx, [ecx + 2]
mov dword [ebp - 0x238], edx
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4196d5
sub ecx, dword [ebp - 0x238]
sar ecx, 1
push ecx
call fcn.00401900
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x419709
push edi
call fcn.004092ec
add esp, 4
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x419731
push eax
call fcn.004092ec
add esp, 4
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004092f7
mov esp, ebp
pop ebp
ret
Function at 0x419770
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f16b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x42a560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
push 6
mov eax, str.32_bit
call fcn.00401900
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x38], di
je 0x419803
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x14]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x14], edi
jne 0x4197fc
push 6
mov eax, str.64_bit
call fcn.00401900
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa28d6f
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
jmp 0xa28d86
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
movzx esi, byte [eax + 1]
movzx edi, byte [eax + 5]
shl edx, 8
xor edx, esi

Function at 0xa2988a
Capabilities:
Hash data with md5

Disassembly:
mov ebx, dword [esp + 0x45]
lea esp, [esp + 0x4c]
jmp 0xa45a9f
pushal
not bh
mov ebx, 0xef4e89
pop ebx
mov dword [esp], esi
mov ebx, dword [esp + 5]
jmp 0xa2985b
lea ebx, reloc.iphlpapi.dll_GetAdaptersInfo
mov esi, dword [esp + 0x17]
jmp 0xa29871
call fcn.00a6b68b
inc ecx
ret
call fcn.00a6b693
lea esp, [esp + 4]
pop edi
pushfd
push word [esp]
lea esp, [esp + 2]
jmp 0xa6b6cd
lea ecx, [edi + ebp]
rol cx, cl
neg ch
jmp 0xa6a402
movzx edx, byte [eax + 1]
jmp 0xa6a5c7
mov ebp, esp
jmp 0xa29963
xchg ecx, ebp
jmp 0xa2990b
sub esp, 0x40
neg edx
lea edx, [ebx*4]
push edi
jmp 0xa29986
push ebp
mov ebp, esi
mov ecx, dword [ebp]
pop ebp
jmp 0xa2993d
mov dl, 0x10
mov eax, ecx
setl dh
xor dl, ah
dec dh
jmp 0xa6a306
pushal
sub esp, 8
mov dword [esp + 8], eax
lea esp, [esp + 8]
popal
jmp 0xa2996c
push ebp
mov cl, byte [esp]
bswap ecx
jmp 0xa29921
lea edx, [ecx + ebp]
jmp 0xa6a33c
lea edx, [ecx + edi*8]
jmp 0xa6a349
shr eax, 3
bsf edx, edi
push esi
lea esp, [esp + 4]
jmp 0xa6a326
and eax, 0x3f
sub esp, 0x15
sub esp, 5
sub esp, 0xd
lea esp, [esp + 3]
jmp 0xa6a380
cmp edx, ecx
call 0xa6a36a
add dword [esi + 4], ecx
jmp 0xa6a3c1
btc ecx, esp
jmp 0xa6a3cd
mov dword [esi], edx
test edi, edi
je 0xa298ac
jne 0xa6a3ab
push ebx
jmp 0xa298dd
lea esp, [esp + 1]
jmp 0xa6a55b
mov ecx, dword [ebp + 8]
sub esp, 0x1d
mov word [esp + 0x16], ax
mov byte [esp + 0x13], dl
stc
jmp 0xa6a3ec
lea esp, [esp + 4]
dec edi
sub esp, 0xe
sub esp, 0
mov dword [esp + 6], ebx
jmp 0xa6a5e0
lea esp, [esp + 0x1c]
mov cl, byte [ecx]
push edx
mov word [esp], ax
mov word [esp], si
jmp 0xa6a545
jne 0xa29896
mov al, byte [esp]
mov cx, dx
jmp 0xa6a5b9
cmp eax, 0x40
push esi
mov word [esp], di
lea esp, [esp + 4]
jmp 0xa6a56c
sub esp, 7
push word [esp + 1]
lea esp, [esp + 1]
lea esp, [esp + 8]
inc dword [ebp + 8]
jmp 0xa6a582
xor ecx, ecx
mov ebx, 0x1f2d0df2
bswap ebx
mov bh, byte [esp]
jmp 0xa6a5ef
push ecx
mov ecx, eax
movzx ebx, byte [ecx]
pop ecx
jmp 0xa6a5f7
lea esp, [esp + 2]
lea esp, [esp + 0xc]
mov byte [eax + esi + 0x18], cl
inc eax
jmp 0xa6a5a4
lea eax, [esi + 0x1a]
jmp 0xa298f5
shl edx, 8
jmp 0xa6bcb6
lea esp, [esp + 4]
leave
ret
mov ebx, edi
movzx ebx, byte [eax - 2]
call fcn.00a6b62b
shl edx, 8
sub esp, 0x12
cmc
lea esp, [esp + 2]
or edx, ebx
jmp 0xa6b7bb
or edx, ebx
movzx ebx, byte [eax - 1]
cmc
jmp 0xa6ba1b
Function at 0xa2a0d8
Capabilities:
Hash data with md5

Disassembly:
lea esp, [esp + 4]
jmp 0xa45a89
push edx
jmp 0xa2a140
lea esp, [esp + 2]
and dword [eax + 4], 0
and dword [eax], 0
jmp 0xa2a0f3
lea edx, [edx + 8]
push esi
mov esi, 0x7649e8cd
lea esi, reloc.iphlpapi.dll_GetAdaptersInfo
jmp 0xa6b6b7
pushal
mov bp, 0x8439
mov dword [esp + 0x14], eax
popal
jmp 0xa2a116
pushfd
pop word [esp]
jmp 0xa2a109
lea eax, [ebp - 0x40]
jmp 0xa6b675
xchg ecx, eax
lea eax, [edi*4]
xchg ecx, eax
lea ecx, [esi + 8]
lea eax, [ebx*4]
jmp 0xa6b633
xor eax, eax
jmp 0xa29896
call 0xa44734
neg al
shl ax, 9
lea eax, reloc.iphlpapi.dll_GetAdaptersInfo
not ax
jmp 0xa6b65f
add eax, 4
cmp ecx, 0x10
jb 0xa298f5
jae 0xa6b649
mov dword [edx], esi
pop esi
pop edx
pushfd
mov word [esp], di
jmp 0xa6b70c
lea esp, [esp + 4]
mov dword [eax + 0xc], 0x3ab5b531
call fcn.00a6b6f6
jge 0xa6b76a
fbld tbyte [esi]
test eax, 0x9de7d492
cmp ecx, dword [ebx]
sbb edi, dword [ebx]
inc ebx
rol dword [ecx + 0x20], 1
shr dword [esi - 0x30], cl
push ebx
lea esp, [esp + 2]
mov dword [ebp + ecx*4 - 0x40], edx
lea esp, [esp + 0x20]
inc ecx
jmp 0xa6b6a9
push esi
mov esi, 0x647d4c39
lea esi, reloc.iphlpapi.dll_GetAdaptersInfo
pushal
push dword [esp + 0x15]
jmp 0xa6b78a
cld
push edi
mov edi, eax
lea edi, [edi + 0x10]
jmp 0xa6b743
pop dword [esp + 8]
pop dword [esp + 0x14]
lea esp, [esp + 0x1c]
mov dword [edi], esi
pop esi
pop edi
call fcn.00a6b756
lea esp, [esp + 0xc]
mov dword [eax + 0x14], 0xa947677b
ret
Function at 0xa36627
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 1]
mov dword [esp + 0x20], edx
pushfd
mov word [esp + 1], bp
jmp 0xa362ff
lea esp, [esp + 1]
jmp 0xa36381
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esp
call fcn.00a36340
lea esp, [esp + 2]
mov dword [esp + 0x20], ecx
push edi
jmp 0xa362f6
push word [esp + 0x1b]
lea esp, [esp + 2]
mov dword [esp + 0x20], ecx
push edi
lea esp, [esp + 1]
push ebp
mov word [esp], cx
pop word [esp]
mov byte [esp + 2], cl
mov byte [esp + 1], al
jmp 0xa362e0
pushal
push word [esp + 0x16]
js 0xa3636f
push word [esp + 0x1b]
jmp 0xa3631b
pop word [esp]
mov dword [esp], eax
push si
mov word [esp], sp
jmp 0xa364c8

Function at 0xa6b68b
Capabilities:
Hash data with md5

Disassembly:
lea esp, [esp + 4]
test edi, edi
jmp 0xa6b6e4
jne 0xa298dd
push bx
lea esp, [esp + 2]
pop ebx
jmp 0xa298ac

Function at 0xb675d7
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov eax, ebp
rdtsc
rdtsc
not ebx
mov ax, word [esp + 0x1f]
mov ah, 0xa2
jmp 0xb675e2
lea edx, reloc.iphlpapi.dll_GetAdaptersInfo
ror bl, 6
jmp 0xb675c1
mov word [esp + 0x12], si
lea ebx, [esi + edi]
mov word [esp + 5], si
stc
lea edx, [ebp*4]
clc
jmp 0xb67616
Function at 0xb67a6e
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg byte [esp + 0x19], ah
bsr ebx, ebp
neg al
mov edx, eax
bswap edx
jmp 0xb679cf
mov eax, dword [esp + 0x16]
mov dx, bp
push dword [esp + 0xa]
lea eax, reloc.iphlpapi.dll_GetAdaptersInfo
lea edx, [ecx*4]
add esp, 0xc
jmp 0xb678dc
sub esp, 0x19
pop word [esp + 0x23]
cld
std
sub esp, 1
bsr bx, ax
jmp 0xb678f2
lea eax, [ecx + edi]
pop dword [esp + 0x12]
mov byte [esp + 0xf], bh
inc ax
rdtsc
xchg edx, ebx
jmp 0xb67969
lea eax, reloc.iphlpapi.dll_GetAdaptersInfo
mov bh, ah
mov ax, 0xcbf0
ror bx, cl
bsr dx, sp
xchg dh, ah
jmp 0xb67935
rdtsc
setge bh
or dl, ah
not ebx
mov word [esp + 0x11], cx
inc edx
jmp 0xb679ad
push bp
mov dh, cl
dec ax
std
mov dword [esp + 0x10], esp
mov dh, ch
jmp 0xb67952
mov ebx, 0x77cc457d
std
cld
push ax
mov dh, 0xd7
jmp 0xb67a29
clc
mov bx, word [esp + 0x22]
push esi
push cx
pop bx
mov ax, di
jmp 0xb67997
mov dword [esp + 9], ebp
mov bl, byte [esp + 4]
mov ax, 0x9e3e
mov ebx, dword [esp + 3]
dec ah
sub esp, 0xb
jmp 0xb67988
mov bh, byte [esp]
lea edx, [ebx + edi]
mov dx, 0x9e7c
neg edx
bswap eax
jmp 0xb67a11
neg ax
mov byte [esp + 0x32], ah
push dword [esp + 2]
lea esp, [esp + 0x43]
mov bl, al
xchg al, dl
jmp 0xb679e6
lea ebx, reloc.iphlpapi.dll_GetAdaptersInfo
mov bx, word [esp]
rdtsc
bswap eax
xchg ebx, eax
bsf eax, eax
jmp 0xb67a55
mov eax, 0xb0e87b4b
push dword [esp + 0x34]
xchg ebx, eax
push dword [esp + 0x1c]
btc ebx, esp
bswap edx
jmp 0xb679fc
mov bl, al
pop dx
mov ax, bx
bsr bx, sp
adc edx, ecx
mov dword [esp], edx
jmp 0xb67b1b
push bp
sub esp, 9
mov eax, edi
not al
bsf edx, ebx
std
jmp 0xb67a3f
clc
neg dx
mov byte [esp + 5], bl
sub esp, 0xf
not ebx
jmp 0xb67922
pop dword [esp + 6]
mov ax, 0x9ff2
xchg dx, ax
lea edx, [ebp + ebp]
mov ebx, edi
mov dh, byte [esp]
jmp 0xb67ad8
pop bx
btr ax, bp
setae al
call fcn.00b67ac2
pop ds
cwde
push cs
imul ebx, dword [eax + reloc.iphlpapi.dll_GetAdaptersInfo], 0xec83daa3
push ss
bt edx, ebx
sub esp, 0x16
lea eax, [edx + edi]
pop dword [esp + 0xe]
pop dword [esp + 9]
bsf ax, sp
jmp 0xb67a80
xor edx, 0xc0e30c8
mov dh, 0x98
pop edx
pop word [esp + 1]
mov ax, di
pop dx
jmp 0xb67a95
btc ax, cx
add esp, 8
mov byte [esp], ch
mov edx, dword [esp]
mov ah, byte [esp]
rdtsc
jmp 0xb67aab
Function at 0xb67ac2
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp], ebx
mov dword [esp], esi
mov dword [esp], edi
jmp 0xb67b03
lea ebx, [ecx*4]
mov eax, 0x9d48a
mov ebx, dword [esp + 4]
jmp 0xb67b4b
xchg dword [esp], ebx
lea esp, [esp]
inc al
lea eax, [ebp*4]
jmp 0xb67aed
xchg bh, dh
push ax
mov dh, 0xe7
inc eax
mov ax, cx
dec edx
jmp 0xb67b74
mov bh, dh
xchg bx, dx
add esp, 4
pushfd
mov dx, word [esp + 3]
mov dx, di
jmp 0xb67b32
rdtsc
mov bl, byte [esp + 4]
mov dx, si
mov byte [esp], bl
jmp 0xb68126
mov eax, 0x162dfecc
rcr ah, 2
lea ebx, [ecx + edx]
mov al, bh
pop word [esp + 1]
xchg dword [esp], ebx
jmp 0xb67b5e
xchg word [esp], ax
pop bx
lea eax, [esi + ebp]
mov bl, 0xc8
mov dx, 0x3adc
jmp 0xb67d1b
shr eax, 9
bswap edx
setle dl
xchg edx, eax
push bx
mov bx, 0x56c7
jmp 0xb67bad
xchg ebx, eax
inc eax
rdtsc
inc ax
sub ax, 0xa3fc
rdtsc
jmp 0xb67bc3
lea eax, [eax*4]
call fcn.00b67bf1
rdtsc
bswap ebx
std
bswap ebx
mov dh, byte [esp]
stc
jmp 0xb67c07
lea esp, [esp]
shl dx, cl
xchg byte [esp], bl
pop ax
mov ah, bl
mov bh, bl
jmp 0xb67be3
mov ax, word [esp + 4]
mov ah, byte [esp + 3]
mov eax, edi
push word [esp]
add esp, 5
mov dx, cx
jmp 0xb67e3c
lea eax, [ebp*4]
mov word [esp + 2], si
mov edx, dword [esp]
mov al, byte [esp + 4]
cld
mov ebx, dword [esp + 4]
jmp 0xb67ec0
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402f18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x402f79
cmp word [0x40a208], 0xd7b2
jne 0x402f41
cmp dword [0x40a210], 0
jbe 0x402f41
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402fa0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409024], 0
jne 0x402f95
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403b24
Capabilities:
Inspect section memory permissions

Disassembly:
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4

Function at 0x403b30
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x403ab9
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x403ad7
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 0x403b35
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x403b1c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x403b25
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x403b2f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x403b11
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x403a9b
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 0x403b82
dec eax
je 0x403b79
sub eax, 3
je 0x403b70
mov dword [ebp - 4], 0x40
jmp 0x403b9f
mov dword [ebp - 4], 4
jmp 0x403b85
mov dword [ebp - 4], 0x20
jmp 0x403b85
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 0x403bd1
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x403b51
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004033e2
in eax, 0xa9
sar dword [ebx - 1], cl
jne 0x403bdc
push 1
push esi
call edi
mov eax, esi
jmp 0x403bdd
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