joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cfb0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x41d058
mov eax, dword [ebx + 0x1c]
shr eax, 3
push esi
cmp eax, ecx
jbe 0x41d100
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
cmp edx, eax
je 0x41d057
mov eax, dword [edx + 4]
mov esi, edx
mov dword [ebp - 8], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push edi
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], edi
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0x10], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.0041fee3
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x41d05d
cmp esi, dword [ebp - 4]
jne 0x41d023
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x41d04e
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x41d071
mov dword [ecx], edx
mov eax, edx
jmp 0x41d074
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
cmp esi, edx
je 0x41d04e
nop dword [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
nop
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.0041fee3
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x41d0e2
cmp esi, dword [ebp - 4]
jne 0x41d0b0
mov eax, dword [ebp - 0x14]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp esi, edx
jne 0x41d080
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x41d125
mov esi, dword [eax]
push 0xc
push eax
call fcn.0041fee3
add esp, 8
mov eax, esi
test esi, esi
jne 0x41d112
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.004127b0
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420dc3
Capabilities:
Parse pe header

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

Function at 0x434f4d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44cad4
push 0x44cacc
push str.FlsAlloc
push 0x1e
call fcn.00434d7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434f81
push dword [ebp + 8]
mov ecx, esi
call dword [0x4471dc]
call esi
jmp 0x434f87
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x434fcb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44cae4
push 0x44cadc
push str.FlsGetValue
push 0x20
call fcn.00434d7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435002
push dword [ebp + 8]
mov ecx, esi
call dword [0x4471dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4397ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439449

Function at 0x4397b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004395d8

Function at 0x439c0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00420360
mov eax, dword [0x456100]
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.0042e6e2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x439c51
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x439dad
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00443c10
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 + 0x458e60]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0043a035
mov ecx, dword [esi*4 + 0x458e60]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x439da6
cmp eax, dword [edi + ecx + 0x24]
jne 0x439da6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x439da6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043a035
add esp, 0x14
test edx, edx
jl 0x439da6
jg 0x439d1c
test eax, eax
jb 0x439da6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x439da6
jl 0x439d36
cmp dword [ebp - 0x1008], eax
ja 0x439da6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x439d54
test ebx, ebx
je 0x439d8d
cmp ecx, edi
jae 0x439d8d
mov al, byte [ecx]
cmp al, 0xd
jne 0x439d6e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x439d7a
cmp byte [ecx + 1], 0xa
jne 0x439d7a
inc ecx
jmp 0x439d7a
movzx eax, al
movsx eax, byte [eax + 0x456a80]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x439d54
cmp edx, ebx
jne 0x439d54
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x439dab
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00420345
leave
ret
Function at 0x43b487
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 0x43b524
push ebx
push esi
call fcn.0043b450
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.0043a3ae
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43b4d1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43b523
push edi
push eax
call fcn.004355e9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43b4f1
call fcn.00434970
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43b522
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043a3ae
add esp, 0x20
test eax, eax
jne 0x43b510
push edi
call fcn.00434970
jmp 0x43b518
push ebx
call fcn.00434970
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 0x440296
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x458e60]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4402d6
cmp byte [ebx], 0xa
jne 0x4402d6
or byte [eax + edi + 0x28], 4
jmp 0x4402db
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4403d9
mov al, byte [edx]
cmp al, 0x1a
je 0x4403bb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x44030a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x44032f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x440339
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4402ec
jmp 0x4403d9
push 0
lea eax, [ebp - 0xc]
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 0x4403b6
cmp dword [ebp - 0xc], 0
je 0x4403b6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x458e60]
test byte [eax + edi + 0x28], 0x48
je 0x440390
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44037b
mov byte [esi], dl
jmp 0x44038c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x458e60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4403d9
cmp byte [ebp - 1], 0xa
jne 0x44039f
cmp esi, ebx
jne 0x44039f
mov byte [esi], 0xa
jmp 0x4403d8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043a053
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4403d9
mov byte [esi], 0xd
jmp 0x4403d8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x458e60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4403d5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4403d9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4403e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x458e60]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x440425
cmp word [esi], dx
jne 0x440425
or byte [edi + eax + 0x28], 4
jmp 0x44042a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x440563
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x440543
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x44046c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4404a2
cmp eax, edx
jae 0x4404ae
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x440444
jmp 0x440563
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44053f
cmp dword [ebp - 0x14], 0
je 0x44053f
mov eax, dword [ebx*4 + 0x458e60]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x440517
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x44055d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x458e60]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x458e60]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x458e60]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x440560
pop ebx
cmp word [ebp - 4], bx
jne 0x440528
cmp esi, dword [ebp + 0xc]
jne 0x440528
mov word [esi], bx
jmp 0x440560
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043a053
add esp, 0x10
cmp word [ebp - 4], bx
je 0x440563
push 0xd
jmp 0x44055c
mov ecx, dword [ebx*4 + 0x458e60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44055a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x440563
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x442785
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00442701
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4428fd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4428fd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4428ac
jg 0x4427de
test eax, eax
je 0x4428a2
push 1
push 0x1000
call fcn.00434a7c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x442804
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x442899
push 0x8000
push ebx
call fcn.0042ee41
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x442830
jg 0x44282b
cmp ecx, 0x1000
jb 0x442830
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043734c
add esp, 0x10
cmp eax, 0xffffffff
je 0x442875
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x44282b
jl 0x44285c
test ecx, ecx
jne 0x44281d
push dword [ebp - 0xc]
push ebx
call fcn.0042ee41
push esi
call fcn.00434970
add esp, 0xc
xor edi, edi
jmp 0x44290e
cmp byte [edi + 0x24], 0
je 0x44288c
cmp dword [edi + 0x20], 5
jne 0x44288c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x442897
mov edi, dword [edi + 0x18]
jmp 0x442899
xor edi, edi
push esi
call fcn.00434970
pop ecx
jmp 0x44290e
test ecx, ecx
jg 0x44286e
jl 0x4428ac
test eax, eax
jae 0x44286e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043a053
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4428cf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44286e
jmp 0x442906
push ebx
call fcn.00438188
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44286e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x44290e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44290b
mov edi, dword [edi + 0x18]
jmp 0x44290e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043a053
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x443a10
Capabilities:
Parse pe header

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

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x401040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401059
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401094
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401090
lea ebx, [ebx]
cmp esi, eax
jae 0x401094
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401080
cmp esi, eax
jb 0x40109a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40a9f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x104
mov eax, dword [0x45d55c]
xor eax, esp
mov dword [esp + 0x100], eax
mov al, 0x65
mov byte [esp + 3], al
mov byte [esp + 7], al
mov byte [esp + 0xd], al
lea eax, [esp]
mov cl, 0x6f
push eax
push str.kernel32.dll
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x69
mov byte [esp + 0xa], 0x7a
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], 0x66
mov byte [esp + 0xe], 0x52
mov byte [esp + 0x10], 0x73
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], 0x75
mov byte [esp + 0x13], 0x72
mov byte [esp + 0x14], 0x63
mov byte [esp + 0x16], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa81
push edi
push esi
call eax
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0042d746
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
xor ecx, esp
xor eax, eax
call fcn.0042d746
add esp, 0x104
ret

Function at 0x40b070
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x130
mov eax, dword [0x45d55c]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x138]
push ebp
xor ebp, ebp
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.0041d017
test eax, eax
je 0x40b0d2
lea eax, [ebp + 1]
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0042d746
add esp, 0x130
ret
push esi
push edi
call fcn.004164d0
movzx edx, word [esp + 0x140]
mov esi, dword [eax + 8]
push 0x44cd54
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebp
jne 0x40b111
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0042d746
add esp, 0x130
ret
push ebx
call fcn.0040a9f0
mov ebx, eax
cmp ebx, ebp
je 0x40b14e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x40b14e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
je 0x40b14e
mov eax, dword [esp + 0x10]
push 0x44796c
push eax
call fcn.0042da56
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x40b152
xor eax, eax
jmp 0x40b16a
push esi
push ebx
push 1
push edi
call fcn.0042e7a9
push esi
call fcn.0042d7c7
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x13c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042d746
add esp, 0x130
ret
Function at 0x412224
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x45d55c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x412264
push 0x44d7f0
push 4
push eax
call fcn.0042fffa
push eax
call fcn.0040aaa0
add esp, 0x10
jmp 0x412276
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4122e4
push edi
call fcn.0042fc9a
mov edi, dword [eax]
call fcn.0042fc9a
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0043007b
add esp, 0x18
mov ebx, eax
call fcn.0042fc9a
cmp dword [eax], 0
je 0x4122c4
call fcn.0042fc9a
push dword [eax]
call fcn.00411435
pop ecx
jmp 0x4122cb
call fcn.0042fc9a
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4122e4
cmp ebx, esi
jae 0x4122e4
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4122e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d746
leave
ret
Function at 0x414e8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x414ed2
call fcn.004164d0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414ed2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x414f15
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x414efe
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x414efe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x414f12
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41b670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41b6b3
call fcn.004164d0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41b6b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41b6ce
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041b227
test ebx, ebx
mov esi, eax
je 0x41b6cc
test edi, edi
je 0x41b6cc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41eb9f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41ebcd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41ebeb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041eb09
jmp 0x41ebeb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41ebeb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041eb09
test edi, edi
mov eax, edi
jne 0x41ebd5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4605c8]
test ecx, ecx
je 0x41ecae
jmp 0x41eb9e
ret 8

Function at 0x42d746
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45d55c]
jne 0x42d750
repz ret
jmp fcn.00434a7c