joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046f7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404718
jl 0x40470f
test edi, edi
jne 0x404718
xor eax, eax
xor edx, edx
jmp 0x4047d9
cmp dword [ebx + 0x38], 0
je 0x40472d
push eax
push edi
push dword [ebp + 8]
call fcn.00403e3e
jmp 0x4047d9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404774
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404774
cmp eax, edi
jb 0x40474e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408080
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40477a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4047ce
mov ecx, ebx
call fcn.00404c12
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4047b9
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040c9bb
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4047ce
jmp 0x40478c
test edx, edx
je 0x4047ce
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040c9bb
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x405438
Capabilities:
Parse pe header

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

Function at 0x40e8c0
Capabilities:
Parse pe header

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

Function at 0x40f721
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41dff8
push 0x41dff0
push str.FlsAlloc
push 0x1f
call fcn.0040fb38
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f755
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x40f75b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f79f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e008
push 0x41e000
push str.FlsGetValue
push 0x21
call fcn.0040fb38
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f7d6
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 0x40f7de
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e010
push 0x41e008
push str.FlsSetValue
push 0x22
call fcn.0040fb38
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f818
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 0x412ff3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42626c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040ee03
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040ee03
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41306a
cmp word [ecx], dx
je 0x41306a
mov eax, dword [0x41e444]
push edi
dec eax
push eax
push 0x41e330
call fcn.004131e3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4130dd
cmp word [eax], dx
je 0x4130dd
mov eax, dword [edi]
test eax, eax
je 0x41308e
cmp word [eax], dx
je 0x41308e
lea eax, [ebp - 0x10]
push eax
call fcn.00413244
jmp 0x413097
lea eax, [ebp - 0x10]
push eax
call fcn.00413532
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x413107
mov eax, dword [0x41e32c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x41e020
call fcn.004131e3
add esp, 0xc
test al, al
je 0x413107
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4130d2
cmp word [eax], di
je 0x4130d2
lea eax, [ebp - 0x10]
push eax
call fcn.00413244
pop ecx
jmp 0x413109
lea eax, [ebp - 0x10]
push eax
call fcn.00413532
jmp 0x4130cf
mov eax, dword [edi]
test eax, eax
je 0x4130f4
cmp word [eax], dx
je 0x4130f4
lea eax, [ebp - 0x10]
push eax
call fcn.00413666
pop ecx
jmp 0x413107
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4131d2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00413758
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4131d2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4131d2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4131d2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41315f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040f97b
test ebx, ebx
je 0x4131cd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040f97b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4131d2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4131d2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00418c17
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4131d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405721
leave
ret
Function at 0x41385e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040ee03
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4138cd
cmp esi, dword [ebp - 4]
je 0x4138c8
cmp dword [ebp + 0xc], 0
je 0x4138c8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4138a5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00413927
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4138cf
xor eax, eax
inc eax
jmp 0x4138cf
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x413c76
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42626c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x413cc1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00413dec
test al, al
jne 0x413cbb
sub edx, 2
cmp edx, edi
jne 0x413ca1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x413ce3
lea eax, [edi + 2]
cmp edx, eax
je 0x413ce3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00413bc2
add esp, 0x10
jmp 0x413ddd
push esi
lea ecx, [ebp - 0x255]
call fcn.00413dec
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413d26
push dword [ebp - 0x25c]
jmp 0x413cd3
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x413d63
cmp word [ebp - 0x226], 0
je 0x413d84
cmp word [ebp - 0x226], ax
jne 0x413d63
cmp word [ebp - 0x224], 0
je 0x413d84
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00413bc2
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x413dd0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x413d3d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x413db8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x413ddd
push 0x413e10
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00418fa0
add esp, 0x10
jmp 0x413dad
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405721
leave
ret
Function at 0x4145d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405d70
mov eax, dword [0x42626c]
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.004114da
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414613
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41476f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00418940
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 + 0x427b30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00414379
mov ecx, dword [esi*4 + 0x427b30]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x414768
cmp eax, dword [ecx + edi + 0x24]
jne 0x414768
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414768
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414379
add esp, 0x14
test edx, edx
jl 0x414768
jg 0x4146de
test eax, eax
jb 0x414768
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x414768
jl 0x4146f8
cmp dword [ebp - 0x1008], eax
ja 0x414768
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414716
test ebx, ebx
je 0x41474f
cmp ecx, edi
jae 0x41474f
mov al, byte [ecx]
cmp al, 0xd
jne 0x414730
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41473c
cmp byte [ecx + 1], 0xa
jne 0x41473c
inc ecx
jmp 0x41473c
movzx eax, al
movsx eax, byte [eax + 0x426b88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414716
cmp edx, ebx
jne 0x414716
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41476d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405721
leave
ret
Function at 0x416709
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x427b30]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416749
cmp byte [ebx], 0xa
jne 0x416749
or byte [edi + eax + 0x28], 4
jmp 0x41674e
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41684d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x416830
inc eax
cmp dl, 0xd
je 0x41677a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4167a0
cmp eax, ecx
jae 0x4167ae
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x416762
jmp 0x41684d
push 0
lea eax, [ebp - 0x10]
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 0x41682b
cmp dword [ebp - 0x10], 0
je 0x41682b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x427b30]
test byte [eax + edi + 0x28], 0x48
je 0x416805
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4167f0
mov byte [esi], dl
jmp 0x416801
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x427b30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41684d
cmp byte [ebp - 1], 0xa
jne 0x416814
cmp esi, ebx
jne 0x416814
mov byte [esi], 0xa
jmp 0x41684c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041431b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41684d
mov byte [esi], 0xd
jmp 0x41684c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x427b30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41684a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41684d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416856
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x427b30]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41689c
cmp word [ebx], dx
jne 0x41689c
or byte [eax + edi + 0x28], 4
jmp 0x4168a1
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x416a04
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4169e4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4168e2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416918
cmp eax, edx
jae 0x416926
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4168bd
jmp 0x416a04
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4169df
cmp dword [ebp - 0x18], 0
je 0x4169df
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x427b30]
test byte [eax + edi + 0x28], 0x48
je 0x4169b5
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x416979
mov word [esi], cx
jmp 0x4169b0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x427b30]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x427b30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x427b30]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x416a04
pop eax
cmp word [ebp - 4], ax
jne 0x4169c5
cmp esi, ebx
jne 0x4169c5
mov word [esi], ax
jmp 0x416a01
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041431b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x416a04
push 0xd
pop eax
jmp 0x4169c0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x427b30]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4169fe
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x416a04
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
mov ecx, 0x780c0cd4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x12482c7e
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
push 0x569a6a9b
mov ebx, 0x6c96b29c
pop ecx
xor ebx, ecx
push ebx
mov edx, 0xc0280b6
mov ebx, 0x300c4408
xor edx, ebx
pop eax
xor edx, eax
mov ebx, edx
add esp, 0xfffffffc
mov dword [esp], ebx
mov edx, 0x77dbc363
xor edx, 0x2338f6db
push edx
push 0x6a9ad799
mov esi, 0x387bc421
pop ebx
xor esi, ebx
pop eax
xor esi, eax
pop edi
xor esi, edi
mov edi, 0x58a1708f
xor edi, 0x58a1708f
mov eax, dword [0x57f73158]
mov ebx, ecx
add esp, 0xfffffffc
mov edi, esp
mov dword [edi], ebx
pop ecx
jmp 0x403f1a

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4062da
Capabilities:
Encode data using xor

Disassembly:
mov ecx, ebx
xor ecx, 0xffffffff
and ecx, 0xffffffff
and ebx, 0
or ebx, ecx
and ebx, 0x494213b5
and edi, 0xb6bdec4a
or edi, ebx
mov edx, edi
mov ebx, edx
add esp, 0xfffffffc
mov ecx, esp
mov dword [ecx], ebx
xor edi, edi
add edi, esp
mov esi, 0x3f365b38
mov ebx, 0xc0c9a4c4
xor ebx, esi
add esp, ebx
mov dword [esp], edi
mov edx, 0x22afbdd4
xor edx, 0x261db14a
push edx
mov ebx, 0x66030103
mov edx, 0x94844e0
xor ebx, edx
pop esi
xor ebx, esi
add esp, 0xfffffffc
mov edx, esp
mov dword [edx], ebx
push 0x4775238c
mov edi, 0x74422bc
pop ebx
xor edi, ebx
mov esi, 0x2d779a6b
xor esi, 0x6bfd266
xor edi, esi
pop ecx
xor edi, ecx
mov edx, 4
sub esp, edx
push esp
pop ebx
mov dword [ebx], edi
mov edx, 0x7bb1a59
xor edx, 0x693ba44f
push edx
mov esi, 0x4b750c0
xor esi, 0x626d5b43
pop ebx
xor esi, ebx
mov edx, esi
push edx
mov edx, 0x48044210
mov esi, 0x1aa1561
xor edx, esi
push edx
mov ecx, 0x5ab47731
xor ecx, 0x1b4001d5
pop ebx
xor ecx, ebx
pop edi
xor ecx, edi
xor ebx, ebx
add ebx, ecx
mov edx, ebx
push edx
mov esi, 0x589d1e81
mov ebx, 0x589d0e81
xor ebx, esi
mov edx, 0x696a8cb4
xor edx, 0x696a8cb4
xor ebx, edx
push 0x4734ecf5
mov ecx, 0x4734ecf5
pop esi
xor ecx, esi
mov edi, 0
mov esi, 0x400000
xor edi, esi
xor ecx, edi
xor ebx, ecx
mov edx, 0
xor edx, ebx
mov edi, edx
push edi
call eax
pop edx
push 0x27de8a01
mov edi, 0x3646fec6
pop ecx
xor edi, ecx
push edi
mov esi, 0x7008
mov ecx, 0x40440480
xor esi, ecx
pop eax
xor esi, eax
add esp, 0xfffffffc
mov ecx, esp
mov dword [ecx], esi
mov ecx, 0x4604040
mov edi, 0x68023588
xor ecx, edi
push ecx
mov edi, 0x5410e1cb
mov ebx, 0x69ae9769
xor ebx, edi
pop esi
xor ebx, esi
pop edx
xor ebx, edx
mov ecx, 0x62004306
mov edi, 0x15000091
xor ecx, edi
mov edx, 0x50400180
mov edi, 0x27004206
xor edx, edi
xor edx, ecx
mov ecx, 0x78352a12
xor ecx, 0x302f6eb1
mov esi, 0x4f79e9e9
xor esi, 0x763cc06
xor esi, ecx
xor edx, esi
mov edi, 0x4bed0db0
xor edi, 0x5e05fb6d
mov eax, 0x7323404b
xor eax, 0x66cbfe96
xor eax, edi
push 0x5b75c46e
mov esi, 0x5b35c44c
pop edi
xor esi, edi
mov edi, 0x6e649976
mov ecx, 0x6e648976
xor ecx, edi
xor esi, ecx
xor eax, esi
mov ecx, ebx
push ecx
pop esi
push 0xe74bae83
mov edi, 0x18b4517f
pop ecx
xor edi, ecx
add esp, edi
mov dword [esp], esi
mov edi, 0x2b10b3a5
xor edi, 0xd4ef4c59
add esp, edi
mov esi, esp
push esi
pop ecx
mov dword [ecx], eax
xor ebx, ebx
mov bl, byte [edx]
add eax, ebx
mov bl, byte [eax]
pop eax
mov byte [edx], bl
mov edi, 0x6f74c8d8
xor edi, 0xa4399850
push edi
push 0x69de1b74
mov ecx, 0x5d6cb403
pop edi
xor ecx, edi
pop esi
xor ecx, esi
add edx, ecx
pop ebx
mov edi, 0x428b43f2
xor edi, 0xd8333679
push edi
mov esi, 0x45400234
mov edi, 0x20078840
xor esi, edi
pop ecx
xor esi, ecx
add ebx, esi
cmp ebx, 0
jne 0x406499
mov ebx, 0x8115000
mov edx, 0x3400600
xor ebx, edx
mov edx, 0x21f70b35
mov ecx, 0x35f3837b
xor ecx, edx
xor ebx, ecx
mov edx, 0x29925886
mov ecx, 0x301cfeb
xor ecx, edx
mov eax, 0x2a66ff31
xor eax, 0x1fe0e82b
xor eax, ecx
xor eax, ebx
call eax
pop edi
pop edi
ret