joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4199bc
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 + 0x431a58]
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 0x419a02
cmp word [ebx], dx
jne 0x419a02
or byte [eax + edi + 0x28], 4
jmp 0x419a07
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 0x419b6a
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 0x419b4a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x419a48
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419a7e
cmp eax, edx
jae 0x419a8c
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 0x419a23
jmp 0x419b6a
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 0x419b45
cmp dword [ebp - 0x18], 0
je 0x419b45
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x431a58]
test byte [eax + edi + 0x28], 0x48
je 0x419b1b
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 0x419adf
mov word [esi], cx
jmp 0x419b16
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x431a58]
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 + 0x431a58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x431a58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x419b6a
pop eax
cmp word [ebp - 4], ax
jne 0x419b2b
cmp esi, ebx
jne 0x419b2b
mov word [esi], ax
jmp 0x419b67
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a3f5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x419b6a
push 0xd
pop eax
jmp 0x419b26
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x431a58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x419b64
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x419b6a
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 0x41b79c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x430010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41b7e7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041b937
test al, al
jne 0x41b7e1
sub edx, 2
cmp edx, edi
jne 0x41b7c7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41b809
lea eax, [edi + 2]
cmp edx, eax
je 0x41b809
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041b6e8
add esp, 0x10
jmp 0x41b903
push esi
lea ecx, [ebp - 0x255]
call fcn.0041b937
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41b84c
push dword [ebp - 0x25c]
jmp 0x41b7f9
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41b889
cmp word [ebp - 0x226], 0
je 0x41b8aa
cmp word [ebp - 0x226], ax
jne 0x41b889
cmp word [ebp - 0x224], 0
je 0x41b8aa
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041b6e8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41b8f6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41b863
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41b8de
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41b903
push 0x41b518
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00421570
add esp, 0x10
jmp 0x41b8d3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408b9d
leave
ret

Function at 0x41c203
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41c214
pop esi
ret
push ebx
push edi
push esi
call fcn.0041c1cc
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00414fa9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41c23c
push ebx
push esi
push edi
call fcn.0040a070
add esp, 0xc
push 0
call fcn.00414f6f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41c60c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c251
Function at 0x41e8b7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041634a
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 0x41e926
cmp esi, dword [ebp - 4]
je 0x41e921
cmp dword [ebp + 0xc], 0
je 0x41e921
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41e8fe
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041e409
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41e928
xor eax, eax
inc eax
jmp 0x41e928
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41e98d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x430010]
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.0041634a
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.0041634a
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 0x41ea04
cmp word [ecx], dx
je 0x41ea04
mov eax, dword [0x4295ac]
push edi
dec eax
push eax
push 0x429498
call fcn.0041e92c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41ea77
cmp word [eax], dx
je 0x41ea77
mov eax, dword [edi]
test eax, eax
je 0x41ea28
cmp word [eax], dx
je 0x41ea28
lea eax, [ebp - 0x10]
push eax
call fcn.0041e30f
jmp 0x41ea31
lea eax, [ebp - 0x10]
push eax
call fcn.0041e3aa
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41eaa1
mov eax, dword [0x429494]
push dword [ebp - 0x14]
dec eax
push eax
push 0x429188
call fcn.0041e92c
add esp, 0xc
test al, al
je 0x41eaa1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41ea6c
cmp word [eax], di
je 0x41ea6c
lea eax, [ebp - 0x10]
push eax
call fcn.0041e30f
pop ecx
jmp 0x41eaa3
lea eax, [ebp - 0x10]
push eax
call fcn.0041e3aa
jmp 0x41ea69
mov eax, dword [edi]
test eax, eax
je 0x41ea8e
cmp word [eax], dx
je 0x41ea8e
lea eax, [ebp - 0x10]
push eax
call fcn.0041e2c4
pop ecx
jmp 0x41eaa1
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 0x41eb6c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041e7b1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41eb6c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41eb6c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41eb6c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41eaf9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00417e04
test ebx, ebx
je 0x41eb67
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00417e04
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41eb6c
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 0x41eb6c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00421d0a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41eb6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408b9d
leave
ret
Function at 0x423630
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42365d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42365d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x13e710bf
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x7c8a4f96
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40d8d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x40d913
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.0040d8c4
pop ecx
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0xa
sub dword [ebp - 4], 0x3c
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, esi
xor byte [eax], cl
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x40d8e0
cmp dword [ebp + 0xc], 0x2d
pop esi
jne 0x40d92b
or dword [0x1ba793c], 0xffffffff
mov dword [0x1ba7938], 0xa62e7790
leave
ret
Function at 0x30012b55
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x30015078]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.30012b55
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x30015078]
jne 0x30012b5e
ret
jmp 0x30012a40

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x50c600
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb7000]
push edi
jmp 0x50c61a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50c621
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50c610
mov eax, 1
add ebx, ebx
jne 0x50c633
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50c644
jne 0x50c663
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50c663
dec eax
add ebx, ebx
jne 0x50c650
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50c628
add ebx, ebx
jne 0x50c65f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50c6b5
xor ecx, ecx
sub eax, 3
jb 0x50c67b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50c6ea
sar eax, 1
mov ebp, eax
jmp 0x50c686
add ebx, ebx
jne 0x50c686
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50c654
inc ecx
add ebx, ebx
jne 0x50c694
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50c654
add ebx, ebx
jne 0x50c6a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50c696
jne 0x50c6b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50c696
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50c6d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50c6c6
jmp 0x50c616
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50c6d4
add edi, ecx
jmp 0x50c616
pop esi
mov edi, esi
mov ecx, 0x3ede
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50c6f2
cmp byte [edi], 0x11
jne 0x50c6f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x50c6f7
lea edi, [esi + 0x105000]
mov eax, dword [edi]
or eax, eax
je 0x50c76f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13eb30]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13ecac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50c724
mov ecx, edi
jns 0x50c753
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13ecb0]
or eax, eax
je 0x50c769
mov dword [ebx], eax
add ebx, 4
jmp 0x50c741
call dword [esi + 0x13ecc0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x50c7a0
cmp al, 0xef
ja 0x50c793
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x50c775
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x50c782
mov ebp, dword [esi + 0x13ecb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50c7d4
sub esp, 0xffffff80
jmp 0x4276e7
Function at 0x402b10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
push ebx
push esi
movzx eax, word [ecx + 4]
lea esi, [ecx + 6]
push edi
mov word [ebp - 0x20], ax
movzx eax, word [esi + 8]
push esi
mov word [ebp - 0x16], ax
mov al, byte [esi + 0xa]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x447690
mov dword [ebp - 0x24], 0x1824c1
movq qword [ebp - 0x1e], xmm0
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], 0
call fcn.00416db0
add esp, 0xc
test al, al
je 0x402c33
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402c33
push str.WCoinC
call fcn.00417040
cmp eax, 0xffffffff
jne 0x402b8e
or eax, eax
jmp 0x402b9f
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.WCoinP
mov dword [ebp - 0x10], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x402bb5
or eax, eax
jmp 0x402bc6
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0xc], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x402bdc
or eax, eax
jmp 0x402bed
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Ruud
mov dword [ebp - 8], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x402c03
or eax, eax
jmp 0x402c14
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x402ca8
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call ebx
push esi
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint_Ruud__VALUES___s_0_0_0_0_
push 0x447690
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
test al, al
jne 0x402c80
call edi
push 2
push dword [0x44769c]
call ebx
mov byte [ebp - 0x13], 1
jmp 0x402ca8
call edi
push 2
push dword [0x44769c]
call ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x24
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
call fcn.004182a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402cc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
lea edx, [ecx + 6]
push esi
push edi
movzx eax, word [ecx + 4]
mov word [ebp - 0x38], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x2e], ax
mov al, byte [edx + 0xa]
mov byte [ebp - 0x2c], al
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x20], eax
movzx eax, word [ecx + 0x20]
mov word [ebp - 0x1c], ax
mov eax, dword [ecx + 0x24]
push edx
mov dword [ebp - 0x18], eax
mov al, byte [ecx + 0x28]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x447690
mov dword [ebp - 0x3c], 0x1183cc1
mov dword [ebp + 8], edx
movq qword [ebp - 0x36], xmm0
mov byte [ebp - 0x2b], 0
mov byte [ebp - 0x14], al
call fcn.00416db0
add esp, 0xc
test al, al
je 0x402e4b
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402e4b
push str.WCoinC
call fcn.00417040
cmp eax, 0xffffffff
jne 0x402d66
or eax, eax
jmp 0x402d77
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.WCoinP
mov dword [ebp - 0x10], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x402d8d
or eax, eax
jmp 0x402d9e
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0xc], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x402db4
or eax, eax
jmp 0x402dc5
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov dword [ebp - 8], eax
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call edi
push 0x53
push dword [ebp + 8]
push str.SELECT_count___FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
push 0x447690
call fcn.00416db0
add esp, 0x10
test al, al
je 0x402e37
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402e37
push 0x4482be
call fcn.00420b26
add esp, 4
mov dword [ebp - 4], eax
push dword [0x44769c]
call esi
push 2
push dword [0x44769c]
call edi
jmp 0x402e69
push dword [0x44769c]
call esi
push 2
push dword [0x44769c]
call edi
jmp 0x402e65
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x2b], 1
push 0x3c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0xc]
call fcn.004182a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x403790
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x11
mov ecx, 6
mov dword [ebp - 0x20], ebx
push esi
push edi
cmp byte [ebx + 0x11], 0
cmovne ecx, eax
mov ax, word [ecx + ebx + 8]
movq xmm0, qword [ecx + ebx]
mov word [ebp - 0xc], ax
mov al, byte [ecx + ebx + 0xa]
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x14]
push eax
push str.SELECT_WCoinC_WCoinP_GoblinPoint_Ruud_FROM_CashShopData_WHERE_AccountID_s
push 0x447690
movq qword [ebp - 0x14], xmm0
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40393f
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40393f
push str.WCoinC
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40381c
mov dword [ebp - 0x24], eax
jmp 0x403830
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov dword [ebp - 0x24], eax
push str.WCoinP
call fcn.00417040
cmp eax, 0xffffffff
jne 0x403844
mov dword [ebp - 0x1c], eax
jmp 0x403858
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40386c
mov dword [ebp - 0x18], eax
jmp 0x403880
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov dword [ebp - 0x18], eax
push str.Ruud
call fcn.00417040
cmp eax, 0xffffffff
jne 0x403893
or esi, eax
jmp 0x4038a6
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov esi, eax
push dword [0x44769c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call ebx
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call edi
mov ecx, dword [ebp - 0x20]
mov ebx, bind
mov edx, dword [ebp - 0x18]
add esi, dword [ecx + 0x28]
mov eax, dword [ecx + 0x20]
cmp esi, ebx
cmova esi, ebx
add edx, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x1c]
cmp edx, ebx
cmova edx, ebx
add ecx, eax
mov eax, dword [ebp - 0x20]
cmp ecx, ebx
cmova ecx, ebx
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x24]
cmp eax, ebx
cmova eax, ebx
lea ebx, [ebp - 0x14]
push ebx
push esi
push edx
push ecx
push eax
push str.UPDATE_CashShopData_SET_WCoinC_d_WCoinP_d_GoblinPoint_d_Ruud_d_WHERE_AccountID_s
push 0x447690
call fcn.00416db0
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 0x1c
push dword [0x44769c]
call ebx
push 2
push dword [0x44769c]
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004198d7
mov esp, ebp
pop ebp
ret 4
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
push dword [ebx + 0x28]
lea eax, [ebp - 0x14]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push eax
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint_Ruud__VALUES___s__d__d__d__d_
push 0x447690
call fcn.00416db0
add esp, 0x1c
push dword [0x44769c]
call edi
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004198d7
mov esp, ebp
pop ebp
ret 4