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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004071a0
mov eax, dword [0x428040]
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.0041263a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413a35
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413b91
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041cc10
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 + 0x429990]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004149f0
mov ecx, dword [esi*4 + 0x429990]
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 0x413b8a
cmp eax, dword [ecx + edi + 0x24]
jne 0x413b8a
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 0x413b8a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004149f0
add esp, 0x14
test edx, edx
jl 0x413b8a
jg 0x413b00
test eax, eax
jb 0x413b8a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413b8a
jl 0x413b1a
cmp dword [ebp - 0x1008], eax
ja 0x413b8a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413b38
test ebx, ebx
je 0x413b71
cmp ecx, edi
jae 0x413b71
mov al, byte [ecx]
cmp al, 0xd
jne 0x413b52
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b5e
cmp byte [ecx + 1], 0xa
jne 0x413b5e
inc ecx
jmp 0x413b5e
movzx eax, al
movsx eax, byte [eax + 0x428310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413b38
cmp edx, ebx
jne 0x413b38
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413b8f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406445
leave
ret
Function at 0x413e88
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 + 0x429990]
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 0x413ec8
cmp byte [ebx], 0xa
jne 0x413ec8
or byte [edi + eax + 0x28], 4
jmp 0x413ecd
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 0x413fcc
mov dl, byte [eax]
cmp dl, 0x1a
je 0x413faf
inc eax
cmp dl, 0xd
je 0x413ef9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x413f1f
cmp eax, ecx
jae 0x413f2d
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 0x413ee1
jmp 0x413fcc
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 0x413faa
cmp dword [ebp - 0x10], 0
je 0x413faa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x429990]
test byte [eax + edi + 0x28], 0x48
je 0x413f84
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x413f6f
mov byte [esi], dl
jmp 0x413f80
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x429990]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413fcc
cmp byte [ebp - 1], 0xa
jne 0x413f93
cmp esi, ebx
jne 0x413f93
mov byte [esi], 0xa
jmp 0x413fcb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414a0e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413fcc
mov byte [esi], 0xd
jmp 0x413fcb
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x429990]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413fc9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413fcc
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413fd5
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 + 0x429990]
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 0x41401b
cmp word [ebx], dx
jne 0x41401b
or byte [eax + edi + 0x28], 4
jmp 0x414020
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 0x414183
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 0x414163
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x414061
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414097
cmp eax, edx
jae 0x4140a5
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 0x41403c
jmp 0x414183
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 0x41415e
cmp dword [ebp - 0x18], 0
je 0x41415e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x429990]
test byte [eax + edi + 0x28], 0x48
je 0x414134
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 0x4140f8
mov word [esi], cx
jmp 0x41412f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x429990]
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 + 0x429990]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x429990]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x414183
pop eax
cmp word [ebp - 4], ax
jne 0x414144
cmp esi, ebx
jne 0x414144
mov word [esi], ax
jmp 0x414180
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414a0e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x414183
push 0xd
pop eax
jmp 0x41413f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x429990]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41417d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x414183
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 0x416f8e
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 0x41702b
push ebx
push esi
call fcn.00416f57
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.00415c49
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416fd8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41702a
push edi
push eax
call fcn.00411465
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416ff8
call fcn.00410c9b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417029
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415c49
add esp, 0x20
test eax, eax
jne 0x417017
push edi
call fcn.00410c9b
jmp 0x41701f
push ebx
call fcn.00410c9b
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 0x419658
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004109b0
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 0x4196c7
cmp esi, dword [ebp - 4]
je 0x4196c2
cmp dword [ebp + 0xc], 0
je 0x4196c2
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41969f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004191aa
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4196c9
xor eax, eax
inc eax
jmp 0x4196c9
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41972e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x428040]
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.004109b0
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.004109b0
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 0x4197a5
cmp word [ecx], dx
je 0x4197a5
mov eax, dword [0x421a4c]
push edi
dec eax
push eax
push 0x421938
call fcn.004196cd
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x419818
cmp word [eax], dx
je 0x419818
mov eax, dword [edi]
test eax, eax
je 0x4197c9
cmp word [eax], dx
je 0x4197c9
lea eax, [ebp - 0x10]
push eax
call fcn.004190b0
jmp 0x4197d2
lea eax, [ebp - 0x10]
push eax
call fcn.0041914b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x419842
mov eax, dword [0x421934]
push dword [ebp - 0x14]
dec eax
push eax
push 0x421628
call fcn.004196cd
add esp, 0xc
test al, al
je 0x419842
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41980d
cmp word [eax], di
je 0x41980d
lea eax, [ebp - 0x10]
push eax
call fcn.004190b0
pop ecx
jmp 0x419844
lea eax, [ebp - 0x10]
push eax
call fcn.0041914b
jmp 0x41980a
mov eax, dword [edi]
test eax, eax
je 0x41982f
cmp word [eax], dx
je 0x41982f
lea eax, [ebp - 0x10]
push eax
call fcn.00419065
pop ecx
jmp 0x419842
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 0x41990d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00419552
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41990d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41990d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41990d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41989a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041130c
test ebx, ebx
je 0x419908
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041130c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41990d
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 0x41990d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041afa7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41990f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406445
leave
ret
Function at 0x41cbd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41cbfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cbfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100043c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006534f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1009a8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 0xe0000000
cmp eax, 0x20000000
jg 0x1000449c
je 0x10004497
cmp eax, 0x80000000
je 0x10004497
test eax, eax
jne 0x100044a3
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_void_]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Heap::constructor_void_]
mov eax, dword [0x1009bddc]
mov dword [ebp - 0x10], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x1000444b
add ecx, 0x28
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::acquire_void_]
mov ecx, dword [edi]
push esi
mov byte [ebp - 4], 1
call fcn.1005f950
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_unsigned_short_int_const__]
mov eax, dword [0x1009bddc]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
test ecx, ecx
je 0x1000447c
mov eax, dword [ebp - 0x10]
lea ecx, [ecx + eax*4]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::release_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_double___thiscall_ScCore::Variant::getDouble_void_const]
lea ecx, [ebp - 0x2c]
fstp qword [ebp - 0x14]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::destructor_void_]
jmp 0x100044bf
xorps xmm0, xmm0
jmp 0x100044ba
cmp eax, 0x40000000
je 0x100044af
and esi, 0x1fffffff
movd xmm0, esi
jmp 0x100044b6
movzx eax, si
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1005f950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1005f95f
pop dword [ebp - 8]
mov eax, 0xb10836b
sub eax, 0xfb0a8a0c
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x90a22d9e
sub dword [ebp - 0x18], 0x424fe853
mov dword [ebp - 0x14], 0xb78a73ff
add dword [ebp - 0x14], 0x7aa8d846
mov dword [ebp - 0x10], 0x10ae8786
add dword [ebp - 0x10], 0x3b9dbca8
mov dword [ebp - 0xc], 0xe4cbc996
sub dword [ebp - 0xc], 0xe4cbc996
lea eax, [ebp - 0x18]
push eax
mov eax, 0x85a6c6bf
add eax, 0x8a604945
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x463cb07e
add dword [ebp - 0x18], 0x2e35b8d8
mov dword [ebp - 0x14], 0x984a3c
add dword [ebp - 0x14], 0x40d41739
mov dword [ebp - 0x10], 0x204aacb2
sub dword [ebp - 0x10], 0xbcdb4046
mov dword [ebp - 0xc], 0x2ad062e4
sub dword [ebp - 0xc], 0x2ad062e4
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xcde771f1
sub eax, 0xbde061e9
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x4f94f
push 0
call eax
mov ecx, 0x5b9c
mov ebx, eax
mov edx, 0x100ac600
add edx, dword [ebp - 8]
mov edi, 0x190004a7
add edi, 0x70a4283f
mov esi, dword [edx]
sub dword [ebp - 4], 0x84fc8d7f
xor esi, edi
mov dword [ebp - 4], 0x8b99b891
mov dword [ebx], esi
sub dword [ebp - 4], 0xdb00b228
add ebx, 0xa8b37820
add ebx, 0x574c87e4
add edx, 0x15338ead
sub edx, 0x15338ea9
loop 0x1005fa75
add eax, 0x16143
mov ebx, eax
add eax, 5
mov ecx, 0xa50a7fcd
add ecx, 0x6af58033
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad77bae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x3ad77bbd
pop dword [ebp - 8]
mov eax, 0x11e7c58e
add eax, 0x28efb62f
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x353a2
push 0
mov eax, 0x5d3ca91b
sub eax, 0x22659867
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x3e84
xor edx, edx
add edx, eax
mov ebx, 0x3ad87e00
add ebx, dword [ebp - 8]
mov edi, 0xfb2146ab
sub edi, 0x486b6282
xor dword [ebp - 4], 0xa28600e2
mov esi, dword [ebx]
mov dword [ebp - 4], 0xdf6b5133
add esi, edi
xor dword [ebp - 4], edi
mov dword [edx], esi
add edx, 0x32b9dcce
sub edx, 0x32b9dcca
add ebx, 0xaed56c18
sub ebx, 0xaed56c14
loop 0x3ad77c12
add eax, 0x49e1a30b
add eax, 0xb61f49d8
mov ebx, eax
add eax, 0x995cecdb
sub eax, 0x995cecd6
mov ecx, 0x3ad70000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x40d75b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40d76a
pop dword [ebp - 0x38]
mov eax, 0x40d76a
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3b877
push 0
mov eax, 0xac740e57
sub eax, 0xac331dc7
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x54a9
mov edi, eax
mov ebx, 0x41aa00
add ebx, dword [ebp - 0x38]
mov edx, 0x913f130f
sub edx, 0xfcf70b6b
sub dword [ebp - 0x10], esi
mov esi, dword [ebx]
xor dword [ebp - 0xc], 0x993e10fa
sub esi, edx
mov dword [ebp - 0x30], 0x9785ee0e
mov dword [edi], esi
add edi, 0xfca918cb
sub edi, 0xfca918c7
add ebx, 4
loop 0x40d7b8
add eax, 0x9d10b5b1
add eax, 0x62f08fc6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x39ec8d3b
sub ecx, 0x39ac8d3b
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x402e78
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ed1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d14
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d14
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ebb
inc ebx
jmp 0x402ea4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ed8
lea eax, [ebp - 8]
call fcn.004046f8
ret

Function at 0x402ee0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046f8
test esi, esi
jne 0x402f17
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004047e8
jmp 0x402f38
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d14
mov dword [esp], eax
test esi, esi
je 0x402f38
cmp dword [ebx], 0
je 0x402f38
dec esi
jmp 0x402f1f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403218
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4036f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x497024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403790
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x403770
xor eax, eax
push ebp
push 0x403769
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037ac
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403770
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x497024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x497024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404574
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49904c], 0
je 0x4045d5
cmp word [0x499220], 0xd7b2
jne 0x40459d
cmp dword [0x499228], 0
jbe 0x40459d
mov eax, 0x49921c
call dword [0x499238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4045fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x497034], 0
jne 0x4045f1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret