joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10133f91
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x101ce2ac]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10133f26
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10117df0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10133fe0
cmp dword [ebp - 0x1c], 5
jb 0x10133ff8
jmp 0x10133ff4
cmp dword [ebp - 0x10], 1
jne 0x10133ff8
cmp dword [ebp - 0x1c], 4
ja 0x10133ff4
jne 0x10133ff8
cmp dword [ebp - 0x18], 0
jbe 0x10133ff8
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10199480
call fcn.10001ab0
test eax, eax
jge 0x10134019
mov byte [0x101cfc20], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10116cb9
add ebp, 0x78
leave
ret

Function at 0x10135b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1017f608
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x101ce2ac]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], 0x10199558
mov byte [esp + 0x10], al
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x2c], 0
call fcn.10135210
mov bl, al
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 8], 0x10199558
je 0x10135b80
cmp byte [esp + 0x10], 0
je 0x10135b80
push eax
call fcn.1011862d
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x18
ret 0x10
Function at 0x1013d4d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push esi
push edi
call edx
mov esi, dword [ebp + 0xc]
mov ecx, 0xc1
lea edi, [esp + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0xe], 1
lea ebx, [ebx]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 1
push 1
lea ecx, [esp + 0x17]
push ecx
mov ecx, esi
call edx
cmp eax, 1
jne 0x1013d6d7
cmp byte [esp + 0xe], 0
mov al, byte [esp + 0xf]
jne 0x1013d53d
test al, al
jne 0x1013d510
cmp al, 0x21
je 0x1013d6ca
cmp al, 0x2c
je 0x1013d55a
cmp al, 0x3b
je 0x1013d6d7
test al, al
sete byte [esp + 0xe]
jmp 0x1013d510
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 1
push 9
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.10136200
mov ecx, dword [esp + 0x12]
push ecx
mov ecx, ebx
mov word [esp + 0x14], ax
call fcn.10136200
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
mov word [esp + 0x16], ax
call fcn.10136200
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x16]
push eax
mov ecx, ebx
call fcn.10136200
mov ecx, dword [ebp + 0x10]
cmp word [ecx + 6], 0
mov dx, word [esp + 0x14]
mov word [esp + 0x16], ax
jne 0x1013d5ce
cmp word [ecx + 8], 0
jne 0x1013d5ce
mov word [ecx + 6], dx
mov word [ecx + 8], ax
movzx edi, word [esp + 0x10]
movzx ecx, word [ecx + 6]
movzx edx, dx
add edx, edi
cmp edx, ecx
jg 0x1013d510
movzx ecx, word [esp + 0x12]
movzx edx, ax
add edx, ecx
mov ecx, dword [ebp + 0x10]
movzx ecx, word [ecx + 8]
cmp edx, ecx
jg 0x1013d510
movzx ecx, byte [esp + 0x18]
add dword [esp + 0x1c], 1
test cl, cl
jns 0x1013d63e
mov edx, dword [esi]
mov edx, dword [edx + 8]
and ecx, 7
add ecx, 1
mov eax, 1
shl eax, cl
push 1
lea ecx, [esp + 0x30]
mov word [esp + 0x2e], ax
movsx eax, ax
lea eax, [eax + eax*2]
push eax
push ecx
mov ecx, esi
call edx
movzx ecx, byte [esp + 0x18]
mov ax, word [esp + 0x16]
xor edx, edx
movzx eax, ax
and ecx, 0x40
mov dword [ebx + 0x1dc], ecx
mov dword [ebx + 0x1e8], eax
mov dword [esp + 0x20], edx
mov dword [ebx + 0x1f0], 0x4000
mov dword [ebx + 0x1e4], 8
mov dword [ebx + 0x1e0], edx
mov dword [ebx + 0x1ec], edx
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
push 0
push esi
mov ecx, ebx
mov edi, eax
call fcn.1013ccf0
cmp dword [esp + 0x20], 0
je 0x1013d6aa
push edi
push esi
mov ecx, ebx
call fcn.1013d030
jmp 0x1013d510
mov ecx, dword [ebx + 0x1f0]
sub ecx, dword [ebx + 0x1f4]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
add ecx, 1
push 1
push ecx
mov ecx, esi
call edx
jmp 0x1013d510
push esi
mov ecx, ebx
call fcn.1013c390
jmp 0x1013d510
mov ecx, dword [esp + 0x24]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push 0
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1013e690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xf864], eax
mov dword [esi + 0xf860], ecx
mov dword [esi + 0xf854], ecx
mov edx, 1
shl edx, cl
add ecx, 0xffffffff
mov eax, 1
shl eax, cl
push edi
xor edi, edi
sub edx, 1
mov dword [esi + 0xf868], eax
add eax, 1
mov dword [esi + 0xf86c], eax
mov ax, word [esi + 0xf868]
add ax, 2
mov ecx, esi
mov dword [esi + 0xf85c], edi
mov dword [esi + 0x1d8], edi
mov dword [esi + 0x1d4], edi
mov word [esi + 0xf858], dx
mov word [esi + 0xf85a], ax
mov dword [esi + 0xf870], edi
call fcn.1013c960
mov dword [esp + 0x10], eax
xor ecx, ecx
mov eax, 0x138b
jmp 0x1013e720
add eax, eax
add ecx, 1
cmp eax, 0x10000
jl 0x1013e720
mov eax, 8
sub eax, ecx
push 0x138b
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.1013c9f0
movzx ecx, word [esi + 0xf868]
push ecx
mov ecx, esi
call fcn.1013e1c0
mov ecx, esi
call fcn.1013c960
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1013e864
push ebx
mov ecx, dword [esp + 0x18]
movsx edi, bp
shl edi, cl
mov ebx, ebp
shl ebx, 0xc
add ebx, dword [esp + 0x14]
xor edi, dword [esp + 0x14]
mov ecx, dword [esi + edi*4 + 0x8310]
cmp ecx, ebx
lea eax, [esi + edi*4 + 0x8310]
jne 0x1013e79e
movzx edx, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], edx
jmp 0x1013e851
test ecx, ecx
jl 0x1013e7d6
mov ecx, 0x138b
sub ecx, edi
test edi, edi
jne 0x1013e7b2
mov ecx, 1
lea edx, [ecx*4]
sub edi, ecx
sub eax, edx
test edi, edi
jge 0x1013e7cc
add edi, 0x138b
add eax, 0x4e2c
mov edx, dword [eax]
cmp edx, ebx
je 0x1013e80c
test edx, edx
jg 0x1013e7b2
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.1013e1c0
movzx eax, word [esi + 0xf85a]
cmp ax, 0x1000
mov dword [esp + 0x14], ebp
jge 0x1013e81a
mov word [esi + edi*2 + 0xd13c], ax
add word [esi + 0xf85a], 1
mov dword [esi + edi*4 + 0x8310], ebx
jmp 0x1013e851
movzx eax, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], eax
jmp 0x1013e851
push 0x138b
mov ecx, esi
call fcn.1013c9f0
movzx eax, word [esi + 0xf868]
mov dx, word [esi + 0xf868]
add dx, 2
push eax
mov ecx, esi
mov word [esi + 0xf85a], dx
mov dword [esi + 0xf85c], 1
call fcn.1013e1c0
mov ecx, esi
call fcn.1013c960
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x1013e765
pop ebx
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.1013e1c0
movzx edx, word [esi + 0xf86c]
push edx
mov ecx, esi
call fcn.1013e1c0
pop edi
pop esi
pop ebp
ret 8
Function at 0x1015ac90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1015acbf
push esi
call fcn.1015b420
add esp, 4
cmp byte [esi + 0x40], 0
je 0x1015acb8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x1015ad3a
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x1015ad2a
mov eax, dword [esi + 8]
test eax, eax
je 0x1015ace4
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x1015ad26
cmp eax, 2
je 0x1015ad2a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1015acd5
cmp eax, 3
je 0x1015ad0c
cmp eax, 1
jne 0x1015acd5
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x1015acd5
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x1015acd5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.1015ab20
pop esi
ret
cmp eax, 0xcc
je 0x1015ad5c
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.1015ab20
pop esi
ret
Function at 0x10163700
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x10163727
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x10163733
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x1016383f
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x1016377c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x1016379d
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
add ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.10163570
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x101637d2
lea esp, [esp]
add ebx, 1
mov ecx, ebp
mov eax, ebx
call fcn.10163570
mov ecx, eax
cmp esi, ecx
jg 0x101637c0
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x101637b5
cmp dword [esp + 0x10], 0
je 0x10163820
mov eax, 1
lea ecx, [edi - 1]
jmp 0x10163800
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
add eax, 1
sub ecx, 1
cmp eax, 0xff
jle 0x10163800
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x10163770
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x1022f473
Capabilities:
Get number of processors

Disassembly:
jmp 0x10223794
call fcn.1022377f
salc
arpl word [ebp - 0x79], cx
loop 0x1022378a
adc eax, 0x24748b56
add al, 0x8d
mov dh, 0xd4
adc byte [edx], al
add byte [ecx + 0x5e042474], cl
push edx
mov dword [esp], ebp
push esp
pop ebp
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 0x80
xchg dword [esp], ebp
pop esp
sub esp, 4
mov dword [esp], ebx
push edi
mov dword [esp], esi
push 0x188b
mov dword [esp], edi
jmp 0x102493b3
push ebx
mov ebx, 8
add ebx, ebp
mov eax, dword [ebx]
pop ebx
sub esp, 4
mov dword [esp], eax
jmp 0x102421dd
jmp 0x1022e476
push 0
push 0x41797261
push 0x7262694c
push 0x64616f4c
lea ecx, [ebp - 0x2c]
sub esp, 4
mov dword [esp], ecx
jmp 0x1023d856
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x1983f]
mov dword [esp + 4], ecx
pop ecx
jmp 0x10245e32
jmp 0x1023d86d
call fcn.1023d858
adc byte [eax - 0x77], dl
loopne 0x1023d87c
add al, 0
add byte [eax], al
add eax, 4
xchg dword [esp], eax
pop esp
rol byte [edi + eax*4], 4
and al, 0x5c
push eax
pop dword [ebp - 4]
push ecx
mov ecx, 0xc
add ecx, ebp
mov eax, dword [ecx]
pop ecx
push esi
mov dword [esp], eax
push dword [ebp - 4]
sub dword [esp], 0x3f8325ed
pop ecx
add ecx, 0x3f8325ed
push esi
mov dword [esp], ecx
push eax
mov eax, 8
add eax, ebp
mov edx, dword [eax]
pop eax
push eax
mov eax, 0x64
add edx, eax
pop eax
push ebx
mov dword [esp], edx
jmp 0x1022377d
jmp 0x102421f4
call fcn.102421df
or eax, dword [ebp + 0x68]
mov byte [eax], 0
jmp 0x10223bce
push esi
mov esi, 0x6114390f
xor esi, 0x61143917
mov eax, esi
pop esi
mov eax, dword fs:[eax]
push eax
pop dword [ebp - 4]
push dword [ebp - 4]
pop eax
push dword [eax + 0x30]
sub dword [esp], 0x63f80c4b
pop ecx
add ecx, 0x63f80c4b
push eax
mov eax, 0xfffffff8
add eax, ebp
mov dword [eax], ecx
pop eax
push dword [ebp - 8]
pop edx
push ecx
mov ecx, 8
add ecx, edx
mov eax, dword [ecx]
pop ecx
push edx
mov edx, 0xffffffec
add edx, ebp
mov dword [edx], eax
pop edx
push ebx
mov ebx, 0
mov dword [ebp - 0x10], ebx
pop ebx
cmp dword [ebp - 0x10], 0
je 0x10224698
jmp 0x10225265

Function at 0x1024e6f2
Capabilities:
Access peb ldr_data

Disassembly:
push eax
mov eax, dword [esp + 4]
lea eax, [eax - 0x4e23]
mov dword [esp + 4], eax
pop eax
jmp 0x1023da70

Function at 0x104d20dc
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], ecx
cmp eax, 0x1000
lea ecx, [esp + 8]
jb 0x104d213a
jmp 0x104d20f9
push ebx
mov ebx, 0x1000
sub ecx, ebx
pop ebx
push esi
mov esi, 0x42603735
add esi, 0x62b848ad
not esi
xor esi, 0xa3b2af6
xor esi, 0x5731f4a
shr esi, 4
xor esi, 0x55aeb5a
sub eax, esi
pop esi
test dword [ecx], eax
cmp eax, 0x1000
jae 0x104d20f9
jmp 0x104d213a
sub ecx, 0x42861a21
sub ecx, eax
add ecx, 0x42861a21
push esp
pop eax
test dword [ecx], eax
mov esp, ecx
push dword [eax]
pop ecx
push dword [eax + 4]
xor dword [esp], 0x1d9f7243
pop eax
xor eax, 0x1d9f7243
push ecx
mov dword [esp], eax
ret
Function at 0x401000
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [eax + 8]
push esi
mov esi, dword [eax]
push edi
mov edi, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], eax
mov dword [esp + 0x14], eax
add ecx, 0x14
mov dword [esp + 0x18], 0x454204
movzx edx, byte [esp + 0x16]
xor ebx, ebx
mov bh, byte [edx + str.cw]
movzx edx, ah
mov bl, byte [edx + str.cw]
mov edx, eax
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
shl ebx, 8
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx + str.cw]
or ebx, edx
mov edx, dword [esp + 0x18]
xor ebx, dword [edx - 4]
xor esi, ebx
xor edi, esi
xor ebx, ebx
xor ebp, edi
xor eax, ebp
mov dword [ecx - 4], esi
mov dword [ecx], edi
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov dword [esp + 0x14], eax
movzx edx, byte [esp + 0x16]
mov bh, byte [edx + str.cw]
movzx edx, ah
mov bl, byte [edx + str.cw]
mov edx, eax
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
shl ebx, 8
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx + str.cw]
or ebx, edx
mov edx, dword [esp + 0x18]
xor ebx, dword [edx]
xor esi, ebx
xor edi, esi
xor ebp, edi
xor eax, ebp
xor ebx, ebx
mov dword [esp + 0x14], eax
movzx edx, byte [esp + 0x16]
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], ebp
mov dword [ecx + 0x18], eax
mov bh, byte [edx + str.cw]
movzx edx, ah
mov bl, byte [edx + str.cw]
mov edx, eax
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
mov edx, dword [esp + 0x18]
xor ebx, dword [edx + 4]
xor esi, ebx
xor edi, esi
xor ebp, edi
xor eax, ebp
mov dword [esp + 0x14], eax
movzx edx, byte [esp + 0x16]
xor ebx, ebx
mov dword [ecx + 0x1c], esi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], ebp
mov dword [ecx + 0x28], eax
mov bh, byte [edx + str.cw]
movzx edx, ah
mov bl, byte [edx + str.cw]
mov edx, eax
and edx, 0xff
movzx edx, byte [edx + str.cw]
add ecx, 0x50
shl ebx, 8
or ebx, edx
shl ebx, 8
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx + str.cw]
or ebx, edx
mov edx, dword [esp + 0x18]
xor ebx, dword [edx + 8]
xor esi, ebx
xor edi, esi
xor ebp, edi
xor eax, ebp
xor ebx, ebx
mov dword [esp + 0x14], eax
movzx edx, byte [esp + 0x16]
mov dword [ecx - 0x24], esi
mov dword [ecx - 0x20], edi
mov dword [ecx - 0x1c], ebp
mov dword [ecx - 0x18], eax
mov bh, byte [edx + str.cw]
movzx edx, ah
mov bl, byte [edx + str.cw]
mov edx, eax
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
mov edx, dword [esp + 0x18]
xor ebx, dword [edx + 0xc]
add edx, 0x14
xor esi, ebx
xor edi, esi
xor ebp, edi
xor eax, ebp
cmp edx, 0x45422c
mov dword [ecx - 0x14], esi
mov dword [ecx - 0x10], edi
mov dword [ecx - 0xc], ebp
mov dword [ecx - 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jl 0x401031
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402810
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x69], 0
jne 0x402820
mov eax, 2
pop esi
ret
mov eax, dword [esi + 0x65]
test eax, eax
push ebx
lea ebx, [esi + 0x65]
je 0x402837
push eax
mov eax, dword [esi + 0x55]
call eax
mov dword [ebx], 0
mov ecx, dword [esi + 0x69]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.STLink_Reenumerate
push ecx
call edi
mov edx, dword [esi + 0x69]
push str.STLink_GetNbDevices
push edx
mov dword [esi + 0x45], eax
call edi
mov dword [esi + 0x49], eax
mov eax, dword [esi + 0x69]
push str.STLink_GetDeviceInfo
push eax
call edi
mov ecx, dword [esi + 0x69]
push str.STLink_OpenDevice
push ecx
mov dword [esi + 0x4d], eax
call edi
mov edx, dword [esi + 0x69]
push str.STLink_CloseDevice
push edx
mov dword [esi + 0x51], eax
call edi
mov dword [esi + 0x55], eax
mov eax, dword [esi + 0x69]
push str.STLink_SendCommand
push eax
call edi
mov ecx, dword [esi + 0x45]
test ecx, ecx
mov dword [esi + 0x59], eax
je 0x402921
cmp dword [esi + 0x49], 0
je 0x402921
cmp dword [esi + 0x4d], 0
je 0x402921
cmp dword [esi + 0x51], 0
je 0x402921
cmp dword [esi + 0x55], 0
je 0x402921
test eax, eax
je 0x402921
mov edx, dword [esi + 0x5d]
mov edi, 1
push edi
push edx
call ecx
mov eax, dword [esi + 0x5d]
mov ecx, dword [esi + 0x49]
push eax
call ecx
test eax, eax
mov dword [esi + 0x61], eax
je 0x4028e6
mov edx, dword [esi + 0x5d]
mov eax, dword [esi + 0x51]
push ebx
push edi
push 0
push edx
call eax
cmp eax, edi
je 0x4028ef
pop edi
pop ebx
mov eax, 3
pop esi
ret
mov ecx, esi
call fcn.00401eb0
cmp eax, edi
je 0x40290b
mov ecx, dword [ebx]
mov edx, dword [esi + 0x55]
push ecx
call edx
pop edi
pop ebx
mov eax, 4
pop esi
ret
xor eax, eax
cmp dword [esi + 0x61], edi
mov dword [esi + 0x6d], edi
setne al
pop edi
pop ebx
pop esi
lea eax, [eax*4 + 1]
ret
pop edi
pop ebx
mov eax, 2
pop esi
ret

Function at 0x4043f0
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 0x404409
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404444
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404440
lea ebx, [ebx]
cmp esi, eax
jae 0x404444
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404430
cmp esi, eax
jb 0x40444a
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 0x407ec1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x490130]
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 0x407f01
push 0x445518
push 4
push eax
call fcn.0042a1e9
push eax
call fcn.00401ae0
add esp, 0x10
jmp 0x407f13
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x407f81
push edi
call fcn.00429e2e
mov edi, dword [eax]
call fcn.00429e2e
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.0042a26a
add esp, 0x18
mov ebx, eax
call fcn.00429e2e
cmp dword [eax], 0
je 0x407f61
call fcn.00429e2e
push dword [eax]
call fcn.00407071
pop ecx
jmp 0x407f68
call fcn.00429e2e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x407f81
cmp ebx, esi
jae 0x407f81
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x407f83
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00427b8d
leave
ret
Function at 0x40a546
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x44111c
call fcn.00429c08
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040ce3c
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x40a591
call fcn.0040ce3c
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x40a5a2
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x40a5af
or eax, 0xffffffff
jmp 0x40a70b
mov ecx, esi
call fcn.0040a076
mov dword [ebp - 0x14], eax
call fcn.0040f70a
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40a62d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40a62d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40a62d
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040768f
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40a62d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40a62d
mov ecx, ebx
call fcn.004125d5
test eax, eax
je 0x40a62d
push 0
mov ecx, ebx
call fcn.004125f0
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00411204
push dword [ebp - 0x14]
call fcn.0040f662
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040a34e
xor edi, edi
cmp eax, edi
je 0x40a68a
test byte [esi + 0x3c], 0x10
je 0x40a674
push 4
pop edi
mov ecx, esi
call fcn.004124bc
test ax, 0x100
je 0x40a66a
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040f22a
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40a68a
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004127bf
or dword [ebp - 4], 0xffffffff
jmp 0x40a6b5
cmp dword [ebp - 0x28], edi
je 0x40a6c3
push 1
mov ecx, ebx
call fcn.004125f0
cmp dword [ebp - 0x2c], edi
je 0x40a6d3
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40a6ec
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40a6ec
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0040a0b0
cmp dword [esi + 0x58], edi
je 0x40a708
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00429cad
ret